From e5de16a2471e0523580245630228fd94bfb179d1 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Fri, 31 Jul 2020 09:51:05 -0700 Subject: [PATCH] Make the text field macrobenchmark work in debug mode (#62523) --- .../macrobenchmarks/lib/src/text.dart | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/dev/benchmarks/macrobenchmarks/lib/src/text.dart b/dev/benchmarks/macrobenchmarks/lib/src/text.dart index 58f3488b02..10410194e3 100644 --- a/dev/benchmarks/macrobenchmarks/lib/src/text.dart +++ b/dev/benchmarks/macrobenchmarks/lib/src/text.dart @@ -7,16 +7,18 @@ import 'package:flutter/material.dart'; class TextPage extends StatelessWidget { @override Widget build(BuildContext context) { - return Column( - children: [ - Container( - width: 200, - height: 100, - child: const TextField( - key: Key('basic-textfield'), + return Material( + child: Column( + children: [ + Container( + width: 200, + height: 100, + child: const TextField( + key: Key('basic-textfield'), + ), ), - ), - ], + ], + ), ); } }