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

@@ -10,8 +10,8 @@ void main() {
testWidgets('receiveAction() forwards exception when exception occurs during action processing',
(WidgetTester tester) async {
// Setup a widget that can receive focus so that we can open the keyboard.
final Widget widget = MaterialApp(
home: const Material(
const Widget widget = MaterialApp(
home: Material(
child: TextField(),
),
);

View File

@@ -533,8 +533,8 @@ void main() {
group('getSemanticsData', () {
testWidgets('throws when there are no semantics', (WidgetTester tester) async {
await tester.pumpWidget(
MaterialApp(
home: const Scaffold(
const MaterialApp(
home: Scaffold(
body: Text('hello'),
),
),