From 86add59e9290887f270ba660b68bcdec52357d8c Mon Sep 17 00:00:00 2001 From: open-trade Date: Thu, 19 Nov 2020 18:41:37 +0800 Subject: [PATCH] color --- flutter_hbb/lib/common.dart | 1 + flutter_hbb/lib/remote_page.dart | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/flutter_hbb/lib/common.dart b/flutter_hbb/lib/common.dart index bce191c93..3d7408a5b 100644 --- a/flutter_hbb/lib/common.dart +++ b/flutter_hbb/lib/common.dart @@ -20,6 +20,7 @@ class MyTheme { static const Color white = Color(0xFFFFFFFF); static const Color accent = Color(0xFF0071FF); static const Color accent50 = Color(0x770071FF); + static const Color canvasColor = Color(0xFF212121); } // https://github.com/huangjianke/flutter_easyloading diff --git a/flutter_hbb/lib/remote_page.dart b/flutter_hbb/lib/remote_page.dart index 9180bb490..007f31a98 100644 --- a/flutter_hbb/lib/remote_page.dart +++ b/flutter_hbb/lib/remote_page.dart @@ -52,8 +52,8 @@ class _RemotePageState extends State { Widget build(BuildContext context) { // Size size = MediaQueryData.fromWindow(ui.window).size; // MediaQuery.of(context).size.height; + EasyLoading.instance.loadingStyle = EasyLoadingStyle.light; return Scaffold( - backgroundColor: MyTheme.grayBg, floatingActionButton: _show_bar ? null : FloatingActionButton( @@ -110,6 +110,8 @@ class _RemotePageState extends State { ) : null, body: FlutterEasyLoading( + child: Container( + color: MyTheme.canvasColor, child: InteractiveViewer( constrained: false, panEnabled: true, @@ -121,7 +123,7 @@ class _RemotePageState extends State { CursorPaint(), ]), ), - )); + ))); } }