This commit is contained in:
open-trade 2020-11-19 18:41:37 +08:00
parent ad5eb7830c
commit 86add59e92
2 changed files with 5 additions and 2 deletions

View File

@ -20,6 +20,7 @@ class MyTheme {
static const Color white = Color(0xFFFFFFFF); static const Color white = Color(0xFFFFFFFF);
static const Color accent = Color(0xFF0071FF); static const Color accent = Color(0xFF0071FF);
static const Color accent50 = Color(0x770071FF); static const Color accent50 = Color(0x770071FF);
static const Color canvasColor = Color(0xFF212121);
} }
// https://github.com/huangjianke/flutter_easyloading // https://github.com/huangjianke/flutter_easyloading

View File

@ -52,8 +52,8 @@ class _RemotePageState extends State<RemotePage> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
// Size size = MediaQueryData.fromWindow(ui.window).size; // Size size = MediaQueryData.fromWindow(ui.window).size;
// MediaQuery.of(context).size.height; // MediaQuery.of(context).size.height;
EasyLoading.instance.loadingStyle = EasyLoadingStyle.light;
return Scaffold( return Scaffold(
backgroundColor: MyTheme.grayBg,
floatingActionButton: _show_bar floatingActionButton: _show_bar
? null ? null
: FloatingActionButton( : FloatingActionButton(
@ -110,6 +110,8 @@ class _RemotePageState extends State<RemotePage> {
) )
: null, : null,
body: FlutterEasyLoading( body: FlutterEasyLoading(
child: Container(
color: MyTheme.canvasColor,
child: InteractiveViewer( child: InteractiveViewer(
constrained: false, constrained: false,
panEnabled: true, panEnabled: true,
@ -121,7 +123,7 @@ class _RemotePageState extends State<RemotePage> {
CursorPaint(), CursorPaint(),
]), ]),
), ),
)); )));
} }
} }