feat: integrate progress bar into app bar itself

This commit is contained in:
Alberto Ponces 2022-09-02 00:30:41 +01:00
parent 65e2814b99
commit 036e8c99b3

View File

@ -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( SliverPadding(
padding: const EdgeInsets.symmetric(horizontal: 20.0), padding: const EdgeInsets.all(20.0),
sliver: SliverList( sliver: SliverList(
delegate: SliverChildListDelegate.fixed( delegate: SliverChildListDelegate.fixed(
<Widget>[ <Widget>[
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( Container(
padding: const EdgeInsets.all(12.0), padding: const EdgeInsets.all(12.0),
width: double.infinity, width: double.infinity,