invoke keyboard, problem is the keyboard type has problem
This commit is contained in:
parent
83622cffc6
commit
5d11700bdd
@ -5,9 +5,9 @@ import 'dart:ui' as ui;
|
|||||||
import 'package:flutter_easyloading/flutter_easyloading.dart';
|
import 'package:flutter_easyloading/flutter_easyloading.dart';
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:math' as math;
|
import 'dart:math' as math;
|
||||||
|
import 'package:tuple/tuple.dart';
|
||||||
import 'common.dart';
|
import 'common.dart';
|
||||||
import 'model.dart';
|
import 'model.dart';
|
||||||
import 'package:tuple/tuple.dart';
|
|
||||||
|
|
||||||
class RemotePage extends StatefulWidget {
|
class RemotePage extends StatefulWidget {
|
||||||
RemotePage({Key key, this.id}) : super(key: key);
|
RemotePage({Key key, this.id}) : super(key: key);
|
||||||
@ -22,6 +22,7 @@ class RemotePage extends StatefulWidget {
|
|||||||
class _RemotePageState extends State<RemotePage> {
|
class _RemotePageState extends State<RemotePage> {
|
||||||
Timer _interval;
|
Timer _interval;
|
||||||
bool _showBar = true;
|
bool _showBar = true;
|
||||||
|
double _bottom = 0;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
@ -46,6 +47,15 @@ class _RemotePageState extends State<RemotePage> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void interval() {
|
void interval() {
|
||||||
|
var v = MediaQuery.of(context).viewInsets.bottom;
|
||||||
|
if (v != _bottom) {
|
||||||
|
setState(() {
|
||||||
|
_bottom = v;
|
||||||
|
if (v < 80) {
|
||||||
|
SystemChrome.setEnabledSystemUIOverlays([]);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
FFI.ffiModel.update(widget.id, context, handleMsgbox);
|
FFI.ffiModel.update(widget.id, context, handleMsgbox);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -100,7 +110,8 @@ class _RemotePageState extends State<RemotePage> {
|
|||||||
IconButton(
|
IconButton(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
icon: Icon(Icons.keyboard),
|
icon: Icon(Icons.keyboard),
|
||||||
onPressed: () {},
|
onPressed: () => SystemChannels.textInput
|
||||||
|
.invokeMethod('TextInput.show'),
|
||||||
),
|
),
|
||||||
Transform.rotate(
|
Transform.rotate(
|
||||||
angle: 15 * math.pi / 180,
|
angle: 15 * math.pi / 180,
|
||||||
|
@ -82,7 +82,7 @@ packages:
|
|||||||
name: flutter_easyloading
|
name: flutter_easyloading
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.1.3"
|
version: "2.2.0"
|
||||||
flutter_spinkit:
|
flutter_spinkit:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user