This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Project: Code controls circuitry. | |
// Outputs: lights | |
// Inputs: sensors (slider, microphone, light sensor) | |
// | |
// This program has three components: | |
// - light detection | |
// - temperature detection | |
// - sound detection | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// (c) 2020 Yong Joseph Bakos. Use this freely. | |
// https://github.com/flutter/flutter/issues/27821 | |
// Usage: | |
// DropdownRatingFormField( | |
// maxRating: 4, | |
// validator: (value) { /* ... */ }, | |
// onSaved: (value) { /* ... */ } | |
// ); | |
import 'package:flutter/material.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Week 8 Exploration 5 | |
void main() { | |
runApp(App()); | |
} | |
class App { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Week 8 Exploration 4 | |
void main() { | |
runApp(App()); | |
} | |
class App { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Week 8 Exploration 3 | |
void main() { | |
runApp(App()); | |
} | |
class App { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
print('a'); | |
// TODO: Do the same work, but without the use of `go`. | |
go().then( (value) { | |
print(value); | |
}); | |
print('b'); | |
} | |
Future<int> go() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() => runApp(App()); | |
class App extends StatelessWidget { // TODO: Convert to StatefulWidget | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Example', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() => runApp(App()); | |
class App extends StatelessWidget { | |
// TODO: Declare a Map containing two routes, | |
// one for Exercise and one for Alpha. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() => runApp(App()); | |
class App extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
debugShowCheckedModeBanner: false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() => runApp(App()); | |
class App extends StatefulWidget { | |
@override | |
State createState() => AppState(); | |
} | |
class AppState extends State<App> { |
NewerOlder