Last active
October 29, 2021 09:55
-
-
Save xi1570-krupeshanadkat/c64a75ec673a60dc9b3063a5fcea798b to your computer and use it in GitHub Desktop.
This file contains hidden or 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 StatelessWidget { | |
final String appTitle = 'Xebia IT Architects'; | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
debugShowCheckedModeBanner: false, | |
home: Scaffold( | |
appBar: AppBar(title: Text(appTitle), backgroundColor: Colors.indigo,), | |
body: Center( | |
child: MyWidget(), | |
), | |
), | |
); | |
} | |
} | |
class MyWidget extends StatelessWidget { | |
final List<String> dataList = [ | |
"card 1 title", | |
"card 2 title", | |
"card 3 title", | |
"card 4 title", | |
"card 5 title", | |
"card 6 title", | |
"card 7 title", | |
"card 8 title", | |
"card 9 title", | |
"card 10 title", | |
"card 11 title", | |
"card 12 title", | |
"card 13 title", | |
"card 14 title" | |
]; | |
@override | |
Widget build(BuildContext context) { | |
print(dataList); | |
return Text( | |
'Hello, World!', | |
style: Theme.of(context).textTheme.bodyText1, | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment