Commit bed0300b authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

Wrap input widgets in a repaint boundary (#6248)

Performance improvement for https://github.com/flutter/flutter/issues/6008
parent e303a7f7
...@@ -255,12 +255,14 @@ class _InputState extends State<Input> { ...@@ -255,12 +255,14 @@ class _InputState extends State<Input> {
); );
} }
return new GestureDetector( return new RepaintBoundary(
behavior: HitTestBehavior.opaque, child: new GestureDetector(
onTap: () => _rawInputLineKey.currentState?.requestKeyboard(), behavior: HitTestBehavior.opaque,
child: new Padding( onTap: () => _rawInputLineKey.currentState?.requestKeyboard(),
padding: const EdgeInsets.symmetric(horizontal: 16.0), child: new Padding(
child: child padding: const EdgeInsets.symmetric(horizontal: 16.0),
child: child
)
) )
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment