color
This commit is contained in:
parent
ad5eb7830c
commit
86add59e92
@ -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
|
||||||
|
@ -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(),
|
||||||
]),
|
]),
|
||||||
),
|
),
|
||||||
));
|
)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user