-
-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix_2/#1538
- Loading branch information
Showing
180 changed files
with
1,588 additions
and
881 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
### What | ||
<!-- description of the PR --> | ||
- Changed x to achieve y | ||
- <!-- Changed x to achieve y --> | ||
|
||
### Screenshot | ||
<!-- Insert a screenshot to provide visual record of your changes, if visible --> | ||
|
||
### Fixes bug(s) | ||
<!-- change by appropriate issues. --> | ||
<!-- Please use a linking keyword https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword --> | ||
- Fixes: #1 | ||
- Closes: #2 | ||
- Fixes: <!-- #1 Note: you can also use Closes: --> | ||
|
||
### Part of | ||
- https://github.com/openfoodfacts/smooth-app/issues/525 | ||
<!-- please be as granular as possible --> | ||
- #525 <!-- Add the most granular issue possible --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/smooth_app/lib/cache/files/file_cache_manager_impl.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import 'package:flutter/widgets.dart'; | ||
|
||
/// A [SliverChildBuilderDelegate] that can show progress by displaying | ||
/// [loadingWidget]s. | ||
/// | ||
/// When [loading] is `true`, [loadingCount] of [loadingWidget] will be | ||
/// displayed. | ||
class LoadingSliverChildBuilderDelegate extends SliverChildBuilderDelegate { | ||
LoadingSliverChildBuilderDelegate({ | ||
required IndexedWidgetBuilder childBuilder, | ||
required int childCount, | ||
Widget? loadingWidget, | ||
int loadingCount = 4, | ||
bool loading = false, | ||
}) : assert(loading == false || loadingWidget != null), | ||
super( | ||
(BuildContext context, int index) => | ||
loading ? loadingWidget : childBuilder(context, index), | ||
childCount: loading ? loadingCount : childCount, | ||
); | ||
} |
Oops, something went wrong.