Created
April 13, 2018 23:59
-
-
Save Temidtech/15ba39f8fb7e4a9e1b7d649bef4b1d89 to your computer and use it in GitHub Desktop.
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() { | |
List todo = ['Drink', 'Chat', new Task('Code Flutter', Priority.high), 'Profit']; | |
runApp( | |
new MaterialApp(home: new MyTodoList(todo)), | |
); | |
} | |
class MyTodoList extends StatefulWidget { | |
final List<Widget> items; | |
MyTodoList(this.items); | |
} | |
view raw |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment