dart format

pull/2844/head
Eric Windmill 1 week ago
parent 76775790e5
commit e773abcf80

@ -33,20 +33,21 @@ class _ResizeAppState extends State<ResizeApp> {
mainAxisSize: MainAxisSize.min,
children: <Widget>[
for (int i = 0; i < _listSize; i++)
Container(color: HSVColor.fromAHSV(1, (10.0 * i), 1, 1).toColor(), height: 50, width: 200,
Container(
color: HSVColor.fromAHSV(1, (10.0 * i), 1, 1).toColor(),
height: 50,
width: 200,
child: Center(
child: Text(
'Flutter Widget $i',
style: const TextStyle(fontSize: 16, color: Colors.black),
),
)),
TextButton(
onPressed: _addToList,
child: Text('Listception!'),
)
),
),
TextButton(onPressed: _addToList, child: Text('Listception!')),
],
),
),
);
}
}
}

@ -26,7 +26,6 @@ class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return Center(
heightFactor: 1,
child: Directionality(
@ -46,7 +45,6 @@ class _MyAppState extends State<MyApp> {
child: Text("Add to list"),
),
),
],
),
),

@ -13,7 +13,7 @@ dependencies:
dev_dependencies:
analysis_defaults:
path: ../../../analysis_defaults
path: ../../../../analysis_defaults
flutter_test:
sdk: flutter
flutter_driver:

@ -30,7 +30,6 @@ class HomePage extends StatelessWidget {
),
body: ListView.builder(
itemCount: 100,
cacheExtent: 20.0,
controller: ScrollController(),
padding: const EdgeInsets.symmetric(vertical: 16),
itemBuilder: (context, index) => ItemTile(index),

Loading…
Cancel
Save