Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Fixed: #333 (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanvandeperre97 authored Oct 15, 2020
1 parent 86856f2 commit 95ef4c4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- iOS : fixed copy/paste menu
- Voice recognition : user can now use voice recognition on iOS
- Scan : The item label is now set when a barcode is scanned
- Progression : user can now see the progress bar

### Security

Expand Down
27 changes: 17 additions & 10 deletions lib/pages/openedListPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class OpenedListPageState extends State<OpenedListPage>
body: CustomScrollView(
slivers: <Widget>[
buildAppBar(context, wishlistHead),
buildProgressionBar(),
buildList(context, items, wishlistHead, provider),
],
),
Expand Down Expand Up @@ -455,17 +456,23 @@ class OpenedListPageState extends State<OpenedListPage>
);
}

Visibility progressindicator() {
Widget buildProgressionBar() {
int progress = GetIt.I.get<ItemsListProvider>().progress(_args.listUuid);
return Visibility(
visible: (progress > 0) ? true : false,
child: Padding(
padding: const EdgeInsets.all(8.0),
child: FAProgressBar(
currentValue: progress,
displayText: '%',
changeColorValue: 0,
changeProgressColor: _colorsApp.buttonColor,

return SliverToBoxAdapter(
child: Visibility(
visible: (progress > 0) ? true : false,
child: Container(
color: Colors.grey[200],
child: Padding(
padding: const EdgeInsets.all(8.0),
child: FAProgressBar(
currentValue: progress,
displayText: '%',
changeColorValue: 0,
changeProgressColor: _colorsApp.buttonColor,
),
),
),
),
);
Expand Down

0 comments on commit 95ef4c4

Please sign in to comment.