Created
July 22, 2020 23:55
-
-
Save esstein/6a908fe99f604474fd052731d59d059c 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
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatefulWidget { | |
@override | |
_MyAppState createState() => _MyAppState(); | |
} | |
class _MyAppState extends State<MyApp> { | |
List<Widget> arrayOfWidgets = [ | |
Text('Text widget #1'), | |
Text('Text widget #2'), | |
Text('Text widget #3') | |
]; | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home: Scaffold( | |
appBar: AppBar( | |
title: Text("Text Widget with a List of Widget's Example")), | |
body: Column(children: arrayOfWidgets))); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment