Widgets app refactor (#22269)

* Refactor of cupertino/material/widgets app

* update docs 

* Update tests for const
This commit is contained in:
Dan Field
2018-09-25 13:57:12 -04:00
committed by GitHub
parent 582f35dfb1
commit ea5435c2ef
33 changed files with 464 additions and 558 deletions

View File

@@ -15,7 +15,7 @@ void main() {
await WidgetsBinding.instance.reassembleApplication();
return log;
});
runApp(MaterialApp(home: const Test()));
runApp(const MaterialApp(home: Test()));
}
class Test extends SingleChildRenderObjectWidget {

View File

@@ -7,9 +7,9 @@ import 'package:flutter/material.dart';
class AnimatedIconsTestApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
return const MaterialApp(
title: 'Animated Icons Test',
home: const Scaffold(
home: Scaffold(
body: IconsList(),
),
);

View File

@@ -474,7 +474,7 @@ class _AnimationDemoState extends State<AnimationDemo> with TickerProviderStateM
}
void main() {
runApp(MaterialApp(
home: const AnimationDemo(),
runApp(const MaterialApp(
home: AnimationDemo(),
));
}