more on events, and initialize remote page

This commit is contained in:
open-trade
2020-11-17 01:22:14 +08:00
parent bf81f362f0
commit ee64faf082
2 changed files with 40 additions and 7 deletions

View File

@@ -0,0 +1,25 @@
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'common.dart';
import 'package:flutter/services.dart';
class RemotePage extends StatefulWidget {
RemotePage({Key key, this.id}) : super(key: key);
final String id;
@override
_RemotePageState createState() => _RemotePageState();
}
class _RemotePageState extends State<RemotePage> {
FfiModel _ffi;
@override
Widget build(BuildContext context) {
_ffi = Provider.of<FfiModel>(context);
_ffi.connect(widget.id);
// https://stackoverflow.com/questions/46640116/make-flutter-application-fullscreen
SystemChrome.setEnabledSystemUIOverlays([]);
}
}