-
-
Save munificent/3b9406e2d2340f9e5ed5f19eceacd70c 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
Widget build(BuildContext context) { | |
var texts = [Text('Hello World')]; | |
if (!isTuesday) { | |
texts.add(Text('This is Flutter')); | |
} | |
texts.add(Text('Written in Dart')); | |
return MaterialApp( | |
title: 'Welcome to Flutter', | |
home: Scaffold( | |
appBar: AppBar(title: Text('Welcome to Flutter')), | |
body: Column(children: texts) | |
) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment