From 34cffbf1043d20bc2208b5103204f7c73f268ca9 Mon Sep 17 00:00:00 2001 From: Sara <sarasdj@stud.ntnu.no> Date: Mon, 8 Apr 2024 12:49:03 +0200 Subject: [PATCH] update: reload animaion --- app/lib/pages/default_page.dart | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/lib/pages/default_page.dart b/app/lib/pages/default_page.dart index d7aeae32..b9c1d308 100644 --- a/app/lib/pages/default_page.dart +++ b/app/lib/pages/default_page.dart @@ -22,6 +22,7 @@ class _DefaultPageState extends State<DefaultPage> { late Timer _timer; bool serverConnection = true; bool dialogShown = false; + final backgroundColor = Colors.black87; @override void dispose() { @@ -37,9 +38,9 @@ class _DefaultPageState extends State<DefaultPage> { Widget build(BuildContext context) { return MaterialApp( home: Scaffold( - backgroundColor: Colors.grey[900], + backgroundColor: backgroundColor, appBar: AppBar( - backgroundColor: Colors.black87, + backgroundColor: backgroundColor, leading: IconButton( icon: const Icon( Icons.menu, @@ -84,8 +85,8 @@ class _DefaultPageState extends State<DefaultPage> { ], ), body: LiquidPullToRefresh( - color: Colors.grey[900], - height: 200, + color: backgroundColor, + height: 100, backgroundColor: Colors.grey[600], onRefresh: _handleRefresh, animSpeedFactor: 3, -- GitLab