Skip to content
Snippets Groups Projects
Commit 34cffbf1 authored by Sara Savanovic Djordjevic's avatar Sara Savanovic Djordjevic
Browse files

update: reload animaion

parent ed26dbf7
No related branches found
No related tags found
1 merge request!12Clhp map
...@@ -22,6 +22,7 @@ class _DefaultPageState extends State<DefaultPage> { ...@@ -22,6 +22,7 @@ class _DefaultPageState extends State<DefaultPage> {
late Timer _timer; late Timer _timer;
bool serverConnection = true; bool serverConnection = true;
bool dialogShown = false; bool dialogShown = false;
final backgroundColor = Colors.black87;
@override @override
void dispose() { void dispose() {
...@@ -37,9 +38,9 @@ class _DefaultPageState extends State<DefaultPage> { ...@@ -37,9 +38,9 @@ class _DefaultPageState extends State<DefaultPage> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MaterialApp( return MaterialApp(
home: Scaffold( home: Scaffold(
backgroundColor: Colors.grey[900], backgroundColor: backgroundColor,
appBar: AppBar( appBar: AppBar(
backgroundColor: Colors.black87, backgroundColor: backgroundColor,
leading: IconButton( leading: IconButton(
icon: const Icon( icon: const Icon(
Icons.menu, Icons.menu,
...@@ -84,8 +85,8 @@ class _DefaultPageState extends State<DefaultPage> { ...@@ -84,8 +85,8 @@ class _DefaultPageState extends State<DefaultPage> {
], ],
), ),
body: LiquidPullToRefresh( body: LiquidPullToRefresh(
color: Colors.grey[900], color: backgroundColor,
height: 200, height: 100,
backgroundColor: Colors.grey[600], backgroundColor: Colors.grey[600],
onRefresh: _handleRefresh, onRefresh: _handleRefresh,
animSpeedFactor: 3, animSpeedFactor: 3,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment