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> {
);
}
return new GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => _rawInputLineKey.currentState?.requestKeyboard(),
child: new Padding(
padding: const EdgeInsets.symmetric(horizontal: 16.0),
child: child
return new RepaintBoundary(
child: new GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => _rawInputLineKey.currentState?.requestKeyboard(),
child: new Padding(
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