Created
April 14, 2018 00:03
-
-
Save Temidtech/ad9f54e317670191281e5761f1864bf5 to your computer and use it in GitHub Desktop.
main3 Dart File
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
Widget build(BuildContext context) { | |
List<Widget> remaining = widget.items.sublist(_done); | |
return new Scaffold( | |
body: (remaining.length <= 3) | |
? new Column(children: remaining) | |
: new Text('${remaining.length} items left to do'), | |
floatingActionButton: new FloatingActionButton(onPressed: _doOneThing), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment