From 036e8c99b3106f66a52adcf25c3b5c29d52e5e85 Mon Sep 17 00:00:00 2001 From: Alberto Ponces Date: Fri, 2 Sep 2022 00:30:41 +0100 Subject: [PATCH] feat: integrate progress bar into app bar itself --- lib/ui/views/installer/installer_view.dart | 23 +++++++++------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/lib/ui/views/installer/installer_view.dart b/lib/ui/views/installer/installer_view.dart index 62b3b95e..0bba79ab 100644 --- a/lib/ui/views/installer/installer_view.dart +++ b/lib/ui/views/installer/installer_view.dart @@ -46,25 +46,20 @@ class InstallerView extends StatelessWidget { ), ), ), + bottom: PreferredSize( + preferredSize: const Size(double.infinity, 1.0), + child: LinearProgressIndicator( + color: Theme.of(context).colorScheme.secondary, + backgroundColor: Colors.white, + value: model.progress, + ), + ), ), SliverPadding( - padding: const EdgeInsets.symmetric(horizontal: 20.0), + padding: const EdgeInsets.all(20.0), sliver: SliverList( delegate: SliverChildListDelegate.fixed( [ - Padding( - padding: const EdgeInsets.only( - left: 4.0, - top: 0.0, - right: 4.0, - bottom: 16.0, - ), - child: LinearProgressIndicator( - color: Theme.of(context).colorScheme.secondary, - backgroundColor: Colors.white, - value: model.progress, - ), - ), Container( padding: const EdgeInsets.all(12.0), width: double.infinity,