Fix builder parameter

This commit is contained in:
Gui Meira 2020-06-04 00:34:42 -03:00 committed by BuddhiAbeyratne
parent d5c3d00e45
commit 31f6a3bb27

View File

@ -124,6 +124,7 @@ class _VirtualKeyboardState extends State<VirtualKeyboard> {
super.didUpdateWidget(oldWidget); super.didUpdateWidget(oldWidget);
setState(() { setState(() {
type = widget.type; type = widget.type;
builder = widget.builder;
onKeyPress = widget.onKeyPress; onKeyPress = widget.onKeyPress;
height = widget.height; height = widget.height;
width = widget.width; width = widget.width;
@ -151,6 +152,7 @@ class _VirtualKeyboardState extends State<VirtualKeyboard> {
customLayoutKeys = widget.customLayoutKeys ?? customLayoutKeys = widget.customLayoutKeys ??
VirtualKeyboardDefaultLayoutKeys( VirtualKeyboardDefaultLayoutKeys(
widget.defaultLayouts ?? [VirtualKeyboardDefaultLayouts.English]); widget.defaultLayouts ?? [VirtualKeyboardDefaultLayouts.English]);
builder = widget.builder;
onKeyPress = widget.onKeyPress; onKeyPress = widget.onKeyPress;
height = widget.height; height = widget.height;
textColor = widget.textColor; textColor = widget.textColor;