Skip to content

Instantly share code, notes, and snippets.

@xi1570-krupeshanadkat
Last active October 29, 2021 09:55
Show Gist options
  • Save xi1570-krupeshanadkat/c64a75ec673a60dc9b3063a5fcea798b to your computer and use it in GitHub Desktop.
Save xi1570-krupeshanadkat/c64a75ec673a60dc9b3063a5fcea798b to your computer and use it in GitHub Desktop.
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