Bug fix
This commit is contained in:
parent
3ed592bd36
commit
5fdc143917
@ -237,11 +237,14 @@ class _VirtualKeyboardState extends State<VirtualKeyboard> {
|
|||||||
// Cancel event loop
|
// Cancel event loop
|
||||||
longPress = false;
|
longPress = false;
|
||||||
},
|
},
|
||||||
|
child: Container(
|
||||||
|
height: double.infinity,
|
||||||
|
width: double.infinity,
|
||||||
child: Icon(
|
child: Icon(
|
||||||
Icons.backspace,
|
Icons.backspace,
|
||||||
color: textColor,
|
color: textColor,
|
||||||
),
|
),
|
||||||
);
|
));
|
||||||
break;
|
break;
|
||||||
case VirtualKeyboardKeyAction.Shift:
|
case VirtualKeyboardKeyAction.Shift:
|
||||||
actionKey = Icon(Icons.arrow_upward, color: textColor);
|
actionKey = Icon(Icons.arrow_upward, color: textColor);
|
||||||
@ -260,23 +263,22 @@ class _VirtualKeyboardState extends State<VirtualKeyboard> {
|
|||||||
return Expanded(
|
return Expanded(
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
if (!alwaysCaps) {
|
|
||||||
if (key.action == VirtualKeyboardKeyAction.Shift) {
|
if (key.action == VirtualKeyboardKeyAction.Shift) {
|
||||||
|
if (!alwaysCaps) {
|
||||||
setState(() {
|
setState(() {
|
||||||
isShiftEnabled = !isShiftEnabled;
|
isShiftEnabled = !isShiftEnabled;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
onKeyPress(key);
|
onKeyPress(key);
|
||||||
}
|
|
||||||
},
|
},
|
||||||
child: Container(
|
child: Container(
|
||||||
|
alignment: Alignment.center,
|
||||||
height: height / _keyRows.length,
|
height: height / _keyRows.length,
|
||||||
child: Center(
|
|
||||||
child: actionKey,
|
child: actionKey,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: virtual_keyboard
|
name: virtual_keyboard
|
||||||
description: A simple package for dispaying virtual keyboards on a devices like kiosks and ATMs. The library is written in Dart and has no native code dependancy.
|
description: A simple package for dispaying virtual keyboards on a devices like kiosks and ATMs. The library is written in Dart and has no native code dependancy.
|
||||||
version: 0.1.3
|
version: 0.1.4
|
||||||
author: Gurgen Hovhannisyan <g.hovhannisyan@digitalpomegranate.com>
|
author: Gurgen Hovhannisyan <g.hovhannisyan@digitalpomegranate.com>
|
||||||
homepage: https://github.com/gurgenDP/virtual_keyboard
|
homepage: https://github.com/gurgenDP/virtual_keyboard
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user