From 12f7cb86dec887796ec2718d8a92f6fa2e5c2934 Mon Sep 17 00:00:00 2001 From: Yegor Vialov Date: Wed, 15 Apr 2020 18:21:16 +0000 Subject: [PATCH] Linear progress indicator --- lib/pages/widgets/bottom_info_bar.dart | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/pages/widgets/bottom_info_bar.dart b/lib/pages/widgets/bottom_info_bar.dart index eff3b0e..af09da4 100644 --- a/lib/pages/widgets/bottom_info_bar.dart +++ b/lib/pages/widgets/bottom_info_bar.dart @@ -184,13 +184,7 @@ class _BottomInfoBarState extends State { } if (widget.controller.bottomBarProgress) { bottomBarChildren.add( - CollectionScaleTransition( - children: [ - Icon(Icons.stop, size: 10.0, color: HAClientTheme().getOnStateColor(context),), - Icon(Icons.stop, size: 10.0, color: HAClientTheme().getDisabledStateColor(context),), - Icon(Icons.stop, size: 10.0, color: HAClientTheme().getOffStateColor(context),), - ], - ), + LinearProgressIndicator(), ); } if (bottomBarChildren.isNotEmpty) { @@ -210,6 +204,8 @@ class _BottomInfoBarState extends State { ], ), ); + } else { + bottomBar = Container(height: 0,); } return bottomBar; }