Make the text field macrobenchmark work in debug mode (#62523)

This commit is contained in:
Jason Simmons 2020-07-31 09:51:05 -07:00 committed by GitHub
parent 4f09f2c2bd
commit e5de16a247
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,16 +7,18 @@ import 'package:flutter/material.dart';
class TextPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
children: <Widget>[
Container(
width: 200,
height: 100,
child: const TextField(
key: Key('basic-textfield'),
return Material(
child: Column(
children: <Widget>[
Container(
width: 200,
height: 100,
child: const TextField(
key: Key('basic-textfield'),
),
),
),
],
],
),
);
}
}