use hidden textfield to capture input

This commit is contained in:
open-trade
2020-11-22 18:29:04 +08:00
parent 25b2f52462
commit f6f7e1ead1
2 changed files with 132 additions and 118 deletions

View File

@@ -138,8 +138,8 @@ class ImageModel with ChangeNotifier {
class CursorModel with ChangeNotifier {
ui.Image _image;
final _images = Map<int, ui.Image>();
double _x = 0;
double _y = 0;
double _x = -10000;
double _y = -10000;
double _hotx = 0;
double _hoty = 0;
double _displayOriginX = 0;
@@ -189,6 +189,8 @@ class CursorModel with ChangeNotifier {
}
void clear() {
_x = -10000;
_x = -10000;
_image = null;
_images.clear();
}