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,13 +255,15 @@ class _InputState extends State<Input> { ...@@ -255,13 +255,15 @@ class _InputState extends State<Input> {
); );
} }
return new GestureDetector( return new RepaintBoundary(
child: new GestureDetector(
behavior: HitTestBehavior.opaque, behavior: HitTestBehavior.opaque,
onTap: () => _rawInputLineKey.currentState?.requestKeyboard(), onTap: () => _rawInputLineKey.currentState?.requestKeyboard(),
child: new Padding( child: new Padding(
padding: const EdgeInsets.symmetric(horizontal: 16.0), padding: const EdgeInsets.symmetric(horizontal: 16.0),
child: child 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