From d018815e7aa8cfbe8597c3809ab79ca82d609e05 Mon Sep 17 00:00:00 2001 From: Vyacheslav Pak Date: Wed, 29 Sep 2021 17:41:31 +0600 Subject: [PATCH 01/69] Templates and actions added --- .github/ISSUE_TEMPLATE/bug_report.md | 45 +++++++++++++++++ .../ISSUE_TEMPLATE/documentation_update.md | 24 ++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 24 ++++++++++ .github/PULL_REQUEST_TEMPLATE/bug_fix.md | 29 +++++++++++ .../documentation_update.md | 29 +++++++++++ .github/PULL_REQUEST_TEMPLATE/new_feature.md | 27 +++++++++++ .github/workflows/build.yaml | 48 +++++++++++++++++++ 7 files changed, 226 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/documentation_update.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/PULL_REQUEST_TEMPLATE/bug_fix.md create mode 100644 .github/PULL_REQUEST_TEMPLATE/documentation_update.md create mode 100644 .github/PULL_REQUEST_TEMPLATE/new_feature.md create mode 100644 .github/workflows/build.yaml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..3a48652 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,45 @@ +--- +name: Bug report +about: Something is wrong with Flutter Swipe Refresh. +title: "[BUG] " +labels: bug +assignees: MbIXjkee +--- + + + +## Prior Issues + +Are there any existing issues or PRs that relate to this problem? If so, link them here. + +## Describe the bug + +A clear and concise description of what the bug is. +Please show the code you wrote as completely as possible. + +```dart +/// your code here +``` + +## Steps to Reproduce + +If the current behavior is a bug, please provide the steps to reproduce. + +## What is the expected behavior? + +A clear and concise description of what you expected to happen. + +## Additional context + +* What package and OS are affected by this issue? Did this work in previous versions of a package? + +* If applicable, add screenshots to help explain your problem. + +* Please provide output from `flutter doctor -v` and `flutter analyze`. + +* Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/documentation_update.md b/.github/ISSUE_TEMPLATE/documentation_update.md new file mode 100644 index 0000000..0c7bf5b --- /dev/null +++ b/.github/ISSUE_TEMPLATE/documentation_update.md @@ -0,0 +1,24 @@ +--- +name: Documentation update +about: Fixing a problem or improve in an existing docs page. +labels: documentation +assignees: MbIXjkee +--- + + + +## Describe what scenario you think is uncovered by the existing examples / articles + +A clear and concise description of the problem that you want explained. + +## Describe why existing examples / articles do not cover this case + +Explain which examples / articles you have seen before making this request, and +why they did not help you with your problem. + +## Additional context + +Add any other context or screenshots about the documentation request here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..f5baad7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,24 @@ +--- +name: Feature Request +about: I'd like Flutter Swipe Refresh to do something new. +labels: enhancement +assignees: MbIXjkee +--- + + + +## What is the new or updated feature that you are suggesting? + +A clear and concise description of what you want to happen. + +## Why should this feature be included? + +Is your feature request related to a problem? Please describe a clear and concise description of what the problem is. If you investigated any alternative solutions please describe. + +## Additional context + +Please provide any other context or screenshots about the feature request here. diff --git a/.github/PULL_REQUEST_TEMPLATE/bug_fix.md b/.github/PULL_REQUEST_TEMPLATE/bug_fix.md new file mode 100644 index 0000000..66a216d --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/bug_fix.md @@ -0,0 +1,29 @@ +--- +name: Bug fix +about: Fixing a problem with Flutter Swipe Refresh. +assignees: MbIXjkee +--- + + + +## Checklist + +- [ ] Have you added an explanation of what your changes do and why you'd like us to include them? +- [ ] Is there an existing issue for this PR? + - _link issue here_ +- [ ] Have the files been linted and formatted? +- [ ] Have the docs been updated to match the changes in the PR? +- [ ] Have the tests been updated to match the changes in the PR? +- [ ] Have you run the tests locally to confirm they pass? + +## Changes + +### What is the current behavior, and the steps to reproduce the issue? + +### What is the expected behavior? + +### How does this PR fix the problem? diff --git a/.github/PULL_REQUEST_TEMPLATE/documentation_update.md b/.github/PULL_REQUEST_TEMPLATE/documentation_update.md new file mode 100644 index 0000000..c9565ec --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/documentation_update.md @@ -0,0 +1,29 @@ +--- +name: Documentation update +about: Fixing a problem or improve in an existing docs page. +labels: documentation +assignees: MbIXjkee +--- + + + +## Checklist + +- [ ] Is there an existing issue for this PR? + - _link issue here_ +- [ ] Have the files been linted and formatted? + +## Changes + +### What docs page needs to be fixed? + +- **Section**: +- **Page**: + +## What is the problem? + +## What changes does this PR make to fix the problem? diff --git a/.github/PULL_REQUEST_TEMPLATE/new_feature.md b/.github/PULL_REQUEST_TEMPLATE/new_feature.md new file mode 100644 index 0000000..7ebbb47 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/new_feature.md @@ -0,0 +1,27 @@ +--- +name: New feature +labels: enhancement +assignees: MbIXjkee +--- + + + +## Checklist + +- [ ] Have you added an explanation of what your changes do and why you'd like us to include them? +- [ ] Is there an existing issue for this PR? + - _link issue here_ +- [ ] Have the files been linted and formatted? +- [ ] Have the docs been updated to match the changes in the PR? +- [ ] Have the tests been updated to match the changes in the PR? +- [ ] Have you run the tests locally to confirm they pass? + +## New Features + +### What new capabilities does this PR add? + +### What docs changes are needed to explain this? diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..40df31d --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,48 @@ +name: build + +on: + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v2 + + - name: Install Flutter 🔧 + uses: subosito/flutter-action@v1 + with: + channel: "stable" + + - name: Install dependencies 🔧 + run: flutter pub get + + - name: Run dependency validator 🔍 + run: | + dart pub global activate dependency_validator + dart pub global run dependency_validator:dependency_validator + + - name: Run analyzer 🔍 + run: flutter analyze --fatal-warnings --fatal-infos . + + - name: Run formatter ⚙️ + run: flutter format --set-exit-if-changed . + + - name: Run tests ⚙️ + run: flutter test + + package-analysis: + runs-on: ubuntu-latest + + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v2 + + - name: Run package analyzer 🔍 + uses: axel-op/dart-package-analyzer@v3 + with: + githubToken: ${{ secrets.GITHUB_TOKEN }} From 09fd16b8d54839658968f87c35f34c979431b69a Mon Sep 17 00:00:00 2001 From: KristinaZoteva Date: Wed, 13 Oct 2021 16:00:01 +0300 Subject: [PATCH 02/69] Remove analizator errors from lib. Fix FIXME in cupertino_swipe_refresh.dart. --- lib/src/cupertino_swipe_refresh.dart | 53 +++-- lib/src/material_swipe_refresh.dart | 8 +- lib/src/swipe_refresh.dart | 71 ++++--- lib/src/swipe_refresh_base.dart | 72 +++---- pubspec.lock | 300 +++++++++++++++++++++++++++ 5 files changed, 422 insertions(+), 82 deletions(-) create mode 100644 pubspec.lock diff --git a/lib/src/cupertino_swipe_refresh.dart b/lib/src/cupertino_swipe_refresh.dart index be5bc77..186ce66 100644 --- a/lib/src/cupertino_swipe_refresh.dart +++ b/lib/src/cupertino_swipe_refresh.dart @@ -18,10 +18,15 @@ import 'package:flutter/cupertino.dart'; import 'package:swipe_refresh/src/swipe_refresh_base.dart'; import 'package:swipe_refresh/src/swipe_refresh_state.dart'; -// ignore_for_file: avoid-returning-widgets - /// Refresh indicator widget with Cupertino style. class CupertinoSwipeRefresh extends SwipeRefreshBase { + static const double defaultRefreshTriggerPullDistance = 100.0; + static const double defaultRefreshIndicatorExtent = 60.0; + + final double refreshTriggerPullDistance; + final double refreshIndicatorExtent; + final RefreshControlIndicatorBuilder indicatorBuilder; + const CupertinoSwipeRefresh({ required Stream stateStream, required VoidCallback onRefresh, @@ -35,7 +40,6 @@ class CupertinoSwipeRefresh extends SwipeRefreshBase { this.refreshTriggerPullDistance = defaultRefreshTriggerPullDistance, this.refreshIndicatorExtent = defaultRefreshIndicatorExtent, this.indicatorBuilder = CupertinoSliverRefreshControl.buildRefreshIndicator, - //FIXME add parameter to CustomScrollView, when fix it in Flutter ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior, ScrollPhysics? physics, }) : super( @@ -52,13 +56,6 @@ class CupertinoSwipeRefresh extends SwipeRefreshBase { physics: physics, ); - static const double defaultRefreshTriggerPullDistance = 100.0; - static const double defaultRefreshIndicatorExtent = 60.0; - - final double refreshTriggerPullDistance; - final double refreshIndicatorExtent; - final RefreshControlIndicatorBuilder indicatorBuilder; - @override // ignore: no_logic_in_create_state SwipeRefreshBaseState createState() => _CupertinoSwipeRefreshState( @@ -68,12 +65,12 @@ class CupertinoSwipeRefresh extends SwipeRefreshBase { class _CupertinoSwipeRefreshState extends SwipeRefreshBaseState { + final ScrollController _scrollController; + _CupertinoSwipeRefreshState( ScrollController? scrollController, ) : _scrollController = scrollController ?? ScrollController(); - final ScrollController _scrollController; - @override Widget buildRefresher( Key key, @@ -83,6 +80,8 @@ class _CupertinoSwipeRefreshState return CustomScrollView( shrinkWrap: widget.shrinkWrap, controller: _scrollController, + keyboardDismissBehavior: widget.keyboardDismissBehavior ?? + ScrollViewKeyboardDismissBehavior.onDrag, physics: widget.physics == null ? const BouncingScrollPhysics( parent: AlwaysScrollableScrollPhysics(), @@ -101,7 +100,11 @@ class _CupertinoSwipeRefreshState left: widget.padding == null, right: widget.padding == null, top: widget.padding == null, - sliver: _buildList(children), + sliver: _ListChildren( + children: children, + padding: widget.padding, + childrenDelegate: widget.childrenDelegate, + ), ), ], ); @@ -120,13 +123,27 @@ class _CupertinoSwipeRefreshState } } } +} + +class _ListChildren extends StatelessWidget { + final List children; + final EdgeInsets? padding; + final SliverChildDelegate? childrenDelegate; - Widget _buildList(List children) { - if (widget.padding != null) { + const _ListChildren({ + required this.children, + Key? key, + this.padding, + this.childrenDelegate, + }) : super(key: key); + + @override + Widget build(BuildContext context) { + if (padding != null) { return SliverPadding( - padding: widget.padding!, + padding: padding!, sliver: SliverList( - delegate: widget.childrenDelegate ?? + delegate: childrenDelegate ?? SliverChildListDelegate( children, ), @@ -134,7 +151,7 @@ class _CupertinoSwipeRefreshState ); } return SliverList( - delegate: widget.childrenDelegate ?? + delegate: childrenDelegate ?? SliverChildListDelegate( children, ), diff --git a/lib/src/material_swipe_refresh.dart b/lib/src/material_swipe_refresh.dart index b551268..e75f869 100644 --- a/lib/src/material_swipe_refresh.dart +++ b/lib/src/material_swipe_refresh.dart @@ -19,10 +19,11 @@ import 'package:flutter/widgets.dart'; import 'package:swipe_refresh/src/swipe_refresh_base.dart'; import 'package:swipe_refresh/src/swipe_refresh_state.dart'; -// ignore_for_file: avoid-returning-widgets - /// Refresh indicator widget with Material Design style. class MaterialSwipeRefresh extends SwipeRefreshBase { + final Color? indicatorColor; + final Color backgroundColor; + const MaterialSwipeRefresh({ required Stream stateStream, required VoidCallback onRefresh, @@ -52,9 +53,6 @@ class MaterialSwipeRefresh extends SwipeRefreshBase { physics: physics, ); - final Color? indicatorColor; - final Color backgroundColor; - @override _MaterialSwipeRefreshState createState() => _MaterialSwipeRefreshState(); } diff --git a/lib/src/swipe_refresh.dart b/lib/src/swipe_refresh.dart index 543f394..e5acf56 100644 --- a/lib/src/swipe_refresh.dart +++ b/lib/src/swipe_refresh.dart @@ -28,6 +28,23 @@ import 'package:swipe_refresh/src/swipe_refresh_style.dart'; /// Params for Cupertino style: /// [refreshTriggerPullDistance], [refreshIndicatorExtent], [indicatorBuilder]. class SwipeRefresh extends StatelessWidget { + final List? children; + final VoidCallback onRefresh; + final SwipeRefreshState? initState; + final Stream stateStream; + final Color? indicatorColor; + final Color backgroundColor; + final double refreshTriggerPullDistance; + final double refreshIndicatorExtent; + final RefreshControlIndicatorBuilder indicatorBuilder; + final SwipeRefreshStyle style; + final ScrollController? scrollController; + final SliverChildDelegate? childrenDelegate; + final EdgeInsets? padding; + final bool shrinkWrap; + final ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior; + final ScrollPhysics? physics; + const SwipeRefresh( this.style, { required this.stateStream, @@ -197,30 +214,8 @@ class SwipeRefresh extends StatelessWidget { ); } - final List? children; - final VoidCallback onRefresh; - final SwipeRefreshState? initState; - final Stream stateStream; - final Color? indicatorColor; - final Color backgroundColor; - final double refreshTriggerPullDistance; - final double refreshIndicatorExtent; - final RefreshControlIndicatorBuilder indicatorBuilder; - final SwipeRefreshStyle style; - final ScrollController? scrollController; - final SliverChildDelegate? childrenDelegate; - final EdgeInsets? padding; - final bool shrinkWrap; - final ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior; - final ScrollPhysics? physics; - @override Widget build(BuildContext context) { - return _buildByStyle(style); - } - - // ignore: avoid-returning-widgets - Widget _buildByStyle(SwipeRefreshStyle style) { switch (style) { case SwipeRefreshStyle.material: return MaterialSwipeRefresh( @@ -257,9 +252,37 @@ class SwipeRefresh extends StatelessWidget { case SwipeRefreshStyle.builder: case SwipeRefreshStyle.adaptive: if (Platform.isAndroid) { - return _buildByStyle(SwipeRefreshStyle.material); + return MaterialSwipeRefresh( + key: key, + childrenDelegate: childrenDelegate, + stateStream: stateStream, + initState: initState, + onRefresh: onRefresh, + scrollController: scrollController, + backgroundColor: backgroundColor, + indicatorColor: indicatorColor, + shrinkWrap: shrinkWrap, + padding: padding, + keyboardDismissBehavior: keyboardDismissBehavior, + physics: physics, + children: children, + ); } else if (Platform.isIOS) { - return _buildByStyle(SwipeRefreshStyle.cupertino); + return CupertinoSwipeRefresh( + key: key, + childrenDelegate: childrenDelegate, + stateStream: stateStream, + initState: initState, + onRefresh: onRefresh, + scrollController: scrollController, + refreshIndicatorExtent: refreshIndicatorExtent, + refreshTriggerPullDistance: refreshTriggerPullDistance, + indicatorBuilder: indicatorBuilder, + shrinkWrap: shrinkWrap, + padding: padding, + physics: physics, + children: children, + ); } } diff --git a/lib/src/swipe_refresh_base.dart b/lib/src/swipe_refresh_base.dart index 24e7672..d108dfb 100644 --- a/lib/src/swipe_refresh_base.dart +++ b/lib/src/swipe_refresh_base.dart @@ -19,6 +19,17 @@ import 'package:swipe_refresh/src/swipe_refresh_state.dart'; /// Base refresh indicator widget. abstract class SwipeRefreshBase extends StatefulWidget { + final List? children; + final VoidCallback onRefresh; + final SwipeRefreshState? initState; + final Stream stateStream; + final ScrollController? scrollController; + final SliverChildDelegate? childrenDelegate; + final EdgeInsets? padding; + final bool shrinkWrap; + final ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior; + final ScrollPhysics? physics; + const SwipeRefreshBase({ required this.stateStream, required this.onRefresh, @@ -35,17 +46,6 @@ abstract class SwipeRefreshBase extends StatefulWidget { (children != null || childrenDelegate != null)), super(key: key); - final List? children; - final VoidCallback onRefresh; - final SwipeRefreshState? initState; - final Stream stateStream; - final ScrollController? scrollController; - final SliverChildDelegate? childrenDelegate; - final EdgeInsets? padding; - final bool shrinkWrap; - final ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior; - final ScrollPhysics? physics; - @override @protected // ignore: no_logic_in_create_state @@ -55,9 +55,11 @@ abstract class SwipeRefreshBase extends StatefulWidget { abstract class SwipeRefreshBaseState extends State { @protected - Completer? completer; - @protected final GlobalKey refreshKey = GlobalKey(); + + @protected + Completer? completer; + StreamSubscription? _stateSubscription; SwipeRefreshState _currentState = SwipeRefreshState.hidden; @@ -75,20 +77,35 @@ abstract class SwipeRefreshBaseState @override Widget build(BuildContext context) { + // ignore: avoid-returning-widgets return buildRefresher(refreshKey, widget.children ?? [], _onRefresh); } - // ignore: avoid-returning-widgets - @protected - Widget buildRefresher( - Key key, - List children, - Future Function() onRefresh, - ); + @override + void dispose() { + _stateSubscription?.cancel(); + + super.dispose(); + } + + @protected + Widget buildRefresher( + Key key, + List children, + Future Function() onRefresh, + ); @protected void onUpdateState(SwipeRefreshState state); + @protected + Future _onRefresh() { + _currentState = SwipeRefreshState.loading; + widget.onRefresh(); + completer = Completer(); + return completer!.future; + } + void _updateState(SwipeRefreshState newState) { if (_currentState != newState) { setState( @@ -100,19 +117,4 @@ abstract class SwipeRefreshBaseState ); } } - - @protected - Future _onRefresh() { - _currentState = SwipeRefreshState.loading; - widget.onRefresh(); - completer = Completer(); - return completer!.future; - } - - @override - void dispose() { - _stateSubscription?.cancel(); - - super.dispose(); - } } diff --git a/pubspec.lock b/pubspec.lock new file mode 100644 index 0000000..0f5d9c0 --- /dev/null +++ b/pubspec.lock @@ -0,0 +1,300 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + _fe_analyzer_shared: + dependency: transitive + description: + name: _fe_analyzer_shared + url: "https://pub.dartlang.org" + source: hosted + version: "26.0.0" + analyzer: + dependency: transitive + description: + name: analyzer + url: "https://pub.dartlang.org" + source: hosted + version: "2.3.0" + analyzer_plugin: + dependency: transitive + description: + name: analyzer_plugin + url: "https://pub.dartlang.org" + source: hosted + version: "0.7.0" + ansicolor: + dependency: transitive + description: + name: ansicolor + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.1" + args: + dependency: transitive + description: + name: args + url: "https://pub.dartlang.org" + source: hosted + version: "2.3.0" + async: + dependency: transitive + description: + name: async + url: "https://pub.dartlang.org" + source: hosted + version: "2.8.1" + boolean_selector: + dependency: transitive + description: + name: boolean_selector + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.0" + characters: + dependency: transitive + description: + name: characters + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.0" + charcode: + dependency: transitive + description: + name: charcode + url: "https://pub.dartlang.org" + source: hosted + version: "1.3.1" + cli_util: + dependency: transitive + description: + name: cli_util + url: "https://pub.dartlang.org" + source: hosted + version: "0.3.5" + clock: + dependency: transitive + description: + name: clock + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.0" + collection: + dependency: transitive + description: + name: collection + url: "https://pub.dartlang.org" + source: hosted + version: "1.15.0" + convert: + dependency: transitive + description: + name: convert + url: "https://pub.dartlang.org" + source: hosted + version: "3.0.1" + crypto: + dependency: transitive + description: + name: crypto + url: "https://pub.dartlang.org" + source: hosted + version: "3.0.1" + csslib: + dependency: transitive + description: + name: csslib + url: "https://pub.dartlang.org" + source: hosted + version: "0.17.1" + dart_code_metrics: + dependency: transitive + description: + name: dart_code_metrics + url: "https://pub.dartlang.org" + source: hosted + version: "4.4.0" + dart_style: + dependency: transitive + description: + name: dart_style + url: "https://pub.dartlang.org" + source: hosted + version: "2.2.0" + fake_async: + dependency: transitive + description: + name: fake_async + url: "https://pub.dartlang.org" + source: hosted + version: "1.2.0" + file: + dependency: transitive + description: + name: file + url: "https://pub.dartlang.org" + source: hosted + version: "6.1.2" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_lints: + dependency: transitive + description: + name: flutter_lints + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.4" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + glob: + dependency: transitive + description: + name: glob + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.2" + html: + dependency: transitive + description: + name: html + url: "https://pub.dartlang.org" + source: hosted + version: "0.15.0" + lints: + dependency: transitive + description: + name: lints + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.1" + matcher: + dependency: transitive + description: + name: matcher + url: "https://pub.dartlang.org" + source: hosted + version: "0.12.10" + meta: + dependency: transitive + description: + name: meta + url: "https://pub.dartlang.org" + source: hosted + version: "1.7.0" + package_config: + dependency: transitive + description: + name: package_config + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.2" + path: + dependency: transitive + description: + name: path + url: "https://pub.dartlang.org" + source: hosted + version: "1.8.0" + pedantic: + dependency: transitive + description: + name: pedantic + url: "https://pub.dartlang.org" + source: hosted + version: "1.11.1" + pub_semver: + dependency: transitive + description: + name: pub_semver + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.0" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_span: + dependency: transitive + description: + name: source_span + url: "https://pub.dartlang.org" + source: hosted + version: "1.8.1" + stack_trace: + dependency: transitive + description: + name: stack_trace + url: "https://pub.dartlang.org" + source: hosted + version: "1.10.0" + stream_channel: + dependency: transitive + description: + name: stream_channel + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.0" + string_scanner: + dependency: transitive + description: + name: string_scanner + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.0" + surf_lint_rules: + dependency: "direct dev" + description: + name: surf_lint_rules + url: "https://pub.dartlang.org" + source: hosted + version: "1.4.0" + term_glyph: + dependency: transitive + description: + name: term_glyph + url: "https://pub.dartlang.org" + source: hosted + version: "1.2.0" + test_api: + dependency: transitive + description: + name: test_api + url: "https://pub.dartlang.org" + source: hosted + version: "0.4.2" + typed_data: + dependency: transitive + description: + name: typed_data + url: "https://pub.dartlang.org" + source: hosted + version: "1.3.0" + vector_math: + dependency: transitive + description: + name: vector_math + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.0" + watcher: + dependency: transitive + description: + name: watcher + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.1" + yaml: + dependency: transitive + description: + name: yaml + url: "https://pub.dartlang.org" + source: hosted + version: "3.1.0" +sdks: + dart: ">=2.14.0 <3.0.0" From 52629b2f0912f438dca4b06157ccf1bd4b156ae9 Mon Sep 17 00:00:00 2001 From: KristinaZoteva Date: Wed, 13 Oct 2021 16:04:21 +0300 Subject: [PATCH 03/69] Rename method _ListChildren on _ListChildrenWidget. --- example/pubspec.lock | 253 +++++++++++++++++++++++++++ lib/src/cupertino_swipe_refresh.dart | 6 +- 2 files changed, 256 insertions(+), 3 deletions(-) create mode 100644 example/pubspec.lock diff --git a/example/pubspec.lock b/example/pubspec.lock new file mode 100644 index 0000000..5c68e85 --- /dev/null +++ b/example/pubspec.lock @@ -0,0 +1,253 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + _fe_analyzer_shared: + dependency: transitive + description: + name: _fe_analyzer_shared + url: "https://pub.dartlang.org" + source: hosted + version: "26.0.0" + analyzer: + dependency: transitive + description: + name: analyzer + url: "https://pub.dartlang.org" + source: hosted + version: "2.3.0" + analyzer_plugin: + dependency: transitive + description: + name: analyzer_plugin + url: "https://pub.dartlang.org" + source: hosted + version: "0.7.0" + ansicolor: + dependency: transitive + description: + name: ansicolor + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.1" + args: + dependency: transitive + description: + name: args + url: "https://pub.dartlang.org" + source: hosted + version: "2.3.0" + async: + dependency: transitive + description: + name: async + url: "https://pub.dartlang.org" + source: hosted + version: "2.8.2" + characters: + dependency: transitive + description: + name: characters + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.0" + charcode: + dependency: transitive + description: + name: charcode + url: "https://pub.dartlang.org" + source: hosted + version: "1.3.1" + cli_util: + dependency: transitive + description: + name: cli_util + url: "https://pub.dartlang.org" + source: hosted + version: "0.3.5" + collection: + dependency: transitive + description: + name: collection + url: "https://pub.dartlang.org" + source: hosted + version: "1.15.0" + convert: + dependency: transitive + description: + name: convert + url: "https://pub.dartlang.org" + source: hosted + version: "3.0.1" + crypto: + dependency: transitive + description: + name: crypto + url: "https://pub.dartlang.org" + source: hosted + version: "3.0.1" + csslib: + dependency: transitive + description: + name: csslib + url: "https://pub.dartlang.org" + source: hosted + version: "0.17.1" + dart_code_metrics: + dependency: transitive + description: + name: dart_code_metrics + url: "https://pub.dartlang.org" + source: hosted + version: "4.4.0" + dart_style: + dependency: transitive + description: + name: dart_style + url: "https://pub.dartlang.org" + source: hosted + version: "2.2.0" + file: + dependency: transitive + description: + name: file + url: "https://pub.dartlang.org" + source: hosted + version: "6.1.2" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_lints: + dependency: transitive + description: + name: flutter_lints + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.4" + glob: + dependency: transitive + description: + name: glob + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.2" + html: + dependency: transitive + description: + name: html + url: "https://pub.dartlang.org" + source: hosted + version: "0.15.0" + lints: + dependency: transitive + description: + name: lints + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.1" + meta: + dependency: transitive + description: + name: meta + url: "https://pub.dartlang.org" + source: hosted + version: "1.7.0" + package_config: + dependency: transitive + description: + name: package_config + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.2" + path: + dependency: transitive + description: + name: path + url: "https://pub.dartlang.org" + source: hosted + version: "1.8.0" + pedantic: + dependency: transitive + description: + name: pedantic + url: "https://pub.dartlang.org" + source: hosted + version: "1.11.1" + pub_semver: + dependency: transitive + description: + name: pub_semver + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.0" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_span: + dependency: transitive + description: + name: source_span + url: "https://pub.dartlang.org" + source: hosted + version: "1.8.1" + string_scanner: + dependency: transitive + description: + name: string_scanner + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.0" + surf_lint_rules: + dependency: "direct dev" + description: + name: surf_lint_rules + url: "https://pub.dartlang.org" + source: hosted + version: "1.4.0" + swipe_refresh: + dependency: "direct main" + description: + path: ".." + relative: true + source: path + version: "1.0.1" + term_glyph: + dependency: transitive + description: + name: term_glyph + url: "https://pub.dartlang.org" + source: hosted + version: "1.2.0" + typed_data: + dependency: transitive + description: + name: typed_data + url: "https://pub.dartlang.org" + source: hosted + version: "1.3.0" + vector_math: + dependency: transitive + description: + name: vector_math + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.0" + watcher: + dependency: transitive + description: + name: watcher + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.1" + yaml: + dependency: transitive + description: + name: yaml + url: "https://pub.dartlang.org" + source: hosted + version: "3.1.0" +sdks: + dart: ">=2.14.0 <3.0.0" diff --git a/lib/src/cupertino_swipe_refresh.dart b/lib/src/cupertino_swipe_refresh.dart index 186ce66..fa2ae65 100644 --- a/lib/src/cupertino_swipe_refresh.dart +++ b/lib/src/cupertino_swipe_refresh.dart @@ -100,7 +100,7 @@ class _CupertinoSwipeRefreshState left: widget.padding == null, right: widget.padding == null, top: widget.padding == null, - sliver: _ListChildren( + sliver: _ListChildrenWidget( children: children, padding: widget.padding, childrenDelegate: widget.childrenDelegate, @@ -125,12 +125,12 @@ class _CupertinoSwipeRefreshState } } -class _ListChildren extends StatelessWidget { +class _ListChildrenWidget extends StatelessWidget { final List children; final EdgeInsets? padding; final SliverChildDelegate? childrenDelegate; - const _ListChildren({ + const _ListChildrenWidget({ required this.children, Key? key, this.padding, From d6c2e5495dbcda7ddb270f919162efc420840938 Mon Sep 17 00:00:00 2001 From: KristinaZoteva Date: Wed, 13 Oct 2021 16:05:40 +0300 Subject: [PATCH 04/69] flutter format . completed. --- lib/src/swipe_refresh_base.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/src/swipe_refresh_base.dart b/lib/src/swipe_refresh_base.dart index d108dfb..6c97e7b 100644 --- a/lib/src/swipe_refresh_base.dart +++ b/lib/src/swipe_refresh_base.dart @@ -88,12 +88,12 @@ abstract class SwipeRefreshBaseState super.dispose(); } - @protected - Widget buildRefresher( - Key key, - List children, - Future Function() onRefresh, - ); + @protected + Widget buildRefresher( + Key key, + List children, + Future Function() onRefresh, + ); @protected void onUpdateState(SwipeRefreshState state); From a60ffd7e38bb5a3b5dd71920f7dfa52a68482ab7 Mon Sep 17 00:00:00 2001 From: KristinaZoteva Date: Wed, 13 Oct 2021 16:40:40 +0300 Subject: [PATCH 05/69] Refactoring. --- lib/src/swipe_refresh.dart | 4 ++-- lib/src/swipe_refresh_state.dart | 2 +- lib/src/swipe_refresh_style.dart | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/src/swipe_refresh.dart b/lib/src/swipe_refresh.dart index e5acf56..5979a0a 100644 --- a/lib/src/swipe_refresh.dart +++ b/lib/src/swipe_refresh.dart @@ -170,9 +170,9 @@ class SwipeRefresh extends StatelessWidget { physics: physics, ); - /// Crete SwipeRefresh as common link + /// Create SwipeRefresh as common link /// remove some conflicts between ScrollControllers when ListView added into - /// SwipeRefresh (remove need to add extra ListView) + /// SwipeRefresh (remove need to add extra ListView). factory SwipeRefresh.builder({ required IndexedWidgetBuilder itemBuilder, required int itemCount, diff --git a/lib/src/swipe_refresh_state.dart b/lib/src/swipe_refresh_state.dart index 04433dc..14ddd8b 100644 --- a/lib/src/swipe_refresh_state.dart +++ b/lib/src/swipe_refresh_state.dart @@ -17,6 +17,6 @@ enum SwipeRefreshState { /// Indicator hidden. hidden, - /// Indicator showed. + /// Indicator shown. loading, } diff --git a/lib/src/swipe_refresh_style.dart b/lib/src/swipe_refresh_style.dart index a58de0a..cb30ba2 100644 --- a/lib/src/swipe_refresh_style.dart +++ b/lib/src/swipe_refresh_style.dart @@ -14,15 +14,15 @@ /// Indicator style. enum SwipeRefreshStyle { - /// Material Design + /// Material Design. material, - /// Cupertino + /// Cupertino. cupertino, - /// Adaptive + /// Adaptive. adaptive, - /// Builder + /// Builder. builder, } From a1f3f700418252271a45438dd0337798bf2fb7cd Mon Sep 17 00:00:00 2001 From: KristinaZoteva Date: Wed, 13 Oct 2021 17:01:54 +0300 Subject: [PATCH 06/69] Refactoring example. --- example/lib/main.dart | 124 ++++++++++++++++++++++++------------------ 1 file changed, 71 insertions(+), 53 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index 3b00df2..b97a979 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -17,8 +17,6 @@ import 'dart:async'; import 'package:flutter/material.dart'; import 'package:swipe_refresh/swipe_refresh.dart'; -// ignore_for_file: avoid-returning-widgets - void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { @@ -57,11 +55,11 @@ class _MainPageState extends State { padding: const EdgeInsets.only(top: 25), child: Column( children: [ - TabBar( + const TabBar( tabs: [ - _buildTab(SwipeRefreshStyle.material), - _buildTab(SwipeRefreshStyle.cupertino), - _buildTab(SwipeRefreshStyle.builder), + _TabWidget(style: SwipeRefreshStyle.material), + _TabWidget(style: SwipeRefreshStyle.cupertino), + _TabWidget(style: SwipeRefreshStyle.builder), ], ), Expanded( @@ -71,13 +69,17 @@ class _MainPageState extends State { stateStream: _stream, onRefresh: _refresh, padding: const EdgeInsets.symmetric(vertical: 10), - children: _buildExampleBody(SwipeRefreshStyle.material), + children: const [ + _ExampleBodyWidget(style: SwipeRefreshStyle.material), + ], ), SwipeRefresh.cupertino( stateStream: _stream, onRefresh: _refresh, padding: const EdgeInsets.symmetric(vertical: 10), - children: _buildExampleBody(SwipeRefreshStyle.cupertino), + children: const [ + _ExampleBodyWidget(style: SwipeRefreshStyle.cupertino), + ], ), SwipeRefresh.builder( stateStream: _stream, @@ -114,69 +116,85 @@ class _MainPageState extends State { super.dispose(); } - Widget _buildTab(SwipeRefreshStyle style) { - var color = _getColor(style); - color = color.withOpacity(.5); + Future _refresh() async { + await Future.delayed(const Duration(seconds: 3)); + // when all needed is done change state + _controller.sink.add(SwipeRefreshState.hidden); + } +} + +class _TabWidget extends StatelessWidget { + final SwipeRefreshStyle style; + + const _TabWidget({ + required this.style, + Key? key, + }) : super(key: key); + + @override + Widget build(BuildContext context) { return InkWell( child: SizedBox( height: 100, child: Center( child: Text( _getText(style), - style: TextStyle(color: color), + style: TextStyle(color: _getColor(style).withOpacity(0.5)), ), ), ), ); } +} - List _buildExampleBody(SwipeRefreshStyle style) { - final isMaterial = style == SwipeRefreshStyle.material; - final color = _getColor(style); - return [ - Container( - color: color, - height: 100, - child: Center( - child: Text( - isMaterial ? 'Material example' : 'Cupertino example', - style: const TextStyle(color: white), - ), +class _ExampleBodyWidget extends StatelessWidget { + final SwipeRefreshStyle style; + + const _ExampleBodyWidget({ + required this.style, + Key? key, + }) : super(key: key); + + @override + Widget build(BuildContext context) { + return Container( + color: _getColor(style), + height: 100, + child: Center( + child: Text( + style == SwipeRefreshStyle.material + ? 'Material example' + : 'Cupertino example', + style: const TextStyle(color: white), ), ), - ]; - } - - Color _getColor(SwipeRefreshStyle style) { - switch (style) { - case SwipeRefreshStyle.material: - return red; - case SwipeRefreshStyle.cupertino: - return blue; - case SwipeRefreshStyle.builder: - return green; - default: - return black; - } + ); } +} - String _getText(SwipeRefreshStyle style) { - switch (style) { - case SwipeRefreshStyle.material: - return 'Material'; - case SwipeRefreshStyle.cupertino: - return 'Cupertino'; - case SwipeRefreshStyle.builder: - return 'Builder'; - default: - return 'SipeRefresh'; - } +Color _getColor(SwipeRefreshStyle style) { + switch (style) { + case SwipeRefreshStyle.material: + return red; + case SwipeRefreshStyle.cupertino: + return blue; + case SwipeRefreshStyle.builder: + return green; + default: + return black; } +} - Future _refresh() async { - await Future.delayed(const Duration(seconds: 3)); - // when all needed is done change state - _controller.sink.add(SwipeRefreshState.hidden); +String _getText(SwipeRefreshStyle style) { + switch (style) { + case SwipeRefreshStyle.material: + return 'Material'; + case SwipeRefreshStyle.cupertino: + return 'Cupertino'; + case SwipeRefreshStyle.builder: + return 'Builder'; + default: + return 'SwipeRefresh'; } } From 8f4f8afe2ceb10bd264812f613ab50062e2b0666 Mon Sep 17 00:00:00 2001 From: KristinaZoteva Date: Wed, 13 Oct 2021 17:19:41 +0300 Subject: [PATCH 07/69] Refactoring README.md, CONTRIBUTING.md and pubspec.yaml. --- CHANGELOG.md | 4 ++++ CONTRIBUTING.md | 34 ++++++++++++++++++---------------- README.md | 10 +++++----- pubspec.yaml | 4 ++-- 4 files changed, 29 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8668af6..dfd9117 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## next + +*Refactoring. + ## 1.0.1 - 2021-05-30 * Stable release diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 496da65..dc53313 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,27 +6,29 @@ Thank you for your help! Before you start, let's take a look at some agreements. Make sure that your code: -1. Does not contain analyzer errors -2. Follows a [official style](https://dart.dev/guides/language/effective-dart/style) -3. Follows the official [style of formatting](https://flutter.dev/docs/development/tools/formatting) -3. Contains no errors -4. New functionality is covered by tests. New functionality passes old tests -5. Create example that demonstrate new functionality if it is possible +1. Does not contain analyzer errors. +2. Follows a [official style](https://dart.dev/guides/language/effective-dart/style). +3. Follows the official [style of formatting](https://flutter.dev/docs/development/tools/formatting) + . +3. Contains no errors. +4. New functionality is covered by tests. New functionality passes old tests. +5. Create example that demonstrate new functionality if it is possible. ## Accepting the changes -After your pull request passes the review code, the project maintainers will merge the changes -into the branch to which the pull request was sent. +After your pull request passes the review code, the project maintainers will merge the changes into +the branch to which the pull request was sent. ## Issues Feel free to report any issues and bugs. -1. To report about the problem, create an issue on GithHub -2. In the issue add the description of the problem -3. Do not forget to mention your development environment, Flutter version, libraries required for - illustration of the problem -4. It is necessary to attach the code part that causes an issue or to make a small demo project - that shows the issue -5. Attach stack trace so it helps us to deal with the issue -6. If the issue is related to graphics, screen recording is required +1. To report about the problem, create + an [Issues](https://github.com/surfstudio/flutter-otp-autofill/issues) on GitHub. +2. In the issue add the description of the problem. +3. Do not forget to mention your development environment, Flutter version, libraries required for + illustration of the problem. +4. It is necessary to attach the code part that causes an issue or to make a small demo project that + shows the issue. +5. Attach stack trace so it helps us to deal with the issue. +6. If the issue is related to graphics, screen recording is required. diff --git a/README.md b/README.md index 8679172..162ac6b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Swipe Refresh -[![Build Status](https://shields.io/github/workflow/status/surfstudio/SurfGear/build?logo=github&logoColor=white)](https://github.com/surfstudio/SurfGear/tree/main/packages/swipe_refresh) -[![Coverage Status](https://img.shields.io/codecov/c/github/surfstudio/SurfGear?flag=swipe_refresh&logo=codecov&logoColor=white)](https://codecov.io/gh/surfstudio/SurfGear) +[![Build Status](https://shields.io/github/workflow/status/surfstudio/SurfGear/build?logo=github&logoColor=white)](https://github.com/surfstudio/flutter-swipe-refresh) +[![Coverage Status](https://img.shields.io/codecov/c/github/surfstudio/SurfGear?flag=swipe_refresh&logo=codecov&logoColor=white)](https://app.codecov.io/gh/surfstudio/flutter-swipe-refresh) [![Pub Version](https://img.shields.io/pub/v/swipe_refresh?logo=dart&logoColor=white)](https://pub.dev/packages/swipe_refresh) [![Pub Likes](https://badgen.net/pub/likes/swipe_refresh)](https://pub.dev/packages/swipe_refresh) [![Pub popularity](https://badgen.net/pub/popularity/swipe_refresh)](https://pub.dev/packages/swipe_refresh/score) @@ -31,7 +31,7 @@ Add `swipe_refresh` to your `pubspec.yaml` file: ```yaml dependencies: - swipe_refresh: ^1.0.0 + swipe_refresh: ^1.0.1 ``` You can use both `stable` and `dev` versions of the package listed above in the badges bar. @@ -42,11 +42,11 @@ All notable changes to this project will be documented in [this file](./CHANGELO ## Issues -For issues, file directly in the Issues section. +For issues, file directly in the [Issues](https://github.com/surfstudio/flutter-swipe-refresh/issues) section. ## Contribute -If you would like to contribute to the package (e.g. by improving the documentation, solving a bug or adding a cool new feature), please review our [contribution guide](../../CONTRIBUTING.md) first and send us your pull request. +If you would like to contribute to the package (e.g. by improving the documentation, solving a bug or adding a cool new feature), please review our [contribution guide](./CONTRIBUTING.md) first and send us your pull request. Your PRs are always welcome. diff --git a/pubspec.yaml b/pubspec.yaml index aa1b419..7ca4fdf 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,8 +1,8 @@ name: swipe_refresh version: 1.0.1 description: Widget for refresh by swipe. -repository: "https://github.com/surfstudio/SurfGear/tree/main/packages/swipe_refresh" -issue_tracker: "https://github.com/surfstudio/SurfGear/issues" +repository: "https://github.com/surfstudio/flutter-swipe-refresh" +issue_tracker: "https://github.com/surfstudio/flutter-swipe-refresh/issues" dependencies: flutter: From c64446b2f3225ab1f3e1ae16be3004653a016385 Mon Sep 17 00:00:00 2001 From: zhukeev Date: Fri, 15 Oct 2021 17:28:25 +0600 Subject: [PATCH 08/69] new github workflow --- .github/workflows/build.yaml | 48 ------------- .github/workflows/workflow.yaml | 124 ++++++++++++++++++++++++++++++++ .gitignore | 17 +++-- 3 files changed, 136 insertions(+), 53 deletions(-) delete mode 100644 .github/workflows/build.yaml create mode 100644 .github/workflows/workflow.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml deleted file mode 100644 index 40df31d..0000000 --- a/.github/workflows/build.yaml +++ /dev/null @@ -1,48 +0,0 @@ -name: build - -on: - pull_request: - branches: - - main - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout 🛎️ - uses: actions/checkout@v2 - - - name: Install Flutter 🔧 - uses: subosito/flutter-action@v1 - with: - channel: "stable" - - - name: Install dependencies 🔧 - run: flutter pub get - - - name: Run dependency validator 🔍 - run: | - dart pub global activate dependency_validator - dart pub global run dependency_validator:dependency_validator - - - name: Run analyzer 🔍 - run: flutter analyze --fatal-warnings --fatal-infos . - - - name: Run formatter ⚙️ - run: flutter format --set-exit-if-changed . - - - name: Run tests ⚙️ - run: flutter test - - package-analysis: - runs-on: ubuntu-latest - - steps: - - name: Checkout 🛎️ - uses: actions/checkout@v2 - - - name: Run package analyzer 🔍 - uses: axel-op/dart-package-analyzer@v3 - with: - githubToken: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml new file mode 100644 index 0000000..a97dc12 --- /dev/null +++ b/.github/workflows/workflow.yaml @@ -0,0 +1,124 @@ +name: "Analysis" + +on: + pull_request: + branches: + - main + push: + branches: + - main + +jobs: + analysis: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install Flutter + uses: subosito/flutter-action@v1 + with: + channel: "stable" + + - name: Content + id: check_license + uses: andstor/file-existence-action@v1 + with: + files: "LICENSE, README.md, example, CHANGELOG.md, CONTRIBUTING.md" + + - name: File exists + if: steps.check_files.outputs.files_exists == 'true' + run: echo Content is ok! + + - name: Check Description + run: echo | grep -q Description README.md ; echo $? + + - name: Check Example + run: echo | grep -q Example README.md ; echo $? + + - name: Check Installation + run: echo | grep -q Installation README.md ; echo $? + + - name: Install dependencies + run: flutter pub get + + - name: Run dependency validator + run: | + dart pub global activate dependency_validator + dart pub global run dependency_validator:dependency_validator + - name: Run analyzer + run: flutter analyze --fatal-warnings --fatal-infos . + + - name: Run formatter + run: flutter format --set-exit-if-changed . + + - name: Run package analyzer + uses: axel-op/dart-package-analyzer@v3 + with: + githubToken: ${{ secrets.GITHUB_TOKEN }} + + testing: + needs: analysis + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install Flutter + uses: subosito/flutter-action@v1 + with: + channel: "stable" + + - name: Install dependencies + run: flutter pub get + + - name: Run tests + run: flutter test + + build_android_example: + needs: analysis + runs-on: ubuntu-latest + + steps: + # Setup Java environment in order to build the Android app. + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: "12.x" + + - name: Install Flutter + uses: subosito/flutter-action@v1 + with: + channel: "stable" + + - name: Install dependencies + run: flutter pub get + + - name: Build Android + run: | + cd example + flutter pub get + flutter build apk + + build_ios_example: + needs: analysis + runs-on: macos-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install Flutter + uses: subosito/flutter-action@v1 + with: + channel: "stable" + + - name: Install dependencies + run: flutter pub get + + - name: Build iOS + run: | + cd example + flutter pub get + flutter build ios --release --no-codesign diff --git a/.gitignore b/.gitignore index 9f87252..dd440d4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,10 @@ +.idea + +build/ +ios/.generated/ +ios/Flutter/Generated.xcconfig +ios/Runner/GeneratedPluginRegistrant.* + # Miscellaneous *.class *.log @@ -15,10 +22,8 @@ *.iws .idea/ -# The .vscode folder contains launch configuration and tasks you configure in -# VS Code which you may wish to be included in version control, so this line -# is commented out by default. -#.vscode/ +# Visual Studio Code related +.vscode/ # Flutter/Dart/Pub related **/doc/api/ @@ -27,7 +32,8 @@ .packages .pub-cache/ .pub/ -build/ +/build/ +*.lock # Android related **/android/**/gradle-wrapper.jar @@ -58,6 +64,7 @@ build/ **/ios/Flutter/App.framework **/ios/Flutter/Flutter.framework **/ios/Flutter/Generated.xcconfig +**/ios/Flutter/flutter_export_environment.sh **/ios/Flutter/app.flx **/ios/Flutter/app.zip **/ios/Flutter/flutter_assets/ From 6ccc2d9e0298b52bca87ac96a01f484c26aee5de Mon Sep 17 00:00:00 2001 From: KristinaZoteva Date: Fri, 15 Oct 2021 17:47:01 +0300 Subject: [PATCH 09/69] Rework tests, add PlatformWrapper. --- lib/src/swipe_refresh.dart | 22 ++-- lib/utills/platform_wrapper.dart | 16 +++ pubspec.yaml | 1 + test/swipe_refresh_adaptive_test.dart | 142 ++++++++++++++++++++ test/swipe_refresh_cupertino_test.dart | 169 +++++++++++++++--------- test/swipe_refresh_material_test.dart | 172 ++++++++++++++++--------- test/swipe_refresh_test.dart | 80 ------------ test/swipe_refresh_with_builder.dart | 68 ++++++++++ test/test_utils.dart | 2 +- 9 files changed, 466 insertions(+), 206 deletions(-) create mode 100644 lib/utills/platform_wrapper.dart create mode 100644 test/swipe_refresh_adaptive_test.dart delete mode 100644 test/swipe_refresh_test.dart create mode 100644 test/swipe_refresh_with_builder.dart diff --git a/lib/src/swipe_refresh.dart b/lib/src/swipe_refresh.dart index 5979a0a..f960507 100644 --- a/lib/src/swipe_refresh.dart +++ b/lib/src/swipe_refresh.dart @@ -12,13 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. -import 'dart:io'; - import 'package:flutter/cupertino.dart'; import 'package:swipe_refresh/src/cupertino_swipe_refresh.dart'; import 'package:swipe_refresh/src/material_swipe_refresh.dart'; import 'package:swipe_refresh/src/swipe_refresh_state.dart'; import 'package:swipe_refresh/src/swipe_refresh_style.dart'; +import 'package:swipe_refresh/utills/platform_wrapper.dart'; /// Refresh indicator widget. /// @@ -44,8 +43,9 @@ class SwipeRefresh extends StatelessWidget { final bool shrinkWrap; final ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior; final ScrollPhysics? physics; + final PlatformWrapper _platform; - const SwipeRefresh( + SwipeRefresh( this.style, { required this.stateStream, required this.onRefresh, @@ -63,6 +63,7 @@ class SwipeRefresh extends StatelessWidget { double? refreshTriggerPullDistance, double? refreshIndicatorExtent, RefreshControlIndicatorBuilder? indicatorBuilder, + PlatformWrapper? platform, }) : backgroundColor = backgroundColor ?? const Color(0xFFFFFFFF), refreshTriggerPullDistance = refreshTriggerPullDistance ?? CupertinoSwipeRefresh.defaultRefreshTriggerPullDistance, @@ -70,10 +71,11 @@ class SwipeRefresh extends StatelessWidget { CupertinoSwipeRefresh.defaultRefreshIndicatorExtent, indicatorBuilder = indicatorBuilder ?? CupertinoSliverRefreshControl.buildRefreshIndicator, + _platform = platform ?? PlatformWrapper(), super(key: key); /// Create refresh indicator adaptive to platform. - const SwipeRefresh.adaptive({ + SwipeRefresh.adaptive({ required Stream stateStream, required VoidCallback onRefresh, required List children, @@ -89,6 +91,7 @@ class SwipeRefresh extends StatelessWidget { bool shrinkWrap = false, ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior, ScrollPhysics? physics, + PlatformWrapper? platform, }) : this( SwipeRefreshStyle.adaptive, key: key, @@ -106,10 +109,11 @@ class SwipeRefresh extends StatelessWidget { shrinkWrap: shrinkWrap, keyboardDismissBehavior: keyboardDismissBehavior, physics: physics, + platform: platform, ); /// Create refresh indicator with Material Design style. - const SwipeRefresh.material({ + SwipeRefresh.material({ required Stream stateStream, required VoidCallback onRefresh, required List children, @@ -139,7 +143,7 @@ class SwipeRefresh extends StatelessWidget { ); /// Create refresh indicator with Cupertino style. - const SwipeRefresh.cupertino({ + SwipeRefresh.cupertino({ required Stream stateStream, required VoidCallback onRefresh, required List children, @@ -190,6 +194,7 @@ class SwipeRefresh extends StatelessWidget { bool shrinkWrap = false, ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior, ScrollPhysics? physics, + PlatformWrapper? platform, }) { return SwipeRefresh( SwipeRefreshStyle.adaptive, @@ -211,6 +216,7 @@ class SwipeRefresh extends StatelessWidget { itemBuilder, childCount: itemCount, ), + platform: platform, ); } @@ -251,7 +257,7 @@ class SwipeRefresh extends StatelessWidget { ); case SwipeRefreshStyle.builder: case SwipeRefreshStyle.adaptive: - if (Platform.isAndroid) { + if (_platform.getPlatform() == TargetPlatform.android) { return MaterialSwipeRefresh( key: key, childrenDelegate: childrenDelegate, @@ -267,7 +273,7 @@ class SwipeRefresh extends StatelessWidget { physics: physics, children: children, ); - } else if (Platform.isIOS) { + } else if (_platform.getPlatform() == TargetPlatform.iOS) { return CupertinoSwipeRefresh( key: key, childrenDelegate: childrenDelegate, diff --git a/lib/utills/platform_wrapper.dart b/lib/utills/platform_wrapper.dart new file mode 100644 index 0000000..9e93bf7 --- /dev/null +++ b/lib/utills/platform_wrapper.dart @@ -0,0 +1,16 @@ +import 'dart:io'; + +import 'package:flutter/cupertino.dart'; + +/// Wrapper for Platform io. +class PlatformWrapper { + TargetPlatform? getPlatform() { + if (Platform.isAndroid) { + return TargetPlatform.android; + } else { + if (Platform.isIOS) { + return TargetPlatform.iOS; + } + } + } +} diff --git a/pubspec.yaml b/pubspec.yaml index 7ca4fdf..f80ed67 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,6 +11,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter + mocktail: ^0.2.0 surf_lint_rules: ^1.0.0 environment: diff --git a/test/swipe_refresh_adaptive_test.dart b/test/swipe_refresh_adaptive_test.dart new file mode 100644 index 0000000..f9cb9d1 --- /dev/null +++ b/test/swipe_refresh_adaptive_test.dart @@ -0,0 +1,142 @@ +// Copyright (c) 2019-present, SurfStudio LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +import 'dart:async'; + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:mocktail/mocktail.dart'; +import 'package:swipe_refresh/swipe_refresh.dart'; +import 'package:swipe_refresh/utills/platform_wrapper.dart'; + +import 'test_utils.dart'; + +void main() { + late StreamController _controller; + late Stream stream; + late MockPlatformWrapper platformWrapper; + + setUp(() { + _controller = StreamController.broadcast(); + stream = _controller.stream; + + platformWrapper = MockPlatformWrapper(); + }); + + tearDown(() async { + await _controller.close(); + }); + + Future _onRefresh() async { + await Future.delayed(const Duration(seconds: 3)); + + _controller.sink.add(SwipeRefreshState.hidden); + } + + final listColors = [ + Colors.blue, + Colors.green, + Colors.red, + Colors.amber, + ]; + + testWidgets( + 'When call SwipeRefresh.adaptive not on android or iOS platform should build normally with one Container', + (tester) async { + final adaptiveSwipeRefresh = makeTestableWidget( + SwipeRefresh.adaptive( + stateStream: stream, + onRefresh: _onRefresh, + children: listColors + .map( + (e) => Container( + color: e, + height: 100, + ), + ) + .toList(), + platform: platformWrapper, + ), + ); + + await tester.pumpWidget(adaptiveSwipeRefresh); + + expect(() => adaptiveSwipeRefresh, returnsNormally); + + expect(find.byType(Container), findsOneWidget); + }, + ); + + testWidgets( + 'When call SwipeRefresh.adaptive on android platform should build MaterialSwipeRefresh', + (tester) async { + when(() => platformWrapper.getPlatform()) + .thenReturn(TargetPlatform.android); + + final adaptiveSwipeRefresh = makeTestableWidget( + SwipeRefresh.adaptive( + stateStream: stream, + onRefresh: _onRefresh, + children: listColors + .map( + (e) => Container( + color: e, + height: 100, + ), + ) + .toList(), + platform: platformWrapper, + ), + ); + + await tester.pumpWidget(adaptiveSwipeRefresh); + + expect(() => adaptiveSwipeRefresh, returnsNormally); + + expect(find.byType(MaterialSwipeRefresh), findsOneWidget); + }, + ); + + testWidgets( + 'When call SwipeRefresh.adaptive on iOS platform should build CupertinoSwipeRefresh', + (tester) async { + when(() => platformWrapper.getPlatform()) + .thenReturn(TargetPlatform.iOS); + + final adaptiveSwipeRefresh = makeTestableWidget( + SwipeRefresh.adaptive( + stateStream: stream, + onRefresh: _onRefresh, + children: listColors + .map( + (e) => Container( + color: e, + height: 100, + ), + ) + .toList(), + platform: platformWrapper, + ), + ); + + await tester.pumpWidget(adaptiveSwipeRefresh); + + expect(() => adaptiveSwipeRefresh, returnsNormally); + + expect(find.byType(CupertinoSwipeRefresh), findsOneWidget); + }, + ); +} + +class MockPlatformWrapper extends Mock implements PlatformWrapper {} diff --git a/test/swipe_refresh_cupertino_test.dart b/test/swipe_refresh_cupertino_test.dart index 9a25412..680dffb 100644 --- a/test/swipe_refresh_cupertino_test.dart +++ b/test/swipe_refresh_cupertino_test.dart @@ -14,6 +14,7 @@ import 'dart:async'; +import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:swipe_refresh/swipe_refresh.dart'; @@ -21,81 +22,133 @@ import 'package:swipe_refresh/swipe_refresh.dart'; import 'test_utils.dart'; void main() { - group('SwipeRefresh.cupertino', () { - late StreamController _controller; - late Stream stream; - - setUp(() { - _controller = StreamController.broadcast(); - stream = _controller.stream; - }); - - tearDown(() async { - await _controller.close(); - }); - - Future _onRefresh() async { - await Future.delayed(const Duration(seconds: 3)); - - _controller.sink.add(SwipeRefreshState.hidden); - } - - group("doesn't break", () { - testWidgets('with children as argument', (tester) async { - final testWidget = makeTestableWidget( - SwipeRefresh.cupertino( - stateStream: stream, - onRefresh: _onRefresh, - children: Colors.primaries - .map( - (e) => Container( - color: e, - height: 100, - ), - ) - .toList(), - ), - ); - - await tester.pumpWidget(testWidget); - }); - }); - - testWidgets('emits hidden state on drag after 3 seconds', (tester) async { - final events = []; + late StreamController _streamController; + late Stream stream; + + setUp(() { + _streamController = StreamController.broadcast(); + stream = _streamController.stream; + }); + + tearDown(() async { + await _streamController.close(); + }); - stream.listen(expectAsync1(events.add)); + Future _onRefresh() async { + _streamController.sink.add(SwipeRefreshState.loading); - final testWidget = makeTestableWidget( + await Future.delayed(const Duration(seconds: 3)); + + _streamController.sink.add(SwipeRefreshState.hidden); + } + + final listColors = [ + Colors.blue, + Colors.green, + Colors.red, + Colors.amber, + ]; + + testWidgets( + 'SwipeRefresh.cupertino widget with children as argument does not break', + (tester) async { + final cupertinoSwipeRefresh = makeTestableWidget( SwipeRefresh.cupertino( stateStream: stream, onRefresh: _onRefresh, - children: const [ - SizedBox(height: 100), - SizedBox(height: 100), - ], + children: listColors + .map( + (e) => Container( + color: e, + height: 100, + ), + ) + .toList(), ), ); - await tester.pumpWidget(testWidget); + await tester.pumpWidget(cupertinoSwipeRefresh); - expect(events, isEmpty); + expect(() => cupertinoSwipeRefresh, returnsNormally); + + expect(find.byType(Container), findsNWidgets(4)); + + expect(find.byType(CupertinoSwipeRefresh), findsOneWidget); + }, + ); + + testWidgets( + 'When drag down enough, the refresh should start with the correct statuses', + (tester) async { + final events = []; + + stream.listen(events.add); + + final cupertinoSwipeRefresh = makeTestableWidget( + SwipeRefresh.cupertino( + stateStream: stream, + onRefresh: _onRefresh, + children: listColors + .map( + (e) => Container( + color: e, + height: 100, + ), + ) + .toList(), + ), + ); - /// drag is not enouth to trugger refresh - await tester.drag(find.byType(SwipeRefresh), const Offset(0, 100)); + await tester.pumpWidget(cupertinoSwipeRefresh); expect(events, isEmpty); - await tester.drag(find.byType(SwipeRefresh), const Offset(0, 300)); + await tester.drag( + find.byType(SwipeRefresh), + const Offset(0, 300), + touchSlopY: 0, + ); await tester.pump(const Duration(seconds: 1)); - /// event must reveal after 3 seconds - expect(events, isEmpty); + expect(events, equals([SwipeRefreshState.loading])); await tester.pump(const Duration(seconds: 3)); - expect(events, equals([SwipeRefreshState.hidden])); - }); - }); + expect(events.last, equals(SwipeRefreshState.hidden)); + }, + ); + + testWidgets( + 'When drag down is not enough to trigger an update the update should not be', + (tester) async { + final events = []; + + stream.listen(events.add); + + final cupertinoSwipeRefresh = makeTestableWidget( + SwipeRefresh.cupertino( + stateStream: stream, + onRefresh: _onRefresh, + children: listColors + .map( + (e) => Container( + color: e, + height: 100, + ), + ) + .toList(), + ), + ); + + await tester.pumpWidget(cupertinoSwipeRefresh); + + expect(events, isEmpty); + + await tester.drag(find.byType(SwipeRefresh), const Offset(0.0, 50.0)); + await tester.pump(); + + expect(events, isEmpty); + }, + ); } diff --git a/test/swipe_refresh_material_test.dart b/test/swipe_refresh_material_test.dart index 30f4743..c02d10a 100644 --- a/test/swipe_refresh_material_test.dart +++ b/test/swipe_refresh_material_test.dart @@ -21,81 +21,135 @@ import 'package:swipe_refresh/swipe_refresh.dart'; import 'test_utils.dart'; void main() { - group('SwipeRefresh.material', () { - late StreamController _controller; - late Stream stream; - - setUp(() { - _controller = StreamController.broadcast(); - stream = _controller.stream; - }); - - tearDown(() async { - await _controller.close(); - }); - - Future _onRefresh() async { - await Future.delayed(const Duration(seconds: 3)); - - _controller.sink.add(SwipeRefreshState.hidden); - } - - group("doesn't break", () { - testWidgets('with children as argument', (tester) async { - final testWidget = makeTestableWidget( - SwipeRefresh.material( - stateStream: stream, - onRefresh: _onRefresh, - children: Colors.primaries - .map( - (e) => Container( - color: e, - height: 100, - ), - ) - .toList(), - ), - ); - - await tester.pumpWidget(testWidget); - }); - }); - - testWidgets('emits hidden state on drag after 3 seconds', (tester) async { - final events = []; + late StreamController _controller; + late Stream stream; + + setUp(() { + _controller = StreamController.broadcast(); + stream = _controller.stream; + }); + + tearDown(() async { + await _controller.close(); + }); - stream.listen(expectAsync1(events.add)); + Future _onRefresh() async { + _controller.sink.add(SwipeRefreshState.loading); - final testWidget = makeTestableWidget( + await Future.delayed(const Duration(seconds: 3)); + + _controller.sink.add(SwipeRefreshState.hidden); + } + + final listColors = [ + Colors.blue, + Colors.green, + Colors.red, + Colors.amber, + ]; + + testWidgets( + 'SwipeRefresh.material widget with children as argument does not break', + (tester) async { + final materialSwipeRefresh = makeTestableWidget( SwipeRefresh.material( stateStream: stream, onRefresh: _onRefresh, - children: const [ - SizedBox(height: 100), - SizedBox(height: 100), - ], + children: listColors + .map( + (e) => Container( + color: e, + height: 100, + ), + ) + .toList(), ), ); - await tester.pumpWidget(testWidget); + await tester.pumpWidget(materialSwipeRefresh); - expect(events, isEmpty); + expect(() => materialSwipeRefresh, returnsNormally); - /// drag is not enouth to trugger refresh - await tester.drag(find.byType(SwipeRefresh), const Offset(0, 100)); + expect(find.byType(Container), findsNWidgets(4)); - expect(events, isEmpty); + expect(find.byType(MaterialSwipeRefresh), findsOneWidget); + }, + ); + + testWidgets( + 'When drag down enough, the refresh should start with the correct statuses', + (tester) async { + final events = []; + + stream.listen(events.add); + + final materialSwipeRefresh = makeTestableWidget( + SwipeRefresh.material( + stateStream: stream, + onRefresh: _onRefresh, + children: listColors + .map( + (e) => Container( + color: e, + height: 100, + ), + ) + .toList(), + ), + ); - await tester.drag(find.byType(SwipeRefresh), const Offset(0, 300)); + await tester.pumpWidget(materialSwipeRefresh); + await tester.drag( + find.byType(SwipeRefresh), + const Offset(0, 300), + touchSlopY: 0, + ); + await tester.pump(); await tester.pump(const Duration(seconds: 1)); - /// event must reveal after 3 seconds - expect(events, isEmpty); + expect(events, equals([SwipeRefreshState.loading])); await tester.pump(const Duration(seconds: 3)); - expect(events, equals([SwipeRefreshState.hidden])); - }); - }); + expect(events.last, equals(SwipeRefreshState.hidden)); + }, + ); + + testWidgets( + 'When drag down is not enough to trigger an update the update should not be', + (tester) async { + final events = []; + + stream.listen(events.add); + + final materialSwipeRefresh = makeTestableWidget( + SwipeRefresh.material( + stateStream: stream, + onRefresh: _onRefresh, + children: listColors + .map( + (e) => Container( + color: e, + height: 100, + ), + ) + .toList(), + ), + ); + await tester.pumpWidget(materialSwipeRefresh); + + expect(events, isEmpty); + + await tester.drag( + find.byType(SwipeRefresh), + const Offset(0, 50), + touchSlopY: 0, + ); + + await tester.pump(); + + expect(events, isEmpty); + }, + ); } diff --git a/test/swipe_refresh_test.dart b/test/swipe_refresh_test.dart deleted file mode 100644 index fae7597..0000000 --- a/test/swipe_refresh_test.dart +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) 2019-present, SurfStudio LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -import 'dart:async'; - -import 'package:flutter/material.dart'; -import 'package:flutter_test/flutter_test.dart'; -import 'package:swipe_refresh/swipe_refresh.dart'; - -import 'test_utils.dart'; - -void main() { - group('SwipeRefresh', () { - late StreamController _controller; - late Stream stream; - - setUp(() { - _controller = StreamController.broadcast(); - stream = _controller.stream; - }); - - tearDown(() async { - await _controller.close(); - }); - - Future _onRefresh() async { - await Future.delayed(const Duration(seconds: 3)); - - _controller.sink.add(SwipeRefreshState.hidden); - } - - group("doesn't break", () { - testWidgets('with children as argument', (tester) async { - final testWidget = makeTestableWidget( - SwipeRefresh.adaptive( - stateStream: stream, - onRefresh: _onRefresh, - children: Colors.primaries - .map( - (e) => Container( - color: e, - height: 100, - ), - ) - .toList(), - ), - ); - - await tester.pumpWidget(testWidget); - }); - - testWidgets('with itemBuilder as argument', (tester) async { - final testWidget = makeTestableWidget( - SwipeRefresh.builder( - stateStream: stream, - onRefresh: _onRefresh, - itemCount: Colors.primaries.length, - itemBuilder: (_, index) => Container( - color: Colors.primaries[index], - height: 100, - ), - ), - ); - - await tester.pumpWidget(testWidget); - }); - }); - }); -} diff --git a/test/swipe_refresh_with_builder.dart b/test/swipe_refresh_with_builder.dart new file mode 100644 index 0000000..b4c5c83 --- /dev/null +++ b/test/swipe_refresh_with_builder.dart @@ -0,0 +1,68 @@ +import 'dart:async'; + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:mocktail/mocktail.dart'; +import 'package:swipe_refresh/swipe_refresh.dart'; +import 'package:swipe_refresh/utills/platform_wrapper.dart'; + +import 'test_utils.dart'; + +void main() { + late StreamController _controller; + late Stream stream; + + late MockPlatformWrapper platformWrapper; + + setUp(() { + _controller = StreamController.broadcast(); + stream = _controller.stream; + + platformWrapper = MockPlatformWrapper(); + }); + + tearDown(() async { + await _controller.close(); + }); + + Future _onRefresh() async { + await Future.delayed(const Duration(seconds: 3)); + + _controller.sink.add(SwipeRefreshState.hidden); + } + + final listColors = [ + Colors.blue, + Colors.green, + Colors.red, + Colors.amber, + ]; + + testWidgets( + 'SwipeRefresh.builder with itemBuilder as argument builds normally(iOS platform as example)', + (tester) async { + when(() => platformWrapper.getPlatform()).thenReturn(TargetPlatform.iOS); + + final testWidget = makeTestableWidget( + SwipeRefresh.builder( + stateStream: stream, + onRefresh: _onRefresh, + itemCount: listColors.length, + itemBuilder: (_, index) => Container( + color: listColors[index], + height: 100, + ), + platform: platformWrapper, + ), + ); + + await tester.pumpWidget(testWidget); + + expect(() => testWidget, returnsNormally); + + expect(find.byType(Container), findsNWidgets(4)); + }, + ); +} + +class MockPlatformWrapper extends Mock implements PlatformWrapper {} diff --git a/test/test_utils.dart b/test/test_utils.dart index cf7674f..2ecff09 100644 --- a/test/test_utils.dart +++ b/test/test_utils.dart @@ -13,5 +13,5 @@ // limitations under the License. import 'package:flutter/material.dart'; - +// ignore: avoid-returning-widgets Widget makeTestableWidget(Widget widget) => MaterialApp(home: widget); From 6840e39bfc2324f941f11c15e474168d0c9222d7 Mon Sep 17 00:00:00 2001 From: KristinaZoteva Date: Fri, 15 Oct 2021 17:50:30 +0300 Subject: [PATCH 10/69] Fix after checking the editor. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 162ac6b..aa6be04 100644 --- a/README.md +++ b/README.md @@ -42,11 +42,11 @@ All notable changes to this project will be documented in [this file](./CHANGELO ## Issues -For issues, file directly in the [Issues](https://github.com/surfstudio/flutter-swipe-refresh/issues) section. +To report your issues, submit them directly in the [Issues](https://github.com/surfstudio/flutter-swipe-refresh/issues) section. ## Contribute -If you would like to contribute to the package (e.g. by improving the documentation, solving a bug or adding a cool new feature), please review our [contribution guide](./CONTRIBUTING.md) first and send us your pull request. +If you would like to contribute to the package (e.g. by improving the documentation, fixing a bug or adding a cool new feature), please read our [contribution guide](./CONTRIBUTING.md) first and send us your pull request. Your PRs are always welcome. From 7722a15b282a797f19bba658426bc7d737c5c3e7 Mon Sep 17 00:00:00 2001 From: Kristina Zotyeva Date: Mon, 18 Oct 2021 13:11:08 +0300 Subject: [PATCH 11/69] Fix CONTRIBUTING.md . --- CONTRIBUTING.md | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index dc53313..d607fb3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,29 +6,27 @@ Thank you for your help! Before you start, let's take a look at some agreements. Make sure that your code: -1. Does not contain analyzer errors. -2. Follows a [official style](https://dart.dev/guides/language/effective-dart/style). -3. Follows the official [style of formatting](https://flutter.dev/docs/development/tools/formatting) - . -3. Contains no errors. -4. New functionality is covered by tests. New functionality passes old tests. -5. Create example that demonstrate new functionality if it is possible. +1. Does not contain analyzer errors. +2. Follows a [official style](https://dart.dev/guides/language/effective-dart/style). +3. Follows the official [style of formatting](https://flutter.dev/docs/development/tools/formatting). +4. Contains no errors. +5. New functionality is covered by tests. New functionality passes old tests. +6. Create example that demonstrate new functionality if it is possible. ## Accepting the changes -After your pull request passes the review code, the project maintainers will merge the changes into -the branch to which the pull request was sent. +After your pull request passes the review code, the project maintainers will merge the changes +into the branch to which the pull request was sent. ## Issues Feel free to report any issues and bugs. -1. To report about the problem, create - an [Issues](https://github.com/surfstudio/flutter-otp-autofill/issues) on GitHub. -2. In the issue add the description of the problem. -3. Do not forget to mention your development environment, Flutter version, libraries required for - illustration of the problem. -4. It is necessary to attach the code part that causes an issue or to make a small demo project that - shows the issue. -5. Attach stack trace so it helps us to deal with the issue. -6. If the issue is related to graphics, screen recording is required. +1. To report about the problem, create an issue on GitHub. +2. In the issue add the description of the problem. +3. Do not forget to mention your development environment, Flutter version, libraries required for + illustration of the problem. +4. It is necessary to attach the code part that causes an issue or to make a small demo project + that shows the issue. +5. Attach stack trace so it helps us to deal with the issue. +6. If the issue is related to graphics, screen recording is required. From 3d59e1fdcbf8768a72fd7a750afd572d082a520b Mon Sep 17 00:00:00 2001 From: zhukeev Date: Tue, 19 Oct 2021 14:51:30 +0600 Subject: [PATCH 12/69] repo update --- pubspec.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index aa1b419..839f9b8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,8 +1,8 @@ name: swipe_refresh version: 1.0.1 -description: Widget for refresh by swipe. -repository: "https://github.com/surfstudio/SurfGear/tree/main/packages/swipe_refresh" -issue_tracker: "https://github.com/surfstudio/SurfGear/issues" +description: A widget provided to the flutter scroll component drop-down refresh and pull up load. +repository: "https://github.com/surfstudio/flutter-swipe-refresh" +issue_tracker: "https://github.com/surfstudio/flutter-swipe-refresh/issues" dependencies: flutter: From 66a695cabe92650e0cac5632eeac6a19040b6b90 Mon Sep 17 00:00:00 2001 From: zhukeev Date: Tue, 19 Oct 2021 14:56:33 +0600 Subject: [PATCH 13/69] mainkt updated --- .../src/main/kotlin/com/example/example/MainActivity.kt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt b/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt index e793a00..e2c0fd3 100644 --- a/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt +++ b/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt @@ -1,6 +1,13 @@ package com.example.example -import io.flutter.embedding.android.FlutterActivity +import android.os.Bundle + +import io.flutter.app.FlutterActivity +import io.flutter.plugins.GeneratedPluginRegistrant class MainActivity: FlutterActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + GeneratedPluginRegistrant.registerWith(this) + } } From 6d7b0b417f098c9068791e16504e3bb703d7c339 Mon Sep 17 00:00:00 2001 From: zhukeev Date: Tue, 19 Oct 2021 14:59:37 +0600 Subject: [PATCH 14/69] readme fix --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8679172..0e3c20a 100644 --- a/README.md +++ b/README.md @@ -9,14 +9,14 @@ This package is part of the [SurfGear](https://github.com/surfstudio/SurfGear) toolkit made by [Surf](https://surf.ru). -## About +## Description Widget for refresh by swipe. ![](media/material.gif) ![](media/cupertino.gif) -## Usage +## Example Main classes: From cc80c94266b16221731d6c827ce63eff95be25c8 Mon Sep 17 00:00:00 2001 From: zhukeev Date: Tue, 19 Oct 2021 15:11:01 +0600 Subject: [PATCH 15/69] gradle version updated --- example/android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/android/build.gradle b/example/android/build.gradle index c505a86..5588645 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -6,7 +6,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:4.1.0' + classpath 'com.android.tools.build:gradle:4.2.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } From 3e6819c66c6ce6888dabaec2760c02275b8772b3 Mon Sep 17 00:00:00 2001 From: zhukeev Date: Tue, 19 Oct 2021 15:24:10 +0600 Subject: [PATCH 16/69] gradle wapper version changed --- example/android/gradle/wrapper/gradle-wrapper.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/android/gradle/wrapper/gradle-wrapper.properties b/example/android/gradle/wrapper/gradle-wrapper.properties index bc6a58a..939efa2 100644 --- a/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/example/android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip From 5296d3e5ec1cf24bafbce845d18c40dfa9a8b025 Mon Sep 17 00:00:00 2001 From: zhukeev Date: Tue, 19 Oct 2021 15:37:27 +0600 Subject: [PATCH 17/69] main cleared --- .../app/src/main/kotlin/com/example/example/MainActivity.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt b/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt index e2c0fd3..61a97be 100644 --- a/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt +++ b/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt @@ -6,8 +6,5 @@ import io.flutter.app.FlutterActivity import io.flutter.plugins.GeneratedPluginRegistrant class MainActivity: FlutterActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - GeneratedPluginRegistrant.registerWith(this) - } + } From 042ca275722ed5335b898ded3be6b4c865aaaa06 Mon Sep 17 00:00:00 2001 From: KristinaZoteva Date: Thu, 21 Oct 2021 11:13:32 +0300 Subject: [PATCH 18/69] Updated gitignore. --- .gitignore | 16 ++- example/.gitignore | 20 +-- example/pubspec.lock | 253 ------------------------------------ pubspec.lock | 300 ------------------------------------------- 4 files changed, 23 insertions(+), 566 deletions(-) delete mode 100644 example/pubspec.lock delete mode 100644 pubspec.lock diff --git a/.gitignore b/.gitignore index 9f87252..761d64c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # Miscellaneous *.class +*.lock *.log *.pyc *.swp @@ -15,15 +16,17 @@ *.iws .idea/ -# The .vscode folder contains launch configuration and tasks you configure in -# VS Code which you may wish to be included in version control, so this line -# is commented out by default. -#.vscode/ +# Visual Studio Code related +.classpath +.project +.settings/ +.vscode/ # Flutter/Dart/Pub related **/doc/api/ .dart_tool/ .flutter-plugins +.flutter-plugins-dependencies .packages .pub-cache/ .pub/ @@ -58,15 +61,18 @@ build/ **/ios/Flutter/App.framework **/ios/Flutter/Flutter.framework **/ios/Flutter/Generated.xcconfig +**/ios/Flutter/flutter_export_environment.sh **/ios/Flutter/app.flx **/ios/Flutter/app.zip **/ios/Flutter/flutter_assets/ **/ios/ServiceDefinitions.json **/ios/Runner/GeneratedPluginRegistrant.* +# Coverage +coverage/ + # Exceptions to above rules. !**/ios/**/default.mode1v3 !**/ios/**/default.mode2v3 !**/ios/**/default.pbxuser !**/ios/**/default.perspectivev3 -!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages diff --git a/example/.gitignore b/example/.gitignore index 10c16ab..761d64c 100644 --- a/example/.gitignore +++ b/example/.gitignore @@ -1,5 +1,6 @@ # Miscellaneous *.class +*.lock *.log *.pyc *.swp @@ -15,19 +16,21 @@ *.iws .idea/ -# The .vscode folder contains launch configuration and tasks you configure in -# VS Code which you may wish to be included in version control, so this line -# is commented out by default. -#.vscode/ +# Visual Studio Code related +.classpath +.project +.settings/ +.vscode/ # Flutter/Dart/Pub related **/doc/api/ .dart_tool/ .flutter-plugins +.flutter-plugins-dependencies .packages .pub-cache/ .pub/ -/build/ +build/ # Android related **/android/**/gradle-wrapper.jar @@ -58,17 +61,18 @@ **/ios/Flutter/App.framework **/ios/Flutter/Flutter.framework **/ios/Flutter/Generated.xcconfig +**/ios/Flutter/flutter_export_environment.sh **/ios/Flutter/app.flx **/ios/Flutter/app.zip **/ios/Flutter/flutter_assets/ -**/ios/Flutter/flutter_export_environment.sh **/ios/ServiceDefinitions.json **/ios/Runner/GeneratedPluginRegistrant.* -**/ios/Podfile + +# Coverage +coverage/ # Exceptions to above rules. !**/ios/**/default.mode1v3 !**/ios/**/default.mode2v3 !**/ios/**/default.pbxuser !**/ios/**/default.perspectivev3 -!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages diff --git a/example/pubspec.lock b/example/pubspec.lock deleted file mode 100644 index 5c68e85..0000000 --- a/example/pubspec.lock +++ /dev/null @@ -1,253 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - _fe_analyzer_shared: - dependency: transitive - description: - name: _fe_analyzer_shared - url: "https://pub.dartlang.org" - source: hosted - version: "26.0.0" - analyzer: - dependency: transitive - description: - name: analyzer - url: "https://pub.dartlang.org" - source: hosted - version: "2.3.0" - analyzer_plugin: - dependency: transitive - description: - name: analyzer_plugin - url: "https://pub.dartlang.org" - source: hosted - version: "0.7.0" - ansicolor: - dependency: transitive - description: - name: ansicolor - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" - args: - dependency: transitive - description: - name: args - url: "https://pub.dartlang.org" - source: hosted - version: "2.3.0" - async: - dependency: transitive - description: - name: async - url: "https://pub.dartlang.org" - source: hosted - version: "2.8.2" - characters: - dependency: transitive - description: - name: characters - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.0" - charcode: - dependency: transitive - description: - name: charcode - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.1" - cli_util: - dependency: transitive - description: - name: cli_util - url: "https://pub.dartlang.org" - source: hosted - version: "0.3.5" - collection: - dependency: transitive - description: - name: collection - url: "https://pub.dartlang.org" - source: hosted - version: "1.15.0" - convert: - dependency: transitive - description: - name: convert - url: "https://pub.dartlang.org" - source: hosted - version: "3.0.1" - crypto: - dependency: transitive - description: - name: crypto - url: "https://pub.dartlang.org" - source: hosted - version: "3.0.1" - csslib: - dependency: transitive - description: - name: csslib - url: "https://pub.dartlang.org" - source: hosted - version: "0.17.1" - dart_code_metrics: - dependency: transitive - description: - name: dart_code_metrics - url: "https://pub.dartlang.org" - source: hosted - version: "4.4.0" - dart_style: - dependency: transitive - description: - name: dart_style - url: "https://pub.dartlang.org" - source: hosted - version: "2.2.0" - file: - dependency: transitive - description: - name: file - url: "https://pub.dartlang.org" - source: hosted - version: "6.1.2" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_lints: - dependency: transitive - description: - name: flutter_lints - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.4" - glob: - dependency: transitive - description: - name: glob - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.2" - html: - dependency: transitive - description: - name: html - url: "https://pub.dartlang.org" - source: hosted - version: "0.15.0" - lints: - dependency: transitive - description: - name: lints - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.1" - meta: - dependency: transitive - description: - name: meta - url: "https://pub.dartlang.org" - source: hosted - version: "1.7.0" - package_config: - dependency: transitive - description: - name: package_config - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.2" - path: - dependency: transitive - description: - name: path - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.0" - pedantic: - dependency: transitive - description: - name: pedantic - url: "https://pub.dartlang.org" - source: hosted - version: "1.11.1" - pub_semver: - dependency: transitive - description: - name: pub_semver - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_span: - dependency: transitive - description: - name: source_span - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.1" - string_scanner: - dependency: transitive - description: - name: string_scanner - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.0" - surf_lint_rules: - dependency: "direct dev" - description: - name: surf_lint_rules - url: "https://pub.dartlang.org" - source: hosted - version: "1.4.0" - swipe_refresh: - dependency: "direct main" - description: - path: ".." - relative: true - source: path - version: "1.0.1" - term_glyph: - dependency: transitive - description: - name: term_glyph - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.0" - typed_data: - dependency: transitive - description: - name: typed_data - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.0" - vector_math: - dependency: transitive - description: - name: vector_math - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - watcher: - dependency: transitive - description: - name: watcher - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.1" - yaml: - dependency: transitive - description: - name: yaml - url: "https://pub.dartlang.org" - source: hosted - version: "3.1.0" -sdks: - dart: ">=2.14.0 <3.0.0" diff --git a/pubspec.lock b/pubspec.lock deleted file mode 100644 index 0f5d9c0..0000000 --- a/pubspec.lock +++ /dev/null @@ -1,300 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - _fe_analyzer_shared: - dependency: transitive - description: - name: _fe_analyzer_shared - url: "https://pub.dartlang.org" - source: hosted - version: "26.0.0" - analyzer: - dependency: transitive - description: - name: analyzer - url: "https://pub.dartlang.org" - source: hosted - version: "2.3.0" - analyzer_plugin: - dependency: transitive - description: - name: analyzer_plugin - url: "https://pub.dartlang.org" - source: hosted - version: "0.7.0" - ansicolor: - dependency: transitive - description: - name: ansicolor - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" - args: - dependency: transitive - description: - name: args - url: "https://pub.dartlang.org" - source: hosted - version: "2.3.0" - async: - dependency: transitive - description: - name: async - url: "https://pub.dartlang.org" - source: hosted - version: "2.8.1" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - characters: - dependency: transitive - description: - name: characters - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.0" - charcode: - dependency: transitive - description: - name: charcode - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.1" - cli_util: - dependency: transitive - description: - name: cli_util - url: "https://pub.dartlang.org" - source: hosted - version: "0.3.5" - clock: - dependency: transitive - description: - name: clock - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.0" - collection: - dependency: transitive - description: - name: collection - url: "https://pub.dartlang.org" - source: hosted - version: "1.15.0" - convert: - dependency: transitive - description: - name: convert - url: "https://pub.dartlang.org" - source: hosted - version: "3.0.1" - crypto: - dependency: transitive - description: - name: crypto - url: "https://pub.dartlang.org" - source: hosted - version: "3.0.1" - csslib: - dependency: transitive - description: - name: csslib - url: "https://pub.dartlang.org" - source: hosted - version: "0.17.1" - dart_code_metrics: - dependency: transitive - description: - name: dart_code_metrics - url: "https://pub.dartlang.org" - source: hosted - version: "4.4.0" - dart_style: - dependency: transitive - description: - name: dart_style - url: "https://pub.dartlang.org" - source: hosted - version: "2.2.0" - fake_async: - dependency: transitive - description: - name: fake_async - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.0" - file: - dependency: transitive - description: - name: file - url: "https://pub.dartlang.org" - source: hosted - version: "6.1.2" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_lints: - dependency: transitive - description: - name: flutter_lints - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.4" - flutter_test: - dependency: "direct dev" - description: flutter - source: sdk - version: "0.0.0" - glob: - dependency: transitive - description: - name: glob - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.2" - html: - dependency: transitive - description: - name: html - url: "https://pub.dartlang.org" - source: hosted - version: "0.15.0" - lints: - dependency: transitive - description: - name: lints - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.1" - matcher: - dependency: transitive - description: - name: matcher - url: "https://pub.dartlang.org" - source: hosted - version: "0.12.10" - meta: - dependency: transitive - description: - name: meta - url: "https://pub.dartlang.org" - source: hosted - version: "1.7.0" - package_config: - dependency: transitive - description: - name: package_config - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.2" - path: - dependency: transitive - description: - name: path - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.0" - pedantic: - dependency: transitive - description: - name: pedantic - url: "https://pub.dartlang.org" - source: hosted - version: "1.11.1" - pub_semver: - dependency: transitive - description: - name: pub_semver - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_span: - dependency: transitive - description: - name: source_span - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.1" - stack_trace: - dependency: transitive - description: - name: stack_trace - url: "https://pub.dartlang.org" - source: hosted - version: "1.10.0" - stream_channel: - dependency: transitive - description: - name: stream_channel - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - string_scanner: - dependency: transitive - description: - name: string_scanner - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.0" - surf_lint_rules: - dependency: "direct dev" - description: - name: surf_lint_rules - url: "https://pub.dartlang.org" - source: hosted - version: "1.4.0" - term_glyph: - dependency: transitive - description: - name: term_glyph - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.0" - test_api: - dependency: transitive - description: - name: test_api - url: "https://pub.dartlang.org" - source: hosted - version: "0.4.2" - typed_data: - dependency: transitive - description: - name: typed_data - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.0" - vector_math: - dependency: transitive - description: - name: vector_math - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - watcher: - dependency: transitive - description: - name: watcher - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.1" - yaml: - dependency: transitive - description: - name: yaml - url: "https://pub.dartlang.org" - source: hosted - version: "3.1.0" -sdks: - dart: ">=2.14.0 <3.0.0" From eaf4f7018963beba601beef2018932b66f0aecc8 Mon Sep 17 00:00:00 2001 From: Kristina Zotyeva Date: Fri, 22 Oct 2021 23:30:05 +0300 Subject: [PATCH 19/69] =?UTF-8?q?=D0=A1hanged=20imports=20for=20TargetPlat?= =?UTF-8?q?form.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/src/swipe_refresh.dart | 1 + lib/utills/platform_wrapper.dart | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/swipe_refresh.dart b/lib/src/swipe_refresh.dart index f960507..95ec236 100644 --- a/lib/src/swipe_refresh.dart +++ b/lib/src/swipe_refresh.dart @@ -13,6 +13,7 @@ // limitations under the License. import 'package:flutter/cupertino.dart'; +import 'package:flutter/foundation.dart'; import 'package:swipe_refresh/src/cupertino_swipe_refresh.dart'; import 'package:swipe_refresh/src/material_swipe_refresh.dart'; import 'package:swipe_refresh/src/swipe_refresh_state.dart'; diff --git a/lib/utills/platform_wrapper.dart b/lib/utills/platform_wrapper.dart index 9e93bf7..bf37fa7 100644 --- a/lib/utills/platform_wrapper.dart +++ b/lib/utills/platform_wrapper.dart @@ -1,6 +1,6 @@ import 'dart:io'; -import 'package:flutter/cupertino.dart'; +import 'package:flutter/foundation.dart'; /// Wrapper for Platform io. class PlatformWrapper { From 9dcee2e9c89243ec17cc40ddd1bcad3994d904b6 Mon Sep 17 00:00:00 2001 From: Kristina Zotyeva Date: Tue, 26 Oct 2021 16:37:57 +0300 Subject: [PATCH 20/69] Remove date from CHANGELOG.md. --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dfd9117..f8d23de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,11 +4,11 @@ *Refactoring. -## 1.0.1 - 2021-05-30 +## 1.0.1 * Stable release -## 1.0.1-dev.1 - 2021-05-25 +## 1.0.1-dev.1 * Apply new lint rules. From c7dbcb78a12332cad7eaf38bafc3c98e95f61aa4 Mon Sep 17 00:00:00 2001 From: Kristina Zotyeva Date: Wed, 27 Oct 2021 11:20:56 +0300 Subject: [PATCH 21/69] Connection coverage and fix README.md(remove installation section). --- .github/workflows/build.yaml | 7 ++++++- README.md | 15 ++------------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 40df31d..346f322 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -33,7 +33,12 @@ jobs: run: flutter format --set-exit-if-changed . - name: Run tests ⚙️ - run: flutter test + env: + CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}} + if: success() + run: | + flutter test --coverage + bash <(curl -s https://codecov.io/bash) -f coverage/lcov.info package-analysis: runs-on: ubuntu-latest diff --git a/README.md b/README.md index 162ac6b..8856347 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Swipe Refresh -[![Build Status](https://shields.io/github/workflow/status/surfstudio/SurfGear/build?logo=github&logoColor=white)](https://github.com/surfstudio/flutter-swipe-refresh) -[![Coverage Status](https://img.shields.io/codecov/c/github/surfstudio/SurfGear?flag=swipe_refresh&logo=codecov&logoColor=white)](https://app.codecov.io/gh/surfstudio/flutter-swipe-refresh) +[![Build Status](https://shields.io/github/workflow/status/surfstudio/flutter-swipe-refresh/build?logo=github&logoColor=white)](https://github.com/surfstudio/flutter-swipe-refresh) +[![Coverage Status](https://img.shields.io/codecov/c/github/surfstudio/flutter-swipe-refresh?logo=codecov&logoColor=white)](https://app.codecov.io/gh/surfstudio/flutter-swipe-refresh) [![Pub Version](https://img.shields.io/pub/v/swipe_refresh?logo=dart&logoColor=white)](https://pub.dev/packages/swipe_refresh) [![Pub Likes](https://badgen.net/pub/likes/swipe_refresh)](https://pub.dev/packages/swipe_refresh) [![Pub popularity](https://badgen.net/pub/popularity/swipe_refresh)](https://pub.dev/packages/swipe_refresh/score) @@ -25,17 +25,6 @@ Main classes: 3. [Widget for indicate swipe refresh Material style](lib/src/material_swipe_refresh.dart) 4. [Widget for indicate swipe refresh Cupertino style](lib/src/cupertino_swipe_refresh.dart) -## Installation - -Add `swipe_refresh` to your `pubspec.yaml` file: - -```yaml -dependencies: - swipe_refresh: ^1.0.1 -``` - -You can use both `stable` and `dev` versions of the package listed above in the badges bar. - ## Changelog All notable changes to this project will be documented in [this file](./CHANGELOG.md). From 97e7b09d3cfb4ea95c4044a33915eaacc0f6cdc8 Mon Sep 17 00:00:00 2001 From: Kristina Zotyeva Date: Wed, 27 Oct 2021 14:15:28 +0300 Subject: [PATCH 22/69] Improved PlatformWrapper, add test for PlatformWrapper. --- lib/src/swipe_refresh.dart | 66 +++++++++++++-------------- lib/utills/platform_wrapper.dart | 30 ++++++++---- test/platform_wrapper_test.dart | 42 +++++++++++++++++ test/swipe_refresh_adaptive_test.dart | 24 +++++----- test/swipe_refresh_with_builder.dart | 17 ++++++- 5 files changed, 124 insertions(+), 55 deletions(-) create mode 100644 test/platform_wrapper_test.dart diff --git a/lib/src/swipe_refresh.dart b/lib/src/swipe_refresh.dart index 95ec236..b2a12be 100644 --- a/lib/src/swipe_refresh.dart +++ b/lib/src/swipe_refresh.dart @@ -258,39 +258,39 @@ class SwipeRefresh extends StatelessWidget { ); case SwipeRefreshStyle.builder: case SwipeRefreshStyle.adaptive: - if (_platform.getPlatform() == TargetPlatform.android) { - return MaterialSwipeRefresh( - key: key, - childrenDelegate: childrenDelegate, - stateStream: stateStream, - initState: initState, - onRefresh: onRefresh, - scrollController: scrollController, - backgroundColor: backgroundColor, - indicatorColor: indicatorColor, - shrinkWrap: shrinkWrap, - padding: padding, - keyboardDismissBehavior: keyboardDismissBehavior, - physics: physics, - children: children, - ); - } else if (_platform.getPlatform() == TargetPlatform.iOS) { - return CupertinoSwipeRefresh( - key: key, - childrenDelegate: childrenDelegate, - stateStream: stateStream, - initState: initState, - onRefresh: onRefresh, - scrollController: scrollController, - refreshIndicatorExtent: refreshIndicatorExtent, - refreshTriggerPullDistance: refreshTriggerPullDistance, - indicatorBuilder: indicatorBuilder, - shrinkWrap: shrinkWrap, - padding: padding, - physics: physics, - children: children, - ); - } + if (_platform.isAndroid()) { + return MaterialSwipeRefresh( + key: key, + childrenDelegate: childrenDelegate, + stateStream: stateStream, + initState: initState, + onRefresh: onRefresh, + scrollController: scrollController, + backgroundColor: backgroundColor, + indicatorColor: indicatorColor, + shrinkWrap: shrinkWrap, + padding: padding, + keyboardDismissBehavior: keyboardDismissBehavior, + physics: physics, + children: children, + ); + } else if (_platform.isIOS()) { + return CupertinoSwipeRefresh( + key: key, + childrenDelegate: childrenDelegate, + stateStream: stateStream, + initState: initState, + onRefresh: onRefresh, + scrollController: scrollController, + refreshIndicatorExtent: refreshIndicatorExtent, + refreshTriggerPullDistance: refreshTriggerPullDistance, + indicatorBuilder: indicatorBuilder, + shrinkWrap: shrinkWrap, + padding: padding, + physics: physics, + children: children, + ); + } } return Container(); diff --git a/lib/utills/platform_wrapper.dart b/lib/utills/platform_wrapper.dart index bf37fa7..a3cf12b 100644 --- a/lib/utills/platform_wrapper.dart +++ b/lib/utills/platform_wrapper.dart @@ -1,16 +1,26 @@ -import 'dart:io'; +// Copyright (c) 2019-present, SurfStudio LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. -import 'package:flutter/foundation.dart'; +import 'dart:io'; /// Wrapper for Platform io. class PlatformWrapper { - TargetPlatform? getPlatform() { - if (Platform.isAndroid) { - return TargetPlatform.android; - } else { - if (Platform.isIOS) { - return TargetPlatform.iOS; - } - } + bool isIOS() { + return Platform.isIOS; + } + + bool isAndroid() { + return Platform.isAndroid; } } diff --git a/test/platform_wrapper_test.dart b/test/platform_wrapper_test.dart new file mode 100644 index 0000000..a817239 --- /dev/null +++ b/test/platform_wrapper_test.dart @@ -0,0 +1,42 @@ +// Copyright (c) 2019-present, SurfStudio LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +import 'package:flutter_test/flutter_test.dart'; +import 'package:swipe_refresh/utills/platform_wrapper.dart'; + +void main() { + late PlatformWrapper platformWrapper; + + setUp(() { + platformWrapper = PlatformWrapper(); + }); + + test( + 'Method isAndroid should return false', + () { + final platform = platformWrapper.isAndroid(); + + expect(platform, false); + }, + ); + + test( + 'Method isIOS should return false', + () { + final platform = platformWrapper.isIOS(); + + expect(platform, false); + }, + ); +} diff --git a/test/swipe_refresh_adaptive_test.dart b/test/swipe_refresh_adaptive_test.dart index f9cb9d1..8ae6dd5 100644 --- a/test/swipe_refresh_adaptive_test.dart +++ b/test/swipe_refresh_adaptive_test.dart @@ -52,8 +52,11 @@ void main() { ]; testWidgets( - 'When call SwipeRefresh.adaptive not on android or iOS platform should build normally with one Container', + 'When call SwipeRefresh.adaptive not on Android or iOS platform should build normally with one Container', (tester) async { + when(() => platformWrapper.isAndroid()).thenReturn(false); + when(() => platformWrapper.isIOS()).thenReturn(false); + final adaptiveSwipeRefresh = makeTestableWidget( SwipeRefresh.adaptive( stateStream: stream, @@ -79,10 +82,9 @@ void main() { ); testWidgets( - 'When call SwipeRefresh.adaptive on android platform should build MaterialSwipeRefresh', + 'When call SwipeRefresh.adaptive on Android platform should build MaterialSwipeRefresh', (tester) async { - when(() => platformWrapper.getPlatform()) - .thenReturn(TargetPlatform.android); + when(() => platformWrapper.isAndroid()).thenReturn(true); final adaptiveSwipeRefresh = makeTestableWidget( SwipeRefresh.adaptive( @@ -110,9 +112,9 @@ void main() { testWidgets( 'When call SwipeRefresh.adaptive on iOS platform should build CupertinoSwipeRefresh', - (tester) async { - when(() => platformWrapper.getPlatform()) - .thenReturn(TargetPlatform.iOS); + (tester) async { + when(() => platformWrapper.isAndroid()).thenReturn(false); + when(() => platformWrapper.isIOS()).thenReturn(true); final adaptiveSwipeRefresh = makeTestableWidget( SwipeRefresh.adaptive( @@ -121,10 +123,10 @@ void main() { children: listColors .map( (e) => Container( - color: e, - height: 100, - ), - ) + color: e, + height: 100, + ), + ) .toList(), platform: platformWrapper, ), diff --git a/test/swipe_refresh_with_builder.dart b/test/swipe_refresh_with_builder.dart index b4c5c83..268e90f 100644 --- a/test/swipe_refresh_with_builder.dart +++ b/test/swipe_refresh_with_builder.dart @@ -1,3 +1,17 @@ +// Copyright (c) 2019-present, SurfStudio LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import 'dart:async'; import 'package:flutter/material.dart'; @@ -41,7 +55,8 @@ void main() { testWidgets( 'SwipeRefresh.builder with itemBuilder as argument builds normally(iOS platform as example)', (tester) async { - when(() => platformWrapper.getPlatform()).thenReturn(TargetPlatform.iOS); + when(() => platformWrapper.isAndroid()).thenReturn(false); + when(() => platformWrapper.isIOS()).thenReturn(true); final testWidget = makeTestableWidget( SwipeRefresh.builder( From 285d3d1b473a1bf5ba2d32d7bab0840395b7e781 Mon Sep 17 00:00:00 2001 From: Kristina Zotyeva Date: Wed, 27 Oct 2021 14:51:58 +0300 Subject: [PATCH 23/69] Improved PlatformWrapper. --- lib/src/swipe_refresh.dart | 4 ++-- lib/utills/platform_wrapper.dart | 8 ++------ test/platform_wrapper_test.dart | 4 ++-- test/swipe_refresh_adaptive_test.dart | 10 +++++----- test/swipe_refresh_with_builder.dart | 4 ++-- 5 files changed, 13 insertions(+), 17 deletions(-) diff --git a/lib/src/swipe_refresh.dart b/lib/src/swipe_refresh.dart index b2a12be..62bb058 100644 --- a/lib/src/swipe_refresh.dart +++ b/lib/src/swipe_refresh.dart @@ -258,7 +258,7 @@ class SwipeRefresh extends StatelessWidget { ); case SwipeRefreshStyle.builder: case SwipeRefreshStyle.adaptive: - if (_platform.isAndroid()) { + if (_platform.isAndroid) { return MaterialSwipeRefresh( key: key, childrenDelegate: childrenDelegate, @@ -274,7 +274,7 @@ class SwipeRefresh extends StatelessWidget { physics: physics, children: children, ); - } else if (_platform.isIOS()) { + } else if (_platform.isIOS) { return CupertinoSwipeRefresh( key: key, childrenDelegate: childrenDelegate, diff --git a/lib/utills/platform_wrapper.dart b/lib/utills/platform_wrapper.dart index a3cf12b..b18879c 100644 --- a/lib/utills/platform_wrapper.dart +++ b/lib/utills/platform_wrapper.dart @@ -16,11 +16,7 @@ import 'dart:io'; /// Wrapper for Platform io. class PlatformWrapper { - bool isIOS() { - return Platform.isIOS; - } + bool get isIOS => Platform.isIOS; - bool isAndroid() { - return Platform.isAndroid; - } + bool get isAndroid => Platform.isAndroid; } diff --git a/test/platform_wrapper_test.dart b/test/platform_wrapper_test.dart index a817239..9a11c20 100644 --- a/test/platform_wrapper_test.dart +++ b/test/platform_wrapper_test.dart @@ -25,7 +25,7 @@ void main() { test( 'Method isAndroid should return false', () { - final platform = platformWrapper.isAndroid(); + final platform = platformWrapper.isAndroid; expect(platform, false); }, @@ -34,7 +34,7 @@ void main() { test( 'Method isIOS should return false', () { - final platform = platformWrapper.isIOS(); + final platform = platformWrapper.isIOS; expect(platform, false); }, diff --git a/test/swipe_refresh_adaptive_test.dart b/test/swipe_refresh_adaptive_test.dart index 8ae6dd5..572886c 100644 --- a/test/swipe_refresh_adaptive_test.dart +++ b/test/swipe_refresh_adaptive_test.dart @@ -54,8 +54,8 @@ void main() { testWidgets( 'When call SwipeRefresh.adaptive not on Android or iOS platform should build normally with one Container', (tester) async { - when(() => platformWrapper.isAndroid()).thenReturn(false); - when(() => platformWrapper.isIOS()).thenReturn(false); + when(() => platformWrapper.isAndroid).thenReturn(false); + when(() => platformWrapper.isIOS).thenReturn(false); final adaptiveSwipeRefresh = makeTestableWidget( SwipeRefresh.adaptive( @@ -84,7 +84,7 @@ void main() { testWidgets( 'When call SwipeRefresh.adaptive on Android platform should build MaterialSwipeRefresh', (tester) async { - when(() => platformWrapper.isAndroid()).thenReturn(true); + when(() => platformWrapper.isAndroid).thenReturn(true); final adaptiveSwipeRefresh = makeTestableWidget( SwipeRefresh.adaptive( @@ -113,8 +113,8 @@ void main() { testWidgets( 'When call SwipeRefresh.adaptive on iOS platform should build CupertinoSwipeRefresh', (tester) async { - when(() => platformWrapper.isAndroid()).thenReturn(false); - when(() => platformWrapper.isIOS()).thenReturn(true); + when(() => platformWrapper.isAndroid).thenReturn(false); + when(() => platformWrapper.isIOS).thenReturn(true); final adaptiveSwipeRefresh = makeTestableWidget( SwipeRefresh.adaptive( diff --git a/test/swipe_refresh_with_builder.dart b/test/swipe_refresh_with_builder.dart index 268e90f..78bafd3 100644 --- a/test/swipe_refresh_with_builder.dart +++ b/test/swipe_refresh_with_builder.dart @@ -55,8 +55,8 @@ void main() { testWidgets( 'SwipeRefresh.builder with itemBuilder as argument builds normally(iOS platform as example)', (tester) async { - when(() => platformWrapper.isAndroid()).thenReturn(false); - when(() => platformWrapper.isIOS()).thenReturn(true); + when(() => platformWrapper.isAndroid).thenReturn(false); + when(() => platformWrapper.isIOS).thenReturn(true); final testWidget = makeTestableWidget( SwipeRefresh.builder( From 357f54dd0fe83e45d09000a7d4e17eb83e55f7e0 Mon Sep 17 00:00:00 2001 From: Kristina Zotyeva Date: Wed, 27 Oct 2021 15:21:31 +0300 Subject: [PATCH 24/69] Improved PlatformWrapper. --- test/platform_wrapper_test.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/platform_wrapper_test.dart b/test/platform_wrapper_test.dart index 9a11c20..779f61b 100644 --- a/test/platform_wrapper_test.dart +++ b/test/platform_wrapper_test.dart @@ -25,18 +25,18 @@ void main() { test( 'Method isAndroid should return false', () { - final platform = platformWrapper.isAndroid; + final isAndroid = platformWrapper.isAndroid; - expect(platform, false); + expect(isAndroid, false); }, ); test( 'Method isIOS should return false', () { - final platform = platformWrapper.isIOS; + final isIOS = platformWrapper.isIOS; - expect(platform, false); + expect(isIOS, false); }, ); } From 4ea17abd1032f6a47e044d842961bcc18e77d0d1 Mon Sep 17 00:00:00 2001 From: Kristina Zotyeva Date: Tue, 9 Nov 2021 15:19:01 +0300 Subject: [PATCH 25/69] Improved tests. Removed extra code in CupertinoSwipeRefresh and MaterialSwipeRefresh. Childrendelegate added to constructors SwipeRefresh. In SwipeRegreshBase in the _updateState method, the transfer of the loading status is added. --- README.md | 4 +- coverage/html/amber.png | Bin 0 -> 141 bytes coverage/html/emerald.png | Bin 0 -> 141 bytes coverage/html/gcov.css | 519 ++++++++++++++++++ coverage/html/glass.png | Bin 0 -> 167 bytes coverage/html/index-sort-f.html | 103 ++++ coverage/html/index-sort-l.html | 103 ++++ coverage/html/index.html | 103 ++++ coverage/html/ruby.png | Bin 0 -> 141 bytes coverage/html/snow.png | Bin 0 -> 141 bytes ...ertino_swipe_refresh.dart.func-sort-c.html | 72 +++ .../cupertino_swipe_refresh.dart.func.html | 72 +++ .../cupertino_swipe_refresh.dart.gcov.html | 236 ++++++++ coverage/html/src/index-sort-f.html | 143 +++++ coverage/html/src/index-sort-l.html | 143 +++++ coverage/html/src/index.html | 143 +++++ ...terial_swipe_refresh.dart.func-sort-c.html | 72 +++ .../src/material_swipe_refresh.dart.func.html | 72 +++ .../src/material_swipe_refresh.dart.gcov.html | 180 ++++++ .../src/swipe_refresh.dart.func-sort-c.html | 72 +++ .../html/src/swipe_refresh.dart.func.html | 72 +++ .../html/src/swipe_refresh.dart.gcov.html | 380 +++++++++++++ .../swipe_refresh_base.dart.func-sort-c.html | 72 +++ .../src/swipe_refresh_base.dart.func.html | 72 +++ .../src/swipe_refresh_base.dart.gcov.html | 198 +++++++ .../swipe_refresh_state.dart.func-sort-c.html | 72 +++ .../src/swipe_refresh_state.dart.func.html | 72 +++ .../src/swipe_refresh_state.dart.gcov.html | 98 ++++ .../swipe_refresh_style.dart.func-sort-c.html | 72 +++ .../src/swipe_refresh_style.dart.func.html | 72 +++ .../src/swipe_refresh_style.dart.gcov.html | 104 ++++ coverage/html/updown.png | Bin 0 -> 117 bytes coverage/html/utills/index-sort-f.html | 93 ++++ coverage/html/utills/index-sort-l.html | 93 ++++ coverage/html/utills/index.html | 93 ++++ .../platform_wrapper.dart.func-sort-c.html | 72 +++ .../utills/platform_wrapper.dart.func.html | 72 +++ .../utills/platform_wrapper.dart.gcov.html | 98 ++++ coverage/lcov.info | 206 +++++++ lib/src/cupertino_swipe_refresh.dart | 4 - lib/src/material_swipe_refresh.dart | 4 - lib/src/swipe_refresh.dart | 78 +-- lib/src/swipe_refresh_base.dart | 16 +- test/swipe_refresh_adaptive_test.dart | 3 - ...r.dart => swipe_refresh_builder_test.dart} | 11 +- test/swipe_refresh_cupertino_test.dart | 243 ++++++-- test/swipe_refresh_material_test.dart | 164 ++++-- 47 files changed, 4446 insertions(+), 125 deletions(-) create mode 100644 coverage/html/amber.png create mode 100644 coverage/html/emerald.png create mode 100644 coverage/html/gcov.css create mode 100644 coverage/html/glass.png create mode 100644 coverage/html/index-sort-f.html create mode 100644 coverage/html/index-sort-l.html create mode 100644 coverage/html/index.html create mode 100644 coverage/html/ruby.png create mode 100644 coverage/html/snow.png create mode 100644 coverage/html/src/cupertino_swipe_refresh.dart.func-sort-c.html create mode 100644 coverage/html/src/cupertino_swipe_refresh.dart.func.html create mode 100644 coverage/html/src/cupertino_swipe_refresh.dart.gcov.html create mode 100644 coverage/html/src/index-sort-f.html create mode 100644 coverage/html/src/index-sort-l.html create mode 100644 coverage/html/src/index.html create mode 100644 coverage/html/src/material_swipe_refresh.dart.func-sort-c.html create mode 100644 coverage/html/src/material_swipe_refresh.dart.func.html create mode 100644 coverage/html/src/material_swipe_refresh.dart.gcov.html create mode 100644 coverage/html/src/swipe_refresh.dart.func-sort-c.html create mode 100644 coverage/html/src/swipe_refresh.dart.func.html create mode 100644 coverage/html/src/swipe_refresh.dart.gcov.html create mode 100644 coverage/html/src/swipe_refresh_base.dart.func-sort-c.html create mode 100644 coverage/html/src/swipe_refresh_base.dart.func.html create mode 100644 coverage/html/src/swipe_refresh_base.dart.gcov.html create mode 100644 coverage/html/src/swipe_refresh_state.dart.func-sort-c.html create mode 100644 coverage/html/src/swipe_refresh_state.dart.func.html create mode 100644 coverage/html/src/swipe_refresh_state.dart.gcov.html create mode 100644 coverage/html/src/swipe_refresh_style.dart.func-sort-c.html create mode 100644 coverage/html/src/swipe_refresh_style.dart.func.html create mode 100644 coverage/html/src/swipe_refresh_style.dart.gcov.html create mode 100644 coverage/html/updown.png create mode 100644 coverage/html/utills/index-sort-f.html create mode 100644 coverage/html/utills/index-sort-l.html create mode 100644 coverage/html/utills/index.html create mode 100644 coverage/html/utills/platform_wrapper.dart.func-sort-c.html create mode 100644 coverage/html/utills/platform_wrapper.dart.func.html create mode 100644 coverage/html/utills/platform_wrapper.dart.gcov.html create mode 100644 coverage/lcov.info rename test/{swipe_refresh_with_builder.dart => swipe_refresh_builder_test.dart} (89%) diff --git a/README.md b/README.md index 162ac6b..732c400 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Swipe Refresh -[![Build Status](https://shields.io/github/workflow/status/surfstudio/SurfGear/build?logo=github&logoColor=white)](https://github.com/surfstudio/flutter-swipe-refresh) -[![Coverage Status](https://img.shields.io/codecov/c/github/surfstudio/SurfGear?flag=swipe_refresh&logo=codecov&logoColor=white)](https://app.codecov.io/gh/surfstudio/flutter-swipe-refresh) +[![Build Status](https://shields.io/github/workflow/status/surfstudio/flutter-swipe-refresh/build?logo=github&logoColor=white)](https://github.com/surfstudio/flutter-swipe-refresh) +[![Coverage Status](https://img.shields.io/codecov/c/github/surfstudio/flutter-swipe-refresh?flag=swipe_refresh&logo=codecov&logoColor=white)](https://app.codecov.io/gh/surfstudio/flutter-swipe-refresh) [![Pub Version](https://img.shields.io/pub/v/swipe_refresh?logo=dart&logoColor=white)](https://pub.dev/packages/swipe_refresh) [![Pub Likes](https://badgen.net/pub/likes/swipe_refresh)](https://pub.dev/packages/swipe_refresh) [![Pub popularity](https://badgen.net/pub/popularity/swipe_refresh)](https://pub.dev/packages/swipe_refresh/score) diff --git a/coverage/html/amber.png b/coverage/html/amber.png new file mode 100644 index 0000000000000000000000000000000000000000..2cab170d8359081983a4e343848dfe06bc490f12 GIT binary patch literal 141 zcmeAS@N?(olHy`uVBq!ia0vp^j3CU&3?x-=hn)ga>?NMQuI!iC1^G2tW}LqE04T&+ z;1OBOz`!j8!i<;h*8KqrvZOouIx;Y9?C1WI$O`1M1^9%x{(levWG?NMQuI!iC1^Jb!lvI6;R0X`wF(yt=9xVZRt1vCRixIA4P dLn>}1Cji+@42)0J?}79&c)I$ztaD0e0sy@GAL0N2 literal 0 HcmV?d00001 diff --git a/coverage/html/gcov.css b/coverage/html/gcov.css new file mode 100644 index 0000000..bfd0a83 --- /dev/null +++ b/coverage/html/gcov.css @@ -0,0 +1,519 @@ +/* All views: initial background and text color */ +body +{ + color: #000000; + background-color: #FFFFFF; +} + +/* All views: standard link format*/ +a:link +{ + color: #284FA8; + text-decoration: underline; +} + +/* All views: standard link - visited format */ +a:visited +{ + color: #00CB40; + text-decoration: underline; +} + +/* All views: standard link - activated format */ +a:active +{ + color: #FF0040; + text-decoration: underline; +} + +/* All views: main title format */ +td.title +{ + text-align: center; + padding-bottom: 10px; + font-family: sans-serif; + font-size: 20pt; + font-style: italic; + font-weight: bold; +} + +/* All views: header item format */ +td.headerItem +{ + text-align: right; + padding-right: 6px; + font-family: sans-serif; + font-weight: bold; + vertical-align: top; + white-space: nowrap; +} + +/* All views: header item value format */ +td.headerValue +{ + text-align: left; + color: #284FA8; + font-family: sans-serif; + font-weight: bold; + white-space: nowrap; +} + +/* All views: header item coverage table heading */ +td.headerCovTableHead +{ + text-align: center; + padding-right: 6px; + padding-left: 6px; + padding-bottom: 0px; + font-family: sans-serif; + font-size: 80%; + white-space: nowrap; +} + +/* All views: header item coverage table entry */ +td.headerCovTableEntry +{ + text-align: right; + color: #284FA8; + font-family: sans-serif; + font-weight: bold; + white-space: nowrap; + padding-left: 12px; + padding-right: 4px; + background-color: #DAE7FE; +} + +/* All views: header item coverage table entry for high coverage rate */ +td.headerCovTableEntryHi +{ + text-align: right; + color: #000000; + font-family: sans-serif; + font-weight: bold; + white-space: nowrap; + padding-left: 12px; + padding-right: 4px; + background-color: #A7FC9D; +} + +/* All views: header item coverage table entry for medium coverage rate */ +td.headerCovTableEntryMed +{ + text-align: right; + color: #000000; + font-family: sans-serif; + font-weight: bold; + white-space: nowrap; + padding-left: 12px; + padding-right: 4px; + background-color: #FFEA20; +} + +/* All views: header item coverage table entry for ow coverage rate */ +td.headerCovTableEntryLo +{ + text-align: right; + color: #000000; + font-family: sans-serif; + font-weight: bold; + white-space: nowrap; + padding-left: 12px; + padding-right: 4px; + background-color: #FF0000; +} + +/* All views: header legend value for legend entry */ +td.headerValueLeg +{ + text-align: left; + color: #000000; + font-family: sans-serif; + font-size: 80%; + white-space: nowrap; + padding-top: 4px; +} + +/* All views: color of horizontal ruler */ +td.ruler +{ + background-color: #6688D4; +} + +/* All views: version string format */ +td.versionInfo +{ + text-align: center; + padding-top: 2px; + font-family: sans-serif; + font-style: italic; +} + +/* Directory view/File view (all)/Test case descriptions: + table headline format */ +td.tableHead +{ + text-align: center; + color: #FFFFFF; + background-color: #6688D4; + font-family: sans-serif; + font-size: 120%; + font-weight: bold; + white-space: nowrap; + padding-left: 4px; + padding-right: 4px; +} + +span.tableHeadSort +{ + padding-right: 4px; +} + +/* Directory view/File view (all): filename entry format */ +td.coverFile +{ + text-align: left; + padding-left: 10px; + padding-right: 20px; + color: #284FA8; + background-color: #DAE7FE; + font-family: monospace; +} + +/* Directory view/File view (all): bar-graph entry format*/ +td.coverBar +{ + padding-left: 10px; + padding-right: 10px; + background-color: #DAE7FE; +} + +/* Directory view/File view (all): bar-graph outline color */ +td.coverBarOutline +{ + background-color: #000000; +} + +/* Directory view/File view (all): percentage entry for files with + high coverage rate */ +td.coverPerHi +{ + text-align: right; + padding-left: 10px; + padding-right: 10px; + background-color: #A7FC9D; + font-weight: bold; + font-family: sans-serif; +} + +/* Directory view/File view (all): line count entry for files with + high coverage rate */ +td.coverNumHi +{ + text-align: right; + padding-left: 10px; + padding-right: 10px; + background-color: #A7FC9D; + white-space: nowrap; + font-family: sans-serif; +} + +/* Directory view/File view (all): percentage entry for files with + medium coverage rate */ +td.coverPerMed +{ + text-align: right; + padding-left: 10px; + padding-right: 10px; + background-color: #FFEA20; + font-weight: bold; + font-family: sans-serif; +} + +/* Directory view/File view (all): line count entry for files with + medium coverage rate */ +td.coverNumMed +{ + text-align: right; + padding-left: 10px; + padding-right: 10px; + background-color: #FFEA20; + white-space: nowrap; + font-family: sans-serif; +} + +/* Directory view/File view (all): percentage entry for files with + low coverage rate */ +td.coverPerLo +{ + text-align: right; + padding-left: 10px; + padding-right: 10px; + background-color: #FF0000; + font-weight: bold; + font-family: sans-serif; +} + +/* Directory view/File view (all): line count entry for files with + low coverage rate */ +td.coverNumLo +{ + text-align: right; + padding-left: 10px; + padding-right: 10px; + background-color: #FF0000; + white-space: nowrap; + font-family: sans-serif; +} + +/* File view (all): "show/hide details" link format */ +a.detail:link +{ + color: #B8D0FF; + font-size:80%; +} + +/* File view (all): "show/hide details" link - visited format */ +a.detail:visited +{ + color: #B8D0FF; + font-size:80%; +} + +/* File view (all): "show/hide details" link - activated format */ +a.detail:active +{ + color: #FFFFFF; + font-size:80%; +} + +/* File view (detail): test name entry */ +td.testName +{ + text-align: right; + padding-right: 10px; + background-color: #DAE7FE; + font-family: sans-serif; +} + +/* File view (detail): test percentage entry */ +td.testPer +{ + text-align: right; + padding-left: 10px; + padding-right: 10px; + background-color: #DAE7FE; + font-family: sans-serif; +} + +/* File view (detail): test lines count entry */ +td.testNum +{ + text-align: right; + padding-left: 10px; + padding-right: 10px; + background-color: #DAE7FE; + font-family: sans-serif; +} + +/* Test case descriptions: test name format*/ +dt +{ + font-family: sans-serif; + font-weight: bold; +} + +/* Test case descriptions: description table body */ +td.testDescription +{ + padding-top: 10px; + padding-left: 30px; + padding-bottom: 10px; + padding-right: 30px; + background-color: #DAE7FE; +} + +/* Source code view: function entry */ +td.coverFn +{ + text-align: left; + padding-left: 10px; + padding-right: 20px; + color: #284FA8; + background-color: #DAE7FE; + font-family: monospace; +} + +/* Source code view: function entry zero count*/ +td.coverFnLo +{ + text-align: right; + padding-left: 10px; + padding-right: 10px; + background-color: #FF0000; + font-weight: bold; + font-family: sans-serif; +} + +/* Source code view: function entry nonzero count*/ +td.coverFnHi +{ + text-align: right; + padding-left: 10px; + padding-right: 10px; + background-color: #DAE7FE; + font-weight: bold; + font-family: sans-serif; +} + +/* Source code view: source code format */ +pre.source +{ + font-family: monospace; + white-space: pre; + margin-top: 2px; +} + +/* Source code view: line number format */ +span.lineNum +{ + background-color: #EFE383; +} + +/* Source code view: format for lines which were executed */ +td.lineCov, +span.lineCov +{ + background-color: #CAD7FE; +} + +/* Source code view: format for Cov legend */ +span.coverLegendCov +{ + padding-left: 10px; + padding-right: 10px; + padding-bottom: 2px; + background-color: #CAD7FE; +} + +/* Source code view: format for lines which were not executed */ +td.lineNoCov, +span.lineNoCov +{ + background-color: #FF6230; +} + +/* Source code view: format for NoCov legend */ +span.coverLegendNoCov +{ + padding-left: 10px; + padding-right: 10px; + padding-bottom: 2px; + background-color: #FF6230; +} + +/* Source code view (function table): standard link - visited format */ +td.lineNoCov > a:visited, +td.lineCov > a:visited +{ + color: black; + text-decoration: underline; +} + +/* Source code view: format for lines which were executed only in a + previous version */ +span.lineDiffCov +{ + background-color: #B5F7AF; +} + +/* Source code view: format for branches which were executed + * and taken */ +span.branchCov +{ + background-color: #CAD7FE; +} + +/* Source code view: format for branches which were executed + * but not taken */ +span.branchNoCov +{ + background-color: #FF6230; +} + +/* Source code view: format for branches which were not executed */ +span.branchNoExec +{ + background-color: #FF6230; +} + +/* Source code view: format for the source code heading line */ +pre.sourceHeading +{ + white-space: pre; + font-family: monospace; + font-weight: bold; + margin: 0px; +} + +/* All views: header legend value for low rate */ +td.headerValueLegL +{ + font-family: sans-serif; + text-align: center; + white-space: nowrap; + padding-left: 4px; + padding-right: 2px; + background-color: #FF0000; + font-size: 80%; +} + +/* All views: header legend value for med rate */ +td.headerValueLegM +{ + font-family: sans-serif; + text-align: center; + white-space: nowrap; + padding-left: 2px; + padding-right: 2px; + background-color: #FFEA20; + font-size: 80%; +} + +/* All views: header legend value for hi rate */ +td.headerValueLegH +{ + font-family: sans-serif; + text-align: center; + white-space: nowrap; + padding-left: 2px; + padding-right: 4px; + background-color: #A7FC9D; + font-size: 80%; +} + +/* All views except source code view: legend format for low coverage */ +span.coverLegendCovLo +{ + padding-left: 10px; + padding-right: 10px; + padding-top: 2px; + background-color: #FF0000; +} + +/* All views except source code view: legend format for med coverage */ +span.coverLegendCovMed +{ + padding-left: 10px; + padding-right: 10px; + padding-top: 2px; + background-color: #FFEA20; +} + +/* All views except source code view: legend format for hi coverage */ +span.coverLegendCovHi +{ + padding-left: 10px; + padding-right: 10px; + padding-top: 2px; + background-color: #A7FC9D; +} diff --git a/coverage/html/glass.png b/coverage/html/glass.png new file mode 100644 index 0000000000000000000000000000000000000000..e1abc00680a3093c49fdb775ae6bdb6764c95af2 GIT binary patch literal 167 zcmeAS@N?(olHy`uVBq!ia0vp^j3CU&3?x-=hn)gaEa{HEjtmSN`?>!lvI6;R0X`wF z|Ns97GD8ntt^-nxB|(0{3=Yq3q=7g|-tI089jvk*Kn`btM`SSr1Gf+eGhVt|_XjA* zUgGKN%6^Gmn4d%Ph(nkFP>9RZ#WAE}PI3Z}&BVayv3^M*kj3EX>gTe~DWM4f=_Dpv literal 0 HcmV?d00001 diff --git a/coverage/html/index-sort-f.html b/coverage/html/index-sort-f.html new file mode 100644 index 0000000..5902fd2 --- /dev/null +++ b/coverage/html/index-sort-f.html @@ -0,0 +1,103 @@ + + + + + + + LCOV - lcov.info + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top levelHitTotalCoverage
Test:lcov.infoLines:178178100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Directory Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
src +
100.0%
+
100.0 %176 / 176-0 / 0
utills +
100.0%
+
100.0 %2 / 2-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/index-sort-l.html b/coverage/html/index-sort-l.html new file mode 100644 index 0000000..82bc632 --- /dev/null +++ b/coverage/html/index-sort-l.html @@ -0,0 +1,103 @@ + + + + + + + LCOV - lcov.info + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top levelHitTotalCoverage
Test:lcov.infoLines:178178100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Directory Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
utills +
100.0%
+
100.0 %2 / 2-0 / 0
src +
100.0%
+
100.0 %176 / 176-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/index.html b/coverage/html/index.html new file mode 100644 index 0000000..b9d1145 --- /dev/null +++ b/coverage/html/index.html @@ -0,0 +1,103 @@ + + + + + + + LCOV - lcov.info + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top levelHitTotalCoverage
Test:lcov.infoLines:178178100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Directory Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
src +
100.0%
+
100.0 %176 / 176-0 / 0
utills +
100.0%
+
100.0 %2 / 2-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/ruby.png b/coverage/html/ruby.png new file mode 100644 index 0000000000000000000000000000000000000000..991b6d4ec9e78be165e3ef757eed1aada287364d GIT binary patch literal 141 zcmeAS@N?(olHy`uVBq!ia0vp^j3CU&3?x-=hn)ga>?NMQuI!iC1^FceV#7`HfI^%F z9+AZi4BSE>%y{W;-5;PJOS+@4BLl<6e(pbstUx|nfKQ0)e^Y%R^MdiLxj>4`)5S5Q b;#P73kj=!v_*DHKNFRfztDnm{r-UW|iOwIS literal 0 HcmV?d00001 diff --git a/coverage/html/snow.png b/coverage/html/snow.png new file mode 100644 index 0000000000000000000000000000000000000000..2cdae107fceec6e7f02ac7acb4a34a82a540caa5 GIT binary patch literal 141 zcmeAS@N?(olHy`uVBq!ia0vp^j3CU&3?x-=hn)ga>?NMQuI!iC1^MM!lvI6;R0X`wF|Ns97GD8ntt^-nBo-U3d c6}OTTfNUlP#;5A{K>8RwUHx3vIVCg!071?oo&W#< literal 0 HcmV?d00001 diff --git a/coverage/html/src/cupertino_swipe_refresh.dart.func-sort-c.html b/coverage/html/src/cupertino_swipe_refresh.dart.func-sort-c.html new file mode 100644 index 0000000..56710b5 --- /dev/null +++ b/coverage/html/src/cupertino_swipe_refresh.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - src\cupertino_swipe_refresh.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - src\cupertino_swipe_refresh.dart - cupertino_swipe_refresh.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:4646100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/src/cupertino_swipe_refresh.dart.func.html b/coverage/html/src/cupertino_swipe_refresh.dart.func.html new file mode 100644 index 0000000..983353d --- /dev/null +++ b/coverage/html/src/cupertino_swipe_refresh.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - src\cupertino_swipe_refresh.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - src\cupertino_swipe_refresh.dart - cupertino_swipe_refresh.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:4646100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/src/cupertino_swipe_refresh.dart.gcov.html b/coverage/html/src/cupertino_swipe_refresh.dart.gcov.html new file mode 100644 index 0000000..fc061e1 --- /dev/null +++ b/coverage/html/src/cupertino_swipe_refresh.dart.gcov.html @@ -0,0 +1,236 @@ + + + + + + + LCOV - lcov.info - src\cupertino_swipe_refresh.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - src\cupertino_swipe_refresh.dart - cupertino_swipe_refresh.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:4646100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : // Copyright (c) 2019-present,  SurfStudio LLC
+       2             : //
+       3             : // Licensed under the Apache License, Version 2.0 (the "License");
+       4             : // you may not use this file except in compliance with the License.
+       5             : // You may obtain a copy of the License at
+       6             : //
+       7             : //     http://www.apache.org/licenses/LICENSE-2.0
+       8             : //
+       9             : // Unless required by applicable law or agreed to in writing, software
+      10             : // distributed under the License is distributed on an "AS IS" BASIS,
+      11             : // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+      12             : // See the License for the specific language governing permissions and
+      13             : // limitations under the License.
+      14             : 
+      15             : import 'dart:async';
+      16             : 
+      17             : import 'package:flutter/cupertino.dart';
+      18             : import 'package:swipe_refresh/src/swipe_refresh_base.dart';
+      19             : import 'package:swipe_refresh/src/swipe_refresh_state.dart';
+      20             : 
+      21             : /// Refresh indicator widget with Cupertino style.
+      22             : class CupertinoSwipeRefresh extends SwipeRefreshBase {
+      23             :   static const double defaultRefreshTriggerPullDistance = 100.0;
+      24             :   static const double defaultRefreshIndicatorExtent = 60.0;
+      25             : 
+      26             :   final double refreshTriggerPullDistance;
+      27             :   final double refreshIndicatorExtent;
+      28             :   final RefreshControlIndicatorBuilder indicatorBuilder;
+      29             : 
+      30           3 :   const CupertinoSwipeRefresh({
+      31             :     required Stream<SwipeRefreshState> stateStream,
+      32             :     required VoidCallback onRefresh,
+      33             :     Key? key,
+      34             :     SliverChildDelegate? childrenDelegate,
+      35             :     List<Widget>? children,
+      36             :     SwipeRefreshState? initState,
+      37             :     EdgeInsets? padding,
+      38             :     ScrollController? scrollController,
+      39             :     bool shrinkWrap = false,
+      40             :     this.refreshTriggerPullDistance = defaultRefreshTriggerPullDistance,
+      41             :     this.refreshIndicatorExtent = defaultRefreshIndicatorExtent,
+      42             :     this.indicatorBuilder = CupertinoSliverRefreshControl.buildRefreshIndicator,
+      43             :     ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
+      44             :     ScrollPhysics? physics,
+      45           3 :   }) : super(
+      46             :           key: key,
+      47             :           children: children,
+      48             :           childrenDelegate: childrenDelegate,
+      49             :           stateStream: stateStream,
+      50             :           initState: initState,
+      51             :           onRefresh: onRefresh,
+      52             :           padding: padding,
+      53             :           scrollController: scrollController,
+      54             :           shrinkWrap: shrinkWrap,
+      55             :           keyboardDismissBehavior: keyboardDismissBehavior,
+      56             :           physics: physics,
+      57             :         );
+      58             : 
+      59           3 :   @override
+      60             :   // ignore: no_logic_in_create_state
+      61           3 :   SwipeRefreshBaseState createState() => _CupertinoSwipeRefreshState(
+      62           3 :         scrollController,
+      63             :       );
+      64             : }
+      65             : 
+      66             : class _CupertinoSwipeRefreshState
+      67             :     extends SwipeRefreshBaseState<CupertinoSwipeRefresh> {
+      68             :   final ScrollController _scrollController;
+      69             : 
+      70           3 :   _CupertinoSwipeRefreshState(
+      71             :     ScrollController? scrollController,
+      72           3 :   ) : _scrollController = scrollController ?? ScrollController();
+      73             : 
+      74           3 :   @override
+      75             :   Widget buildRefresher(
+      76             :     Key key,
+      77             :     List<Widget> children,
+      78             :     Future<void> Function() onRefresh,
+      79             :   ) {
+      80           3 :     return CustomScrollView(
+      81           6 :       shrinkWrap: widget.shrinkWrap,
+      82           3 :       controller: _scrollController,
+      83           6 :       keyboardDismissBehavior: widget.keyboardDismissBehavior ??
+      84             :           ScrollViewKeyboardDismissBehavior.onDrag,
+      85           6 :       physics: widget.physics == null
+      86             :           ? const BouncingScrollPhysics(
+      87             :               parent: AlwaysScrollableScrollPhysics(),
+      88             :             )
+      89           3 :           : AlwaysScrollableScrollPhysics(parent: widget.physics),
+      90           3 :       slivers: <Widget>[
+      91           3 :         CupertinoSliverRefreshControl(
+      92             :           key: key,
+      93             :           onRefresh: onRefresh,
+      94           6 :           refreshTriggerPullDistance: widget.refreshTriggerPullDistance,
+      95           6 :           refreshIndicatorExtent: widget.refreshIndicatorExtent,
+      96           6 :           builder: widget.indicatorBuilder,
+      97             :         ),
+      98           3 :         SliverSafeArea(
+      99           6 :           bottom: widget.padding == null,
+     100           6 :           left: widget.padding == null,
+     101           6 :           right: widget.padding == null,
+     102           6 :           top: widget.padding == null,
+     103           3 :           sliver: _ListChildrenWidget(
+     104             :             children: children,
+     105           6 :             padding: widget.padding,
+     106           6 :             childrenDelegate: widget.childrenDelegate,
+     107             :           ),
+     108             :         ),
+     109             :       ],
+     110             :     );
+     111             :   }
+     112             : 
+     113           1 :   @override
+     114             :   void onUpdateState(SwipeRefreshState state) {
+     115             :    // if (state == SwipeRefreshState.loading) {
+     116             :    //   _scrollController.jumpTo(-(widget.refreshIndicatorExtent + 5));
+     117             :    // }
+     118             : 
+     119           1 :     if (state == SwipeRefreshState.hidden) {
+     120           1 :       if (completer != null) {
+     121           2 :         completer!.complete();
+     122           1 :         completer = null;
+     123             :       }
+     124             :     }
+     125             :   }
+     126             : }
+     127             : 
+     128             : class _ListChildrenWidget extends StatelessWidget {
+     129             :   final List<Widget> children;
+     130             :   final EdgeInsets? padding;
+     131             :   final SliverChildDelegate? childrenDelegate;
+     132             : 
+     133           3 :   const _ListChildrenWidget({
+     134             :     required this.children,
+     135             :     Key? key,
+     136             :     this.padding,
+     137             :     this.childrenDelegate,
+     138           3 :   }) : super(key: key);
+     139             : 
+     140           3 :   @override
+     141             :   Widget build(BuildContext context) {
+     142           3 :     if (padding != null) {
+     143           1 :       return SliverPadding(
+     144           1 :         padding: padding!,
+     145           1 :         sliver: SliverList(
+     146           1 :           delegate: childrenDelegate ??
+     147           1 :               SliverChildListDelegate(
+     148           1 :                 children,
+     149             :               ),
+     150             :         ),
+     151             :       );
+     152             :     }
+     153           3 :     return SliverList(
+     154           3 :       delegate: childrenDelegate ??
+     155           2 :           SliverChildListDelegate(
+     156           2 :             children,
+     157             :           ),
+     158             :     );
+     159             :   }
+     160             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/src/index-sort-f.html b/coverage/html/src/index-sort-f.html new file mode 100644 index 0000000..2bb7908 --- /dev/null +++ b/coverage/html/src/index-sort-f.html @@ -0,0 +1,143 @@ + + + + + + + LCOV - lcov.info - src + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - srcHitTotalCoverage
Test:lcov.infoLines:176176100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
swipe_refresh_state.dart +
100.0%
+
100.0 %1 / 1-0 / 0
material_swipe_refresh.dart +
100.0%
+
100.0 %27 / 27-0 / 0
swipe_refresh_base.dart +
100.0%
+
100.0 %24 / 24-0 / 0
swipe_refresh_style.dart +
100.0%
+
100.0 %1 / 1-0 / 0
swipe_refresh.dart +
100.0%
+
100.0 %77 / 77-0 / 0
cupertino_swipe_refresh.dart +
100.0%
+
100.0 %46 / 46-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/src/index-sort-l.html b/coverage/html/src/index-sort-l.html new file mode 100644 index 0000000..615dbb3 --- /dev/null +++ b/coverage/html/src/index-sort-l.html @@ -0,0 +1,143 @@ + + + + + + + LCOV - lcov.info - src + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - srcHitTotalCoverage
Test:lcov.infoLines:176176100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
swipe_refresh_state.dart +
100.0%
+
100.0 %1 / 1-0 / 0
swipe_refresh_style.dart +
100.0%
+
100.0 %1 / 1-0 / 0
swipe_refresh_base.dart +
100.0%
+
100.0 %24 / 24-0 / 0
material_swipe_refresh.dart +
100.0%
+
100.0 %27 / 27-0 / 0
cupertino_swipe_refresh.dart +
100.0%
+
100.0 %46 / 46-0 / 0
swipe_refresh.dart +
100.0%
+
100.0 %77 / 77-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/src/index.html b/coverage/html/src/index.html new file mode 100644 index 0000000..6aeea70 --- /dev/null +++ b/coverage/html/src/index.html @@ -0,0 +1,143 @@ + + + + + + + LCOV - lcov.info - src + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - srcHitTotalCoverage
Test:lcov.infoLines:176176100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
cupertino_swipe_refresh.dart +
100.0%
+
100.0 %46 / 46-0 / 0
material_swipe_refresh.dart +
100.0%
+
100.0 %27 / 27-0 / 0
swipe_refresh.dart +
100.0%
+
100.0 %77 / 77-0 / 0
swipe_refresh_base.dart +
100.0%
+
100.0 %24 / 24-0 / 0
swipe_refresh_state.dart +
100.0%
+
100.0 %1 / 1-0 / 0
swipe_refresh_style.dart +
100.0%
+
100.0 %1 / 1-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/src/material_swipe_refresh.dart.func-sort-c.html b/coverage/html/src/material_swipe_refresh.dart.func-sort-c.html new file mode 100644 index 0000000..00eefdb --- /dev/null +++ b/coverage/html/src/material_swipe_refresh.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - src\material_swipe_refresh.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - src\material_swipe_refresh.dart - material_swipe_refresh.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:2727100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/src/material_swipe_refresh.dart.func.html b/coverage/html/src/material_swipe_refresh.dart.func.html new file mode 100644 index 0000000..1a99998 --- /dev/null +++ b/coverage/html/src/material_swipe_refresh.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - src\material_swipe_refresh.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - src\material_swipe_refresh.dart - material_swipe_refresh.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:2727100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/src/material_swipe_refresh.dart.gcov.html b/coverage/html/src/material_swipe_refresh.dart.gcov.html new file mode 100644 index 0000000..699dcd1 --- /dev/null +++ b/coverage/html/src/material_swipe_refresh.dart.gcov.html @@ -0,0 +1,180 @@ + + + + + + + LCOV - lcov.info - src\material_swipe_refresh.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - src\material_swipe_refresh.dart - material_swipe_refresh.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:2727100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : // Copyright (c) 2019-present,  SurfStudio LLC
+       2             : //
+       3             : // Licensed under the Apache License, Version 2.0 (the "License");
+       4             : // you may not use this file except in compliance with the License.
+       5             : // You may obtain a copy of the License at
+       6             : //
+       7             : //     http://www.apache.org/licenses/LICENSE-2.0
+       8             : //
+       9             : // Unless required by applicable law or agreed to in writing, software
+      10             : // distributed under the License is distributed on an "AS IS" BASIS,
+      11             : // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+      12             : // See the License for the specific language governing permissions and
+      13             : // limitations under the License.
+      14             : 
+      15             : import 'dart:async';
+      16             : 
+      17             : import 'package:flutter/material.dart';
+      18             : import 'package:flutter/widgets.dart';
+      19             : import 'package:swipe_refresh/src/swipe_refresh_base.dart';
+      20             : import 'package:swipe_refresh/src/swipe_refresh_state.dart';
+      21             : 
+      22             : /// Refresh indicator widget with Material Design style.
+      23             : class MaterialSwipeRefresh extends SwipeRefreshBase {
+      24             :   final Color? indicatorColor;
+      25             :   final Color backgroundColor;
+      26             : 
+      27           2 :   const MaterialSwipeRefresh({
+      28             :     required Stream<SwipeRefreshState> stateStream,
+      29             :     required VoidCallback onRefresh,
+      30             :     Key? key,
+      31             :     this.indicatorColor,
+      32             :     List<Widget>? children,
+      33             :     SliverChildDelegate? childrenDelegate,
+      34             :     SwipeRefreshState? initState,
+      35             :     Color? backgroundColor,
+      36             :     ScrollController? scrollController,
+      37             :     EdgeInsets? padding,
+      38             :     bool shrinkWrap = false,
+      39             :     ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
+      40             :     ScrollPhysics? physics,
+      41             :   })  : backgroundColor = backgroundColor ?? const Color(0xFFFFFFFF),
+      42           2 :         super(
+      43             :           key: key,
+      44             :           children: children,
+      45             :           childrenDelegate: childrenDelegate,
+      46             :           stateStream: stateStream,
+      47             :           initState: initState,
+      48             :           onRefresh: onRefresh,
+      49             :           scrollController: scrollController,
+      50             :           padding: padding,
+      51             :           shrinkWrap: shrinkWrap,
+      52             :           keyboardDismissBehavior: keyboardDismissBehavior,
+      53             :           physics: physics,
+      54             :         );
+      55             : 
+      56           2 :   @override
+      57           2 :   _MaterialSwipeRefreshState createState() => _MaterialSwipeRefreshState();
+      58             : }
+      59             : 
+      60             : class _MaterialSwipeRefreshState
+      61             :     extends SwipeRefreshBaseState<MaterialSwipeRefresh> {
+      62           2 :   @override
+      63             :   Widget buildRefresher(
+      64             :     Key key,
+      65             :     List<Widget> children,
+      66             :     Future<void> Function() onRefresh,
+      67             :   ) {
+      68           2 :     return RefreshIndicator(
+      69             :       key: key,
+      70             :       onRefresh: onRefresh,
+      71           4 :       color: widget.indicatorColor,
+      72           4 :       backgroundColor: widget.backgroundColor,
+      73           4 :       child: widget.childrenDelegate == null
+      74           2 :           ? ListView(
+      75           4 :               shrinkWrap: widget.shrinkWrap,
+      76           4 :               padding: widget.padding,
+      77           6 :               controller: widget.scrollController ?? ScrollController(),
+      78           6 :               physics: AlwaysScrollableScrollPhysics(parent: widget.physics),
+      79           4 :               keyboardDismissBehavior: widget.keyboardDismissBehavior ??
+      80             :                   ScrollViewKeyboardDismissBehavior.manual,
+      81             :               children: children,
+      82             :             )
+      83           1 :           : ListView.custom(
+      84           2 :               shrinkWrap: widget.shrinkWrap,
+      85           2 :               padding: widget.padding,
+      86           2 :               childrenDelegate: widget.childrenDelegate!,
+      87           2 :               controller: widget.scrollController ?? ScrollController(),
+      88           2 :               keyboardDismissBehavior: widget.keyboardDismissBehavior ??
+      89             :                   ScrollViewKeyboardDismissBehavior.manual,
+      90           3 :               physics: AlwaysScrollableScrollPhysics(parent: widget.physics),
+      91             :             ),
+      92             :     );
+      93             :   }
+      94             : 
+      95           1 :   @override
+      96             :   void onUpdateState(SwipeRefreshState state) {
+      97           1 :     if (state == SwipeRefreshState.hidden) {
+      98           1 :       if (completer != null) {
+      99           2 :         completer!.complete();
+     100           1 :         completer = null;
+     101             :       }
+     102             :     }
+     103             :   }
+     104             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/src/swipe_refresh.dart.func-sort-c.html b/coverage/html/src/swipe_refresh.dart.func-sort-c.html new file mode 100644 index 0000000..e3331db --- /dev/null +++ b/coverage/html/src/swipe_refresh.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - src\swipe_refresh.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - src\swipe_refresh.dart - swipe_refresh.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:7777100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/src/swipe_refresh.dart.func.html b/coverage/html/src/swipe_refresh.dart.func.html new file mode 100644 index 0000000..42d1e03 --- /dev/null +++ b/coverage/html/src/swipe_refresh.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - src\swipe_refresh.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - src\swipe_refresh.dart - swipe_refresh.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:7777100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/src/swipe_refresh.dart.gcov.html b/coverage/html/src/swipe_refresh.dart.gcov.html new file mode 100644 index 0000000..69b6b42 --- /dev/null +++ b/coverage/html/src/swipe_refresh.dart.gcov.html @@ -0,0 +1,380 @@ + + + + + + + LCOV - lcov.info - src\swipe_refresh.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - src\swipe_refresh.dart - swipe_refresh.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:7777100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : // Copyright (c) 2019-present,  SurfStudio LLC
+       2             : //
+       3             : // Licensed under the Apache License, Version 2.0 (the "License");
+       4             : // you may not use this file except in compliance with the License.
+       5             : // You may obtain a copy of the License at
+       6             : //
+       7             : //     http://www.apache.org/licenses/LICENSE-2.0
+       8             : //
+       9             : // Unless required by applicable law or agreed to in writing, software
+      10             : // distributed under the License is distributed on an "AS IS" BASIS,
+      11             : // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+      12             : // See the License for the specific language governing permissions and
+      13             : // limitations under the License.
+      14             : 
+      15             : import 'package:flutter/cupertino.dart';
+      16             : import 'package:flutter/foundation.dart';
+      17             : import 'package:swipe_refresh/src/cupertino_swipe_refresh.dart';
+      18             : import 'package:swipe_refresh/src/material_swipe_refresh.dart';
+      19             : import 'package:swipe_refresh/src/swipe_refresh_state.dart';
+      20             : import 'package:swipe_refresh/src/swipe_refresh_style.dart';
+      21             : import 'package:swipe_refresh/utills/platform_wrapper.dart';
+      22             : 
+      23             : /// Refresh indicator widget.
+      24             : ///
+      25             : /// Params for Material Design style:
+      26             : /// [indicatorColor], [backgroundColor].
+      27             : ///
+      28             : /// Params for Cupertino style:
+      29             : /// [refreshTriggerPullDistance], [refreshIndicatorExtent], [indicatorBuilder].
+      30             : class SwipeRefresh extends StatelessWidget {
+      31             :   final List<Widget>? children;
+      32             :   final VoidCallback onRefresh;
+      33             :   final SwipeRefreshState? initState;
+      34             :   final Stream<SwipeRefreshState> stateStream;
+      35             :   final Color? indicatorColor;
+      36             :   final Color backgroundColor;
+      37             :   final double refreshTriggerPullDistance;
+      38             :   final double refreshIndicatorExtent;
+      39             :   final RefreshControlIndicatorBuilder indicatorBuilder;
+      40             :   final SwipeRefreshStyle style;
+      41             :   final ScrollController? scrollController;
+      42             :   final SliverChildDelegate? childrenDelegate;
+      43             :   final EdgeInsets? padding;
+      44             :   final bool shrinkWrap;
+      45             :   final ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior;
+      46             :   final ScrollPhysics? physics;
+      47             :   final PlatformWrapper _platform;
+      48             : 
+      49           4 :   SwipeRefresh(
+      50             :     this.style, {
+      51             :     required this.stateStream,
+      52             :     required this.onRefresh,
+      53             :     Key? key,
+      54             :     this.children,
+      55             :     this.initState,
+      56             :     this.scrollController,
+      57             :     this.childrenDelegate,
+      58             :     this.padding,
+      59             :     this.indicatorColor,
+      60             :     this.shrinkWrap = false,
+      61             :     this.keyboardDismissBehavior,
+      62             :     this.physics,
+      63             :     Color? backgroundColor,
+      64             :     double? refreshTriggerPullDistance,
+      65             :     double? refreshIndicatorExtent,
+      66             :     RefreshControlIndicatorBuilder? indicatorBuilder,
+      67             :     PlatformWrapper? platform,
+      68             :   })  : backgroundColor = backgroundColor ?? const Color(0xFFFFFFFF),
+      69             :         refreshTriggerPullDistance = refreshTriggerPullDistance ??
+      70             :             CupertinoSwipeRefresh.defaultRefreshTriggerPullDistance,
+      71             :         refreshIndicatorExtent = refreshIndicatorExtent ??
+      72             :             CupertinoSwipeRefresh.defaultRefreshIndicatorExtent,
+      73             :         indicatorBuilder = indicatorBuilder ??
+      74             :             CupertinoSliverRefreshControl.buildRefreshIndicator,
+      75           2 :         _platform = platform ?? PlatformWrapper(),
+      76           4 :         super(key: key);
+      77             : 
+      78             :   /// Create refresh indicator adaptive to platform.
+      79           1 :   SwipeRefresh.adaptive({
+      80             :     required Stream<SwipeRefreshState> stateStream,
+      81             :     required VoidCallback onRefresh,
+      82             :     List<Widget>? children,
+      83             :     SliverChildDelegate? childrenDelegate,
+      84             :     Key? key,
+      85             :     SwipeRefreshState? initState,
+      86             :     Color? indicatorColor,
+      87             :     Color? backgroundColor,
+      88             :     double? refreshTriggerPullDistance,
+      89             :     double? refreshIndicatorExtent,
+      90             :     RefreshControlIndicatorBuilder? indicatorBuilder,
+      91             :     ScrollController? scrollController,
+      92             :     EdgeInsets? padding,
+      93             :     bool shrinkWrap = false,
+      94             :     ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
+      95             :     ScrollPhysics? physics,
+      96             :     PlatformWrapper? platform,
+      97           1 :   }) : this(
+      98             :           SwipeRefreshStyle.adaptive,
+      99             :           key: key,
+     100             :           children: children,
+     101             :           childrenDelegate: childrenDelegate,
+     102             :           stateStream: stateStream,
+     103             :           initState: initState,
+     104             :           onRefresh: onRefresh,
+     105             :           indicatorColor: indicatorColor,
+     106             :           backgroundColor: backgroundColor,
+     107             :           refreshTriggerPullDistance: refreshTriggerPullDistance,
+     108             :           refreshIndicatorExtent: refreshIndicatorExtent,
+     109             :           indicatorBuilder: indicatorBuilder,
+     110             :           scrollController: scrollController,
+     111             :           padding: padding,
+     112             :           shrinkWrap: shrinkWrap,
+     113             :           keyboardDismissBehavior: keyboardDismissBehavior,
+     114             :           physics: physics,
+     115             :           platform: platform,
+     116             :         );
+     117             : 
+     118             :   /// Create refresh indicator with Material Design style.
+     119           1 :   SwipeRefresh.material({
+     120             :     required Stream<SwipeRefreshState> stateStream,
+     121             :     required VoidCallback onRefresh,
+     122             :     List<Widget>? children,
+     123             :     SliverChildDelegate? childrenDelegate,
+     124             :     Key? key,
+     125             :     SwipeRefreshState? initState,
+     126             :     Color? indicatorColor,
+     127             :     Color? backgroundColor,
+     128             :     ScrollController? scrollController,
+     129             :     EdgeInsets? padding,
+     130             :     bool shrinkWrap = false,
+     131             :     ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
+     132             :     ScrollPhysics? physics,
+     133           1 :   }) : this(
+     134             :           SwipeRefreshStyle.material,
+     135             :           key: key,
+     136             :           children: children,
+     137             :           childrenDelegate: childrenDelegate,
+     138             :           stateStream: stateStream,
+     139             :           initState: initState,
+     140             :           onRefresh: onRefresh,
+     141             :           indicatorColor: indicatorColor,
+     142             :           backgroundColor: backgroundColor,
+     143             :           scrollController: scrollController,
+     144             :           padding: padding,
+     145             :           shrinkWrap: shrinkWrap,
+     146             :           keyboardDismissBehavior: keyboardDismissBehavior,
+     147             :           physics: physics,
+     148             :         );
+     149             : 
+     150             :   /// Create refresh indicator with Cupertino style.
+     151           1 :   SwipeRefresh.cupertino({
+     152             :     required Stream<SwipeRefreshState> stateStream,
+     153             :     required VoidCallback onRefresh,
+     154             :     List<Widget>? children,
+     155             :     SliverChildDelegate? childrenDelegate,
+     156             :     Key? key,
+     157             :     SwipeRefreshState? initState,
+     158             :     double? refreshTriggerPullDistance,
+     159             :     double? refreshIndicatorExtent,
+     160             :     RefreshControlIndicatorBuilder? indicatorBuilder,
+     161             :     ScrollController? scrollController,
+     162             :     EdgeInsets? padding,
+     163             :     bool shrinkWrap = false,
+     164             :     ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
+     165             :     ScrollPhysics? physics,
+     166           1 :   }) : this(
+     167             :           SwipeRefreshStyle.cupertino,
+     168             :           key: key,
+     169             :           children: children,
+     170             :           childrenDelegate: childrenDelegate,
+     171             :           stateStream: stateStream,
+     172             :           initState: initState,
+     173             :           onRefresh: onRefresh,
+     174             :           refreshTriggerPullDistance: refreshTriggerPullDistance,
+     175             :           refreshIndicatorExtent: refreshIndicatorExtent,
+     176             :           indicatorBuilder: indicatorBuilder,
+     177             :           scrollController: scrollController,
+     178             :           padding: padding,
+     179             :           shrinkWrap: shrinkWrap,
+     180             :           keyboardDismissBehavior: keyboardDismissBehavior,
+     181             :           physics: physics,
+     182             :         );
+     183             : 
+     184             :   /// Create SwipeRefresh as common link
+     185             :   /// remove some conflicts between ScrollControllers when ListView added into
+     186             :   /// SwipeRefresh (remove need to add extra ListView).
+     187           1 :   factory SwipeRefresh.builder({
+     188             :     required IndexedWidgetBuilder itemBuilder,
+     189             :     required int itemCount,
+     190             :     required Stream<SwipeRefreshState> stateStream,
+     191             :     required VoidCallback onRefresh,
+     192             :     Key? key,
+     193             :     SwipeRefreshState? initState,
+     194             :     Color? indicatorColor,
+     195             :     Color? backgroundColor,
+     196             :     double? refreshTriggerPullDistance,
+     197             :     double? refreshIndicatorExtent,
+     198             :     RefreshControlIndicatorBuilder? indicatorBuilder,
+     199             :     ScrollController? scrollController,
+     200             :     EdgeInsets? padding,
+     201             :     bool shrinkWrap = false,
+     202             :     ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
+     203             :     ScrollPhysics? physics,
+     204             :     PlatformWrapper? platform,
+     205             :   }) {
+     206           1 :     return SwipeRefresh(
+     207             :       SwipeRefreshStyle.adaptive,
+     208             :       key: key,
+     209             :       stateStream: stateStream,
+     210             :       initState: initState,
+     211             :       onRefresh: onRefresh,
+     212             :       indicatorColor: indicatorColor,
+     213             :       backgroundColor: backgroundColor,
+     214             :       refreshTriggerPullDistance: refreshTriggerPullDistance,
+     215             :       refreshIndicatorExtent: refreshIndicatorExtent,
+     216             :       indicatorBuilder: indicatorBuilder,
+     217             :       scrollController: scrollController,
+     218             :       padding: padding,
+     219             :       shrinkWrap: shrinkWrap,
+     220             :       keyboardDismissBehavior: keyboardDismissBehavior,
+     221             :       physics: physics,
+     222           1 :       childrenDelegate: SliverChildBuilderDelegate(
+     223             :         itemBuilder,
+     224             :         childCount: itemCount,
+     225             :       ),
+     226             :       platform: platform,
+     227             :     );
+     228             :   }
+     229             : 
+     230           4 :   @override
+     231             :   Widget build(BuildContext context) {
+     232           4 :     switch (style) {
+     233           4 :       case SwipeRefreshStyle.material:
+     234           1 :         return MaterialSwipeRefresh(
+     235           1 :           key: key,
+     236           1 :           childrenDelegate: childrenDelegate,
+     237           1 :           stateStream: stateStream,
+     238           1 :           initState: initState,
+     239           1 :           onRefresh: onRefresh,
+     240           1 :           scrollController: scrollController,
+     241           1 :           backgroundColor: backgroundColor,
+     242           1 :           indicatorColor: indicatorColor,
+     243           1 :           shrinkWrap: shrinkWrap,
+     244           1 :           padding: padding,
+     245           1 :           keyboardDismissBehavior: keyboardDismissBehavior,
+     246           1 :           physics: physics,
+     247           1 :           children: children,
+     248             :         );
+     249           3 :       case SwipeRefreshStyle.cupertino:
+     250           1 :         return CupertinoSwipeRefresh(
+     251           1 :           key: key,
+     252           1 :           childrenDelegate: childrenDelegate,
+     253           1 :           stateStream: stateStream,
+     254           1 :           initState: initState,
+     255           1 :           onRefresh: onRefresh,
+     256           1 :           scrollController: scrollController,
+     257           1 :           refreshIndicatorExtent: refreshIndicatorExtent,
+     258           1 :           refreshTriggerPullDistance: refreshTriggerPullDistance,
+     259           1 :           indicatorBuilder: indicatorBuilder,
+     260           1 :           shrinkWrap: shrinkWrap,
+     261           1 :           padding: padding,
+     262           1 :           physics: physics,
+     263           1 :           children: children,
+     264             :         );
+     265           2 :       case SwipeRefreshStyle.builder:
+     266           2 :       case SwipeRefreshStyle.adaptive:
+     267           4 :         if (_platform.isAndroid) {
+     268           1 :           return MaterialSwipeRefresh(
+     269           1 :             key: key,
+     270           1 :             childrenDelegate: childrenDelegate,
+     271           1 :             stateStream: stateStream,
+     272           1 :             initState: initState,
+     273           1 :             onRefresh: onRefresh,
+     274           1 :             scrollController: scrollController,
+     275           1 :             backgroundColor: backgroundColor,
+     276           1 :             indicatorColor: indicatorColor,
+     277           1 :             shrinkWrap: shrinkWrap,
+     278           1 :             padding: padding,
+     279           1 :             keyboardDismissBehavior: keyboardDismissBehavior,
+     280           1 :             physics: physics,
+     281           1 :             children: children,
+     282             :           );
+     283           4 :         } else if (_platform.isIOS) {
+     284           2 :           return CupertinoSwipeRefresh(
+     285           2 :             key: key,
+     286           2 :             childrenDelegate: childrenDelegate,
+     287           2 :             stateStream: stateStream,
+     288           2 :             initState: initState,
+     289           2 :             onRefresh: onRefresh,
+     290           2 :             scrollController: scrollController,
+     291           2 :             refreshIndicatorExtent: refreshIndicatorExtent,
+     292           2 :             refreshTriggerPullDistance: refreshTriggerPullDistance,
+     293           2 :             indicatorBuilder: indicatorBuilder,
+     294           2 :             shrinkWrap: shrinkWrap,
+     295           2 :             padding: padding,
+     296           2 :             physics: physics,
+     297           2 :             children: children,
+     298             :           );
+     299             :         }
+     300             :     }
+     301             : 
+     302           1 :     return Container();
+     303             :   }
+     304             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/src/swipe_refresh_base.dart.func-sort-c.html b/coverage/html/src/swipe_refresh_base.dart.func-sort-c.html new file mode 100644 index 0000000..6bdee7c --- /dev/null +++ b/coverage/html/src/swipe_refresh_base.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - src\swipe_refresh_base.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - src\swipe_refresh_base.dart - swipe_refresh_base.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:2424100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/src/swipe_refresh_base.dart.func.html b/coverage/html/src/swipe_refresh_base.dart.func.html new file mode 100644 index 0000000..662259b --- /dev/null +++ b/coverage/html/src/swipe_refresh_base.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - src\swipe_refresh_base.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - src\swipe_refresh_base.dart - swipe_refresh_base.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:2424100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/src/swipe_refresh_base.dart.gcov.html b/coverage/html/src/swipe_refresh_base.dart.gcov.html new file mode 100644 index 0000000..2a3f334 --- /dev/null +++ b/coverage/html/src/swipe_refresh_base.dart.gcov.html @@ -0,0 +1,198 @@ + + + + + + + LCOV - lcov.info - src\swipe_refresh_base.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - src\swipe_refresh_base.dart - swipe_refresh_base.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:2424100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : // Copyright (c) 2019-present,  SurfStudio LLC
+       2             : //
+       3             : // Licensed under the Apache License, Version 2.0 (the "License");
+       4             : // you may not use this file except in compliance with the License.
+       5             : // You may obtain a copy of the License at
+       6             : //
+       7             : //     http://www.apache.org/licenses/LICENSE-2.0
+       8             : //
+       9             : // Unless required by applicable law or agreed to in writing, software
+      10             : // distributed under the License is distributed on an "AS IS" BASIS,
+      11             : // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+      12             : // See the License for the specific language governing permissions and
+      13             : // limitations under the License.
+      14             : 
+      15             : import 'dart:async';
+      16             : 
+      17             : import 'package:flutter/material.dart';
+      18             : import 'package:swipe_refresh/src/swipe_refresh_state.dart';
+      19             : 
+      20             : /// Base refresh indicator widget.
+      21             : abstract class SwipeRefreshBase extends StatefulWidget {
+      22             :   final List<Widget>? children;
+      23             :   final VoidCallback onRefresh;
+      24             :   final SwipeRefreshState? initState;
+      25             :   final Stream<SwipeRefreshState> stateStream;
+      26             :   final ScrollController? scrollController;
+      27             :   final SliverChildDelegate? childrenDelegate;
+      28             :   final EdgeInsets? padding;
+      29             :   final bool shrinkWrap;
+      30             :   final ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior;
+      31             :   final ScrollPhysics? physics;
+      32             : 
+      33           4 :   const SwipeRefreshBase({
+      34             :     required this.stateStream,
+      35             :     required this.onRefresh,
+      36             :     Key? key,
+      37             :     this.initState,
+      38             :     this.scrollController,
+      39             :     this.childrenDelegate,
+      40             :     this.children,
+      41             :     this.padding,
+      42             :     this.shrinkWrap = false,
+      43             :     this.keyboardDismissBehavior,
+      44             :     this.physics,
+      45           2 :   })  : assert((children == null || childrenDelegate == null) &&
+      46             :             (children != null || childrenDelegate != null)),
+      47           4 :         super(key: key);
+      48             : 
+      49             :   @override
+      50             :   @protected
+      51             :   // ignore: no_logic_in_create_state
+      52             :   SwipeRefreshBaseState createState();
+      53             : }
+      54             : 
+      55             : abstract class SwipeRefreshBaseState<T extends SwipeRefreshBase>
+      56             :     extends State<T> {
+      57             :   @protected
+      58             :   final GlobalKey refreshKey = GlobalKey();
+      59             : 
+      60             :   @protected
+      61             :   Completer<void>? completer;
+      62             : 
+      63             :   @visibleForTesting
+      64             :   @protected
+      65             :   SwipeRefreshState currentState = SwipeRefreshState.hidden;
+      66             : 
+      67             :   StreamSubscription<SwipeRefreshState>? _stateSubscription;
+      68             : 
+      69           4 :   @override
+      70             :   void initState() {
+      71           4 :     super.initState();
+      72             : 
+      73           8 :     if (widget.initState != null) {
+      74           6 :       currentState = widget.initState!;
+      75             :     }
+      76             : 
+      77          20 :     _stateSubscription = widget.stateStream.listen(_updateState);
+      78             :   }
+      79             : 
+      80           4 :   @override
+      81             :   Widget build(BuildContext context) {
+      82             :     // ignore: avoid-returning-widgets
+      83          22 :     return buildRefresher(refreshKey, widget.children ?? [], _onRefresh);
+      84             :   }
+      85             : 
+      86           4 :   @override
+      87             :   void dispose() {
+      88           8 :     _stateSubscription?.cancel();
+      89             : 
+      90           4 :     super.dispose();
+      91             :   }
+      92             : 
+      93             :   @protected
+      94             :   Widget buildRefresher(
+      95             :     Key key,
+      96             :     List<Widget> children,
+      97             :     Future<void> Function() onRefresh,
+      98             :   );
+      99             : 
+     100             :   @protected
+     101             :   void onUpdateState(SwipeRefreshState state);
+     102             : 
+     103           2 :   @protected
+     104             :   Future<void> _onRefresh() {
+     105           2 :     _updateState(SwipeRefreshState.loading);
+     106           4 :     widget.onRefresh();
+     107           4 :     completer = Completer<void>();
+     108           4 :     return completer!.future;
+     109             :   }
+     110             : 
+     111           2 :   void _updateState(SwipeRefreshState newState) {
+     112           4 :     if (currentState != newState) {
+     113           2 :       setState(
+     114           2 :         () {
+     115           2 :           currentState = newState;
+     116             : 
+     117           4 :           onUpdateState(currentState);
+     118             :         },
+     119             :       );
+     120             :     }
+     121             :   }
+     122             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/src/swipe_refresh_state.dart.func-sort-c.html b/coverage/html/src/swipe_refresh_state.dart.func-sort-c.html new file mode 100644 index 0000000..24ecdbe --- /dev/null +++ b/coverage/html/src/swipe_refresh_state.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - src\swipe_refresh_state.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - src\swipe_refresh_state.dart - swipe_refresh_state.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:11100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/src/swipe_refresh_state.dart.func.html b/coverage/html/src/swipe_refresh_state.dart.func.html new file mode 100644 index 0000000..5e9826e --- /dev/null +++ b/coverage/html/src/swipe_refresh_state.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - src\swipe_refresh_state.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - src\swipe_refresh_state.dart - swipe_refresh_state.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:11100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/src/swipe_refresh_state.dart.gcov.html b/coverage/html/src/swipe_refresh_state.dart.gcov.html new file mode 100644 index 0000000..dfb046a --- /dev/null +++ b/coverage/html/src/swipe_refresh_state.dart.gcov.html @@ -0,0 +1,98 @@ + + + + + + + LCOV - lcov.info - src\swipe_refresh_state.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - src\swipe_refresh_state.dart - swipe_refresh_state.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:11100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : // Copyright (c) 2019-present,  SurfStudio LLC
+       2             : //
+       3             : // Licensed under the Apache License, Version 2.0 (the "License");
+       4             : // you may not use this file except in compliance with the License.
+       5             : // You may obtain a copy of the License at
+       6             : //
+       7             : //     http://www.apache.org/licenses/LICENSE-2.0
+       8             : //
+       9             : // Unless required by applicable law or agreed to in writing, software
+      10             : // distributed under the License is distributed on an "AS IS" BASIS,
+      11             : // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+      12             : // See the License for the specific language governing permissions and
+      13             : // limitations under the License.
+      14             : 
+      15             : /// Refresh indicator states.
+      16           4 : enum SwipeRefreshState {
+      17             :   /// Indicator hidden.
+      18             :   hidden,
+      19             : 
+      20             :   /// Indicator shown.
+      21             :   loading,
+      22             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/src/swipe_refresh_style.dart.func-sort-c.html b/coverage/html/src/swipe_refresh_style.dart.func-sort-c.html new file mode 100644 index 0000000..944cbc2 --- /dev/null +++ b/coverage/html/src/swipe_refresh_style.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - src\swipe_refresh_style.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - src\swipe_refresh_style.dart - swipe_refresh_style.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:11100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/src/swipe_refresh_style.dart.func.html b/coverage/html/src/swipe_refresh_style.dart.func.html new file mode 100644 index 0000000..ea66fb2 --- /dev/null +++ b/coverage/html/src/swipe_refresh_style.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - src\swipe_refresh_style.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - src\swipe_refresh_style.dart - swipe_refresh_style.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:11100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/src/swipe_refresh_style.dart.gcov.html b/coverage/html/src/swipe_refresh_style.dart.gcov.html new file mode 100644 index 0000000..1f16e83 --- /dev/null +++ b/coverage/html/src/swipe_refresh_style.dart.gcov.html @@ -0,0 +1,104 @@ + + + + + + + LCOV - lcov.info - src\swipe_refresh_style.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - src\swipe_refresh_style.dart - swipe_refresh_style.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:11100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : // Copyright (c) 2019-present,  SurfStudio LLC
+       2             : //
+       3             : // Licensed under the Apache License, Version 2.0 (the "License");
+       4             : // you may not use this file except in compliance with the License.
+       5             : // You may obtain a copy of the License at
+       6             : //
+       7             : //     http://www.apache.org/licenses/LICENSE-2.0
+       8             : //
+       9             : // Unless required by applicable law or agreed to in writing, software
+      10             : // distributed under the License is distributed on an "AS IS" BASIS,
+      11             : // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+      12             : // See the License for the specific language governing permissions and
+      13             : // limitations under the License.
+      14             : 
+      15             : /// Indicator style.
+      16           4 : enum SwipeRefreshStyle {
+      17             :   /// Material Design.
+      18             :   material,
+      19             : 
+      20             :   /// Cupertino.
+      21             :   cupertino,
+      22             : 
+      23             :   /// Adaptive.
+      24             :   adaptive,
+      25             : 
+      26             :   /// Builder.
+      27             :   builder,
+      28             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/updown.png b/coverage/html/updown.png new file mode 100644 index 0000000000000000000000000000000000000000..aa56a238b3e6c435265250f9266cd1b8caba0f20 GIT binary patch literal 117 zcmeAS@N?(olHy`uVBq!ia0vp^AT}Qd8;}%R+`Ae`*?77*hG?8mPH5^{)z4*}Q$iB}huR`+ literal 0 HcmV?d00001 diff --git a/coverage/html/utills/index-sort-f.html b/coverage/html/utills/index-sort-f.html new file mode 100644 index 0000000..c06fa6e --- /dev/null +++ b/coverage/html/utills/index-sort-f.html @@ -0,0 +1,93 @@ + + + + + + + LCOV - lcov.info - utills + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - utillsHitTotalCoverage
Test:lcov.infoLines:22100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
platform_wrapper.dart +
100.0%
+
100.0 %2 / 2-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/utills/index-sort-l.html b/coverage/html/utills/index-sort-l.html new file mode 100644 index 0000000..d425a7b --- /dev/null +++ b/coverage/html/utills/index-sort-l.html @@ -0,0 +1,93 @@ + + + + + + + LCOV - lcov.info - utills + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - utillsHitTotalCoverage
Test:lcov.infoLines:22100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
platform_wrapper.dart +
100.0%
+
100.0 %2 / 2-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/utills/index.html b/coverage/html/utills/index.html new file mode 100644 index 0000000..8dcc6ca --- /dev/null +++ b/coverage/html/utills/index.html @@ -0,0 +1,93 @@ + + + + + + + LCOV - lcov.info - utills + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - utillsHitTotalCoverage
Test:lcov.infoLines:22100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
platform_wrapper.dart +
100.0%
+
100.0 %2 / 2-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/utills/platform_wrapper.dart.func-sort-c.html b/coverage/html/utills/platform_wrapper.dart.func-sort-c.html new file mode 100644 index 0000000..d172493 --- /dev/null +++ b/coverage/html/utills/platform_wrapper.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - utills\platform_wrapper.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - utills\platform_wrapper.dart - platform_wrapper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:22100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/utills/platform_wrapper.dart.func.html b/coverage/html/utills/platform_wrapper.dart.func.html new file mode 100644 index 0000000..4cf2985 --- /dev/null +++ b/coverage/html/utills/platform_wrapper.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - utills\platform_wrapper.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - utills\platform_wrapper.dart - platform_wrapper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:22100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/html/utills/platform_wrapper.dart.gcov.html b/coverage/html/utills/platform_wrapper.dart.gcov.html new file mode 100644 index 0000000..98c8e3b --- /dev/null +++ b/coverage/html/utills/platform_wrapper.dart.gcov.html @@ -0,0 +1,98 @@ + + + + + + + LCOV - lcov.info - utills\platform_wrapper.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - utills\platform_wrapper.dart - platform_wrapper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:22100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : // Copyright (c) 2019-present,  SurfStudio LLC
+       2             : //
+       3             : // Licensed under the Apache License, Version 2.0 (the "License");
+       4             : // you may not use this file except in compliance with the License.
+       5             : // You may obtain a copy of the License at
+       6             : //
+       7             : //     http://www.apache.org/licenses/LICENSE-2.0
+       8             : //
+       9             : // Unless required by applicable law or agreed to in writing, software
+      10             : // distributed under the License is distributed on an "AS IS" BASIS,
+      11             : // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+      12             : // See the License for the specific language governing permissions and
+      13             : // limitations under the License.
+      14             : 
+      15             : import 'dart:io';
+      16             : 
+      17             : /// Wrapper for Platform io.
+      18             : class PlatformWrapper {
+      19           2 :   bool get isIOS => Platform.isIOS;
+      20             : 
+      21           2 :   bool get isAndroid => Platform.isAndroid;
+      22             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.15.alpha0w
+
+ + + diff --git a/coverage/lcov.info b/coverage/lcov.info new file mode 100644 index 0000000..9d987dc --- /dev/null +++ b/coverage/lcov.info @@ -0,0 +1,206 @@ +SF:lib\utills\platform_wrapper.dart +DA:19,2 +DA:21,2 +LF:2 +LH:2 +end_of_record +SF:lib\src\cupertino_swipe_refresh.dart +DA:30,3 +DA:45,3 +DA:59,3 +DA:61,3 +DA:62,3 +DA:70,3 +DA:72,3 +DA:74,3 +DA:80,3 +DA:81,6 +DA:82,3 +DA:83,6 +DA:85,6 +DA:89,3 +DA:90,3 +DA:91,3 +DA:94,6 +DA:95,6 +DA:96,6 +DA:98,3 +DA:99,6 +DA:100,6 +DA:101,6 +DA:102,6 +DA:103,3 +DA:105,6 +DA:106,6 +DA:113,1 +DA:119,1 +DA:120,1 +DA:121,2 +DA:122,1 +DA:133,3 +DA:138,3 +DA:140,3 +DA:142,3 +DA:143,1 +DA:144,1 +DA:145,1 +DA:146,1 +DA:147,1 +DA:148,1 +DA:153,3 +DA:154,3 +DA:155,2 +DA:156,2 +LF:46 +LH:46 +end_of_record +SF:lib\src\swipe_refresh_base.dart +DA:33,4 +DA:45,2 +DA:47,4 +DA:69,4 +DA:71,4 +DA:73,8 +DA:74,6 +DA:77,20 +DA:80,4 +DA:83,22 +DA:86,4 +DA:88,8 +DA:90,4 +DA:103,2 +DA:105,2 +DA:106,4 +DA:107,4 +DA:108,4 +DA:111,2 +DA:112,4 +DA:113,2 +DA:114,2 +DA:115,2 +DA:117,4 +LF:24 +LH:24 +end_of_record +SF:lib\src\swipe_refresh_state.dart +DA:16,4 +LF:1 +LH:1 +end_of_record +SF:lib\src\material_swipe_refresh.dart +DA:27,2 +DA:42,2 +DA:56,2 +DA:57,2 +DA:62,2 +DA:68,2 +DA:71,4 +DA:72,4 +DA:73,4 +DA:74,2 +DA:75,4 +DA:76,4 +DA:77,6 +DA:78,6 +DA:79,4 +DA:83,1 +DA:84,2 +DA:85,2 +DA:86,2 +DA:87,2 +DA:88,2 +DA:90,3 +DA:95,1 +DA:97,1 +DA:98,1 +DA:99,2 +DA:100,1 +LF:27 +LH:27 +end_of_record +SF:lib\src\swipe_refresh.dart +DA:49,4 +DA:75,2 +DA:76,4 +DA:79,1 +DA:97,1 +DA:119,1 +DA:133,1 +DA:151,1 +DA:166,1 +DA:187,1 +DA:206,1 +DA:222,1 +DA:230,4 +DA:232,4 +DA:233,4 +DA:234,1 +DA:235,1 +DA:236,1 +DA:237,1 +DA:238,1 +DA:239,1 +DA:240,1 +DA:241,1 +DA:242,1 +DA:243,1 +DA:244,1 +DA:245,1 +DA:246,1 +DA:247,1 +DA:249,3 +DA:250,1 +DA:251,1 +DA:252,1 +DA:253,1 +DA:254,1 +DA:255,1 +DA:256,1 +DA:257,1 +DA:258,1 +DA:259,1 +DA:260,1 +DA:261,1 +DA:262,1 +DA:263,1 +DA:265,2 +DA:266,2 +DA:267,4 +DA:268,1 +DA:269,1 +DA:270,1 +DA:271,1 +DA:272,1 +DA:273,1 +DA:274,1 +DA:275,1 +DA:276,1 +DA:277,1 +DA:278,1 +DA:279,1 +DA:280,1 +DA:281,1 +DA:283,4 +DA:284,2 +DA:285,2 +DA:286,2 +DA:287,2 +DA:288,2 +DA:289,2 +DA:290,2 +DA:291,2 +DA:292,2 +DA:293,2 +DA:294,2 +DA:295,2 +DA:296,2 +DA:297,2 +DA:302,1 +LF:77 +LH:77 +end_of_record +SF:lib\src\swipe_refresh_style.dart +DA:16,4 +LF:1 +LH:1 +end_of_record diff --git a/lib/src/cupertino_swipe_refresh.dart b/lib/src/cupertino_swipe_refresh.dart index fa2ae65..b261088 100644 --- a/lib/src/cupertino_swipe_refresh.dart +++ b/lib/src/cupertino_swipe_refresh.dart @@ -112,10 +112,6 @@ class _CupertinoSwipeRefreshState @override void onUpdateState(SwipeRefreshState state) { - if (state == SwipeRefreshState.loading) { - _scrollController.jumpTo(-(widget.refreshIndicatorExtent + 5)); - } - if (state == SwipeRefreshState.hidden) { if (completer != null) { completer!.complete(); diff --git a/lib/src/material_swipe_refresh.dart b/lib/src/material_swipe_refresh.dart index e75f869..19246fb 100644 --- a/lib/src/material_swipe_refresh.dart +++ b/lib/src/material_swipe_refresh.dart @@ -94,10 +94,6 @@ class _MaterialSwipeRefreshState @override void onUpdateState(SwipeRefreshState state) { - if (state == SwipeRefreshState.loading) { - (refreshKey.currentState as RefreshIndicatorState).show(); - } - if (state == SwipeRefreshState.hidden) { if (completer != null) { completer!.complete(); diff --git a/lib/src/swipe_refresh.dart b/lib/src/swipe_refresh.dart index 62bb058..dd4d607 100644 --- a/lib/src/swipe_refresh.dart +++ b/lib/src/swipe_refresh.dart @@ -79,7 +79,8 @@ class SwipeRefresh extends StatelessWidget { SwipeRefresh.adaptive({ required Stream stateStream, required VoidCallback onRefresh, - required List children, + List? children, + SliverChildDelegate? childrenDelegate, Key? key, SwipeRefreshState? initState, Color? indicatorColor, @@ -97,6 +98,7 @@ class SwipeRefresh extends StatelessWidget { SwipeRefreshStyle.adaptive, key: key, children: children, + childrenDelegate: childrenDelegate, stateStream: stateStream, initState: initState, onRefresh: onRefresh, @@ -117,7 +119,8 @@ class SwipeRefresh extends StatelessWidget { SwipeRefresh.material({ required Stream stateStream, required VoidCallback onRefresh, - required List children, + List? children, + SliverChildDelegate? childrenDelegate, Key? key, SwipeRefreshState? initState, Color? indicatorColor, @@ -131,6 +134,7 @@ class SwipeRefresh extends StatelessWidget { SwipeRefreshStyle.material, key: key, children: children, + childrenDelegate: childrenDelegate, stateStream: stateStream, initState: initState, onRefresh: onRefresh, @@ -147,7 +151,8 @@ class SwipeRefresh extends StatelessWidget { SwipeRefresh.cupertino({ required Stream stateStream, required VoidCallback onRefresh, - required List children, + List? children, + SliverChildDelegate? childrenDelegate, Key? key, SwipeRefreshState? initState, double? refreshTriggerPullDistance, @@ -162,6 +167,7 @@ class SwipeRefresh extends StatelessWidget { SwipeRefreshStyle.cupertino, key: key, children: children, + childrenDelegate: childrenDelegate, stateStream: stateStream, initState: initState, onRefresh: onRefresh, @@ -258,39 +264,39 @@ class SwipeRefresh extends StatelessWidget { ); case SwipeRefreshStyle.builder: case SwipeRefreshStyle.adaptive: - if (_platform.isAndroid) { - return MaterialSwipeRefresh( - key: key, - childrenDelegate: childrenDelegate, - stateStream: stateStream, - initState: initState, - onRefresh: onRefresh, - scrollController: scrollController, - backgroundColor: backgroundColor, - indicatorColor: indicatorColor, - shrinkWrap: shrinkWrap, - padding: padding, - keyboardDismissBehavior: keyboardDismissBehavior, - physics: physics, - children: children, - ); - } else if (_platform.isIOS) { - return CupertinoSwipeRefresh( - key: key, - childrenDelegate: childrenDelegate, - stateStream: stateStream, - initState: initState, - onRefresh: onRefresh, - scrollController: scrollController, - refreshIndicatorExtent: refreshIndicatorExtent, - refreshTriggerPullDistance: refreshTriggerPullDistance, - indicatorBuilder: indicatorBuilder, - shrinkWrap: shrinkWrap, - padding: padding, - physics: physics, - children: children, - ); - } + if (_platform.isAndroid) { + return MaterialSwipeRefresh( + key: key, + childrenDelegate: childrenDelegate, + stateStream: stateStream, + initState: initState, + onRefresh: onRefresh, + scrollController: scrollController, + backgroundColor: backgroundColor, + indicatorColor: indicatorColor, + shrinkWrap: shrinkWrap, + padding: padding, + keyboardDismissBehavior: keyboardDismissBehavior, + physics: physics, + children: children, + ); + } else if (_platform.isIOS) { + return CupertinoSwipeRefresh( + key: key, + childrenDelegate: childrenDelegate, + stateStream: stateStream, + initState: initState, + onRefresh: onRefresh, + scrollController: scrollController, + refreshIndicatorExtent: refreshIndicatorExtent, + refreshTriggerPullDistance: refreshTriggerPullDistance, + indicatorBuilder: indicatorBuilder, + shrinkWrap: shrinkWrap, + padding: padding, + physics: physics, + children: children, + ); + } } return Container(); diff --git a/lib/src/swipe_refresh_base.dart b/lib/src/swipe_refresh_base.dart index 6c97e7b..a0e88c8 100644 --- a/lib/src/swipe_refresh_base.dart +++ b/lib/src/swipe_refresh_base.dart @@ -60,16 +60,18 @@ abstract class SwipeRefreshBaseState @protected Completer? completer; - StreamSubscription? _stateSubscription; + @visibleForTesting + @protected + SwipeRefreshState currentState = SwipeRefreshState.hidden; - SwipeRefreshState _currentState = SwipeRefreshState.hidden; + StreamSubscription? _stateSubscription; @override void initState() { super.initState(); if (widget.initState != null) { - _currentState = widget.initState!; + currentState = widget.initState!; } _stateSubscription = widget.stateStream.listen(_updateState); @@ -100,19 +102,19 @@ abstract class SwipeRefreshBaseState @protected Future _onRefresh() { - _currentState = SwipeRefreshState.loading; + _updateState(SwipeRefreshState.loading); widget.onRefresh(); completer = Completer(); return completer!.future; } void _updateState(SwipeRefreshState newState) { - if (_currentState != newState) { + if (currentState != newState) { setState( () { - _currentState = newState; + currentState = newState; - onUpdateState(_currentState); + onUpdateState(currentState); }, ); } diff --git a/test/swipe_refresh_adaptive_test.dart b/test/swipe_refresh_adaptive_test.dart index 572886c..84b8fa3 100644 --- a/test/swipe_refresh_adaptive_test.dart +++ b/test/swipe_refresh_adaptive_test.dart @@ -76,7 +76,6 @@ void main() { await tester.pumpWidget(adaptiveSwipeRefresh); expect(() => adaptiveSwipeRefresh, returnsNormally); - expect(find.byType(Container), findsOneWidget); }, ); @@ -105,7 +104,6 @@ void main() { await tester.pumpWidget(adaptiveSwipeRefresh); expect(() => adaptiveSwipeRefresh, returnsNormally); - expect(find.byType(MaterialSwipeRefresh), findsOneWidget); }, ); @@ -135,7 +133,6 @@ void main() { await tester.pumpWidget(adaptiveSwipeRefresh); expect(() => adaptiveSwipeRefresh, returnsNormally); - expect(find.byType(CupertinoSwipeRefresh), findsOneWidget); }, ); diff --git a/test/swipe_refresh_with_builder.dart b/test/swipe_refresh_builder_test.dart similarity index 89% rename from test/swipe_refresh_with_builder.dart rename to test/swipe_refresh_builder_test.dart index 78bafd3..663840c 100644 --- a/test/swipe_refresh_with_builder.dart +++ b/test/swipe_refresh_builder_test.dart @@ -23,26 +23,26 @@ import 'package:swipe_refresh/utills/platform_wrapper.dart'; import 'test_utils.dart'; void main() { - late StreamController _controller; + late StreamController controller; late Stream stream; late MockPlatformWrapper platformWrapper; setUp(() { - _controller = StreamController.broadcast(); - stream = _controller.stream; + controller = StreamController.broadcast(); + stream = controller.stream; platformWrapper = MockPlatformWrapper(); }); tearDown(() async { - await _controller.close(); + await controller.close(); }); Future _onRefresh() async { await Future.delayed(const Duration(seconds: 3)); - _controller.sink.add(SwipeRefreshState.hidden); + controller.sink.add(SwipeRefreshState.hidden); } final listColors = [ @@ -74,7 +74,6 @@ void main() { await tester.pumpWidget(testWidget); expect(() => testWidget, returnsNormally); - expect(find.byType(Container), findsNWidgets(4)); }, ); diff --git a/test/swipe_refresh_cupertino_test.dart b/test/swipe_refresh_cupertino_test.dart index 680dffb..fa5a412 100644 --- a/test/swipe_refresh_cupertino_test.dart +++ b/test/swipe_refresh_cupertino_test.dart @@ -17,30 +17,37 @@ import 'dart:async'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; +import 'package:mocktail/mocktail.dart'; +import 'package:swipe_refresh/src/swipe_refresh_base.dart'; import 'package:swipe_refresh/swipe_refresh.dart'; import 'test_utils.dart'; void main() { - late StreamController _streamController; + late StreamController streamController; late Stream stream; + late MockOnRefreshFunction onRefreshFunction; + late ScrollPhysics scrollPhysics; setUp(() { - _streamController = StreamController.broadcast(); - stream = _streamController.stream; - }); - - tearDown(() async { - await _streamController.close(); - }); + streamController = StreamController.broadcast(); + stream = streamController.stream; - Future _onRefresh() async { - _streamController.sink.add(SwipeRefreshState.loading); + onRefreshFunction = MockOnRefreshFunction(); + when(() => onRefreshFunction.call()).thenAnswer( + (invocation) async { + return streamController.sink.add(SwipeRefreshState.hidden); + }, + ); - await Future.delayed(const Duration(seconds: 3)); + scrollPhysics = const ScrollPhysics(); + }); - _streamController.sink.add(SwipeRefreshState.hidden); - } + tearDown( + () async { + await streamController.close(); + }, + ); final listColors = [ Colors.blue, @@ -49,13 +56,31 @@ void main() { Colors.amber, ]; + testWidgets( + 'When trying to return a CupertinoSwipeRefresh with no children or ' + 'childrenDelegate passed, must be an assertion error', + (tester) async { + expect( + () { + return makeTestableWidget( + CupertinoSwipeRefresh( + stateStream: stream, + onRefresh: onRefreshFunction, + ), + ); + }, + throwsAssertionError, + ); + }, + ); + testWidgets( 'SwipeRefresh.cupertino widget with children as argument does not break', (tester) async { final cupertinoSwipeRefresh = makeTestableWidget( SwipeRefresh.cupertino( stateStream: stream, - onRefresh: _onRefresh, + onRefresh: onRefreshFunction, children: listColors .map( (e) => Container( @@ -70,24 +95,62 @@ void main() { await tester.pumpWidget(cupertinoSwipeRefresh); expect(() => cupertinoSwipeRefresh, returnsNormally); - - expect(find.byType(Container), findsNWidgets(4)); - expect(find.byType(CupertinoSwipeRefresh), findsOneWidget); + expect(find.byType(Container), findsNWidgets(4)); }, ); testWidgets( - 'When drag down enough, the refresh should start with the correct statuses', + 'When drag down enough, the refresh should start and should called ' + 'onRefreshFunction', (tester) async { - final events = []; + final cupertinoSwipeRefresh = makeTestableWidget( + SwipeRefresh.cupertino( + stateStream: stream, + onRefresh: onRefreshFunction, + children: listColors + .map( + (e) => Container( + color: e, + height: 100, + ), + ) + .toList(), + ), + ); - stream.listen(events.add); + await tester.pumpWidget(cupertinoSwipeRefresh); + await tester.drag( + find.byType(SwipeRefresh), + const Offset(0, 300), + touchSlopY: 0, + ); + await tester.pump(); + + verify(() => onRefreshFunction()).called(1); + }, + ); + + testWidgets( + 'When drag down enough, the refresh should start and end after 3 seconds', + (tester) async { + const key = Key('Test key'); final cupertinoSwipeRefresh = makeTestableWidget( SwipeRefresh.cupertino( stateStream: stream, - onRefresh: _onRefresh, + onRefresh: onRefreshFunction, + indicatorBuilder: ( + context, + refreshState, + pulledExtent, + refreshTriggerPullDistance, + refreshIndicatorExtent, + ) { + return Container( + key: key, + ); + }, children: listColors .map( (e) => Container( @@ -101,21 +164,20 @@ void main() { await tester.pumpWidget(cupertinoSwipeRefresh); - expect(events, isEmpty); - await tester.drag( find.byType(SwipeRefresh), const Offset(0, 300), touchSlopY: 0, ); - await tester.pump(const Duration(seconds: 1)); + await tester.pump(); - expect(events, equals([SwipeRefreshState.loading])); + expect(find.byKey(key), findsOneWidget); await tester.pump(const Duration(seconds: 3)); + await tester.pump(); - expect(events.last, equals(SwipeRefreshState.hidden)); + expect(find.byKey(key), findsNothing); }, ); @@ -129,7 +191,7 @@ void main() { final cupertinoSwipeRefresh = makeTestableWidget( SwipeRefresh.cupertino( stateStream: stream, - onRefresh: _onRefresh, + onRefresh: onRefreshFunction, children: listColors .map( (e) => Container( @@ -142,13 +204,132 @@ void main() { ); await tester.pumpWidget(cupertinoSwipeRefresh); - - expect(events, isEmpty); - await tester.drag(find.byType(SwipeRefresh), const Offset(0.0, 50.0)); await tester.pump(); - expect(events, isEmpty); + verifyNever(() => onRefreshFunction()); + }, + ); + + testWidgets( + 'If initState: SwipeRefreshState.loading passed to the SwipeRefresh.cupertino, ' + 'the currentState of the SwipeRefreshBase should be SwipeRefreshState.loading', + (tester) async { + final cupertinoWidget = SwipeRefresh.cupertino( + stateStream: stream, + onRefresh: onRefreshFunction, + children: listColors + .map( + (e) => Container( + color: e, + height: 100, + ), + ) + .toList(), + initState: SwipeRefreshState.loading, + ); + + final cupertinoSwipeRefresh = makeTestableWidget(cupertinoWidget); + + await tester.pumpWidget(cupertinoSwipeRefresh); + + final SwipeRefreshBaseState state = tester.state( + find.byType(CupertinoSwipeRefresh), + ) as SwipeRefreshBaseState; + + expect(state.currentState, cupertinoWidget.initState); + }, + ); + + testWidgets( + 'if pass the physics to the SwipeRefresh.cupertino, then SwipeRefreshBase ' + 'physics should be the same', + (tester) async { + final events = []; + + stream.listen(events.add); + + final cupertinoWidget = SwipeRefresh.cupertino( + stateStream: stream, + onRefresh: onRefreshFunction, + children: listColors + .map( + (e) => Container( + color: e, + height: 100, + ), + ) + .toList(), + initState: SwipeRefreshState.loading, + physics: scrollPhysics, + ); + + final cupertinoSwipeRefresh = makeTestableWidget(cupertinoWidget); + + await tester.pumpWidget(cupertinoSwipeRefresh); + + final baseWidget = tester.widget( + find.byType(SwipeRefresh), + ) as SwipeRefresh; + + expect(baseWidget.physics, scrollPhysics); + }, + ); + + testWidgets( + 'If padding passed to the SwipeRefresh.cupertino, ' + 'SliverList should be wrapped in SliverPadding', + (tester) async { + final events = []; + + stream.listen(events.add); + + final cupertinoWidgetWithoutPadding = makeTestableWidget( + SwipeRefresh.cupertino( + stateStream: stream, + onRefresh: onRefreshFunction, + children: listColors + .map( + (e) => Container( + color: e, + height: 100, + ), + ) + .toList(), + ), + ); + + final cupertinoWidgetWithPadding = makeTestableWidget( + SwipeRefresh.cupertino( + stateStream: stream, + onRefresh: onRefreshFunction, + children: listColors + .map( + (e) => Container( + color: e, + height: 100, + ), + ) + .toList(), + padding: const EdgeInsets.only(top: 16.0), + ), + ); + + await tester.pumpWidget(cupertinoWidgetWithoutPadding); + + expect(find.byType(SliverList), findsOneWidget); + // Must find one widget create by SliverSafeArea. + expect(find.byType(SliverPadding), findsOneWidget); + + await tester.pumpWidget(cupertinoWidgetWithPadding); + + expect(find.byType(SliverList), findsOneWidget); + // Must find two widgets(create by SliverSafeArea and create by SwipeRefresh.cupertino). + expect(find.byType(SliverPadding), findsNWidgets(2)); }, ); } + +class MockOnRefreshFunction extends Mock { + void call(); +} diff --git a/test/swipe_refresh_material_test.dart b/test/swipe_refresh_material_test.dart index c02d10a..ab81504 100644 --- a/test/swipe_refresh_material_test.dart +++ b/test/swipe_refresh_material_test.dart @@ -15,32 +15,37 @@ import 'dart:async'; import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; import 'package:flutter_test/flutter_test.dart'; +import 'package:mocktail/mocktail.dart'; +import 'package:swipe_refresh/src/swipe_refresh_base.dart'; import 'package:swipe_refresh/swipe_refresh.dart'; import 'test_utils.dart'; void main() { - late StreamController _controller; + late StreamController controller; late Stream stream; + late MockOnRefreshFunction onRefreshFunction; + late TestSliverChildListDelegate sliverChildDelegate; setUp(() { - _controller = StreamController.broadcast(); - stream = _controller.stream; + controller = StreamController.broadcast(); + stream = controller.stream; + sliverChildDelegate = TestSliverChildListDelegate([const Text('Test')]); + + onRefreshFunction = MockOnRefreshFunction(); + when(() => onRefreshFunction.call()).thenAnswer( + (invocation) async { + return controller.sink.add(SwipeRefreshState.hidden); + }, + ); }); tearDown(() async { - await _controller.close(); + await controller.close(); }); - Future _onRefresh() async { - _controller.sink.add(SwipeRefreshState.loading); - - await Future.delayed(const Duration(seconds: 3)); - - _controller.sink.add(SwipeRefreshState.hidden); - } - final listColors = [ Colors.blue, Colors.green, @@ -48,13 +53,31 @@ void main() { Colors.amber, ]; + testWidgets( + 'When trying create MaterialSwipeRefresh without children or ' + 'childrenDelegate should be assertion error', + (tester) async { + expect( + () { + return makeTestableWidget( + MaterialSwipeRefresh( + stateStream: stream, + onRefresh: onRefreshFunction, + ), + ); + }, + throwsAssertionError, + ); + }, + ); + testWidgets( 'SwipeRefresh.material widget with children as argument does not break', (tester) async { final materialSwipeRefresh = makeTestableWidget( SwipeRefresh.material( stateStream: stream, - onRefresh: _onRefresh, + onRefresh: onRefreshFunction, children: listColors .map( (e) => Container( @@ -77,16 +100,44 @@ void main() { ); testWidgets( - 'When drag down enough, the refresh should start with the correct statuses', + 'When drag down enough, the refresh should start and should called ' + 'onRefreshFunction', (tester) async { - final events = []; + final materialSwipeRefresh = makeTestableWidget( + SwipeRefresh.material( + stateStream: stream, + onRefresh: onRefreshFunction, + children: listColors + .map( + (e) => Container( + color: e, + height: 100, + ), + ) + .toList(), + ), + ); - stream.listen(events.add); + await tester.pumpWidget(materialSwipeRefresh); + await tester.drag( + find.byType(SwipeRefresh), + const Offset(0, 300), + touchSlopY: 0, + ); + await tester.pump(); + await tester.pump(const Duration(seconds: 3)); + verify(() => onRefreshFunction()).called(1); + }, + ); + + testWidgets( + 'When drag down enough, the refresh should start and end after 3 seconds', + (tester) async { final materialSwipeRefresh = makeTestableWidget( SwipeRefresh.material( stateStream: stream, - onRefresh: _onRefresh, + onRefresh: onRefreshFunction, children: listColors .map( (e) => Container( @@ -99,34 +150,30 @@ void main() { ); await tester.pumpWidget(materialSwipeRefresh); - await tester.drag( find.byType(SwipeRefresh), const Offset(0, 300), touchSlopY: 0, ); await tester.pump(); - await tester.pump(const Duration(seconds: 1)); - expect(events, equals([SwipeRefreshState.loading])); + expect(find.byType(RefreshProgressIndicator), findsOneWidget); - await tester.pump(const Duration(seconds: 3)); + await tester.pump(); + await tester.pump(const Duration(seconds: 1)); + await tester.pump(const Duration(seconds: 2)); - expect(events.last, equals(SwipeRefreshState.hidden)); + expect(find.byType(RefreshProgressIndicator), findsNothing); }, ); testWidgets( 'When drag down is not enough to trigger an update the update should not be', (tester) async { - final events = []; - - stream.listen(events.add); - final materialSwipeRefresh = makeTestableWidget( SwipeRefresh.material( stateStream: stream, - onRefresh: _onRefresh, + onRefresh: onRefreshFunction, children: listColors .map( (e) => Container( @@ -138,18 +185,71 @@ void main() { ), ); await tester.pumpWidget(materialSwipeRefresh); - - expect(events, isEmpty); - await tester.drag( find.byType(SwipeRefresh), const Offset(0, 50), touchSlopY: 0, ); - await tester.pump(); - expect(events, isEmpty); + verifyNever(() => onRefreshFunction()); + }, + ); + + testWidgets( + 'If initState: SwipeRefreshState.loading passed to the SwipeRefresh.material, ' + 'currentState should be SwipeRefreshState.loading', + (tester) async { + final materialWidget = SwipeRefresh.material( + stateStream: stream, + onRefresh: onRefreshFunction, + children: listColors + .map( + (e) => Container( + color: e, + height: 100, + ), + ) + .toList(), + initState: SwipeRefreshState.loading, + ); + final materialSwipeRefresh = makeTestableWidget(materialWidget); + await tester.pumpWidget(materialSwipeRefresh); + final SwipeRefreshBaseState state = tester.state( + find.byType(MaterialSwipeRefresh), + ) as SwipeRefreshBaseState; + + expect(state.currentState, materialWidget.initState); }, ); + + testWidgets( + 'SwipeRefresh.material widget with childrenDelegate as argument does not break', + (tester) async { + final scrollController = ScrollController(); + + final materialWidget = MaterialSwipeRefresh( + stateStream: stream, + onRefresh: onRefreshFunction, + childrenDelegate: sliverChildDelegate, + scrollController: scrollController, + ); + + final materialSwipeRefresh = makeTestableWidget(materialWidget); + await tester.pumpWidget(materialSwipeRefresh); + + expect( + find.text('Test'), + findsOneWidget, + ); + }, + ); +} + +class MockOnRefreshFunction extends Mock { + void call(); +} + +class TestSliverChildListDelegate extends SliverChildListDelegate { + TestSliverChildListDelegate(List children) : super(children); } From f423dab42a18fb960432928bc3018e4bb5472825 Mon Sep 17 00:00:00 2001 From: Kristina Zotyeva Date: Thu, 11 Nov 2021 15:36:17 +0300 Subject: [PATCH 26/69] Fix installation section in README.md. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 367ccba..010ecbd 100644 --- a/README.md +++ b/README.md @@ -31,10 +31,10 @@ Add `swipe_refresh` to your `pubspec.yaml` file: ```yaml dependencies: - swipe_refresh: ^1.0.1 + swipe_refresh: $currentVersion$ ``` -You can use both `stable` and `dev` versions of the package listed above in the badges bar. +

At this moment, the current version of swipe_refresh is swipe_refresh version.

## Changelog From d305ce93335564e7f5a8a039102473cee935d911 Mon Sep 17 00:00:00 2001 From: Kristina Zotyeva Date: Wed, 17 Nov 2021 11:38:32 +0300 Subject: [PATCH 27/69] Fix test section in workflow.yaml, add gitignore. --- .gitignore | 21 ++++++++++----------- example/.gitignore | 22 +++++++++++++--------- 2 files changed, 23 insertions(+), 20 deletions(-) diff --git a/.gitignore b/.gitignore index dd440d4..85c4ec3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1,6 @@ -.idea - -build/ -ios/.generated/ -ios/Flutter/Generated.xcconfig -ios/Runner/GeneratedPluginRegistrant.* - # Miscellaneous *.class +*.lock *.log *.pyc *.swp @@ -23,17 +17,20 @@ ios/Runner/GeneratedPluginRegistrant.* .idea/ # Visual Studio Code related +.classpath +.project +.settings/ .vscode/ # Flutter/Dart/Pub related **/doc/api/ .dart_tool/ .flutter-plugins +.flutter-plugins-dependencies .packages .pub-cache/ .pub/ -/build/ -*.lock +build/ # Android related **/android/**/gradle-wrapper.jar @@ -71,9 +68,11 @@ ios/Runner/GeneratedPluginRegistrant.* **/ios/ServiceDefinitions.json **/ios/Runner/GeneratedPluginRegistrant.* +# Coverage +coverage/ + # Exceptions to above rules. !**/ios/**/default.mode1v3 !**/ios/**/default.mode2v3 !**/ios/**/default.pbxuser -!**/ios/**/default.perspectivev3 -!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages +!**/ios/**/default.perspectivev3 \ No newline at end of file diff --git a/example/.gitignore b/example/.gitignore index 10c16ab..85c4ec3 100644 --- a/example/.gitignore +++ b/example/.gitignore @@ -1,5 +1,6 @@ # Miscellaneous *.class +*.lock *.log *.pyc *.swp @@ -15,19 +16,21 @@ *.iws .idea/ -# The .vscode folder contains launch configuration and tasks you configure in -# VS Code which you may wish to be included in version control, so this line -# is commented out by default. -#.vscode/ +# Visual Studio Code related +.classpath +.project +.settings/ +.vscode/ # Flutter/Dart/Pub related **/doc/api/ .dart_tool/ .flutter-plugins +.flutter-plugins-dependencies .packages .pub-cache/ .pub/ -/build/ +build/ # Android related **/android/**/gradle-wrapper.jar @@ -58,17 +61,18 @@ **/ios/Flutter/App.framework **/ios/Flutter/Flutter.framework **/ios/Flutter/Generated.xcconfig +**/ios/Flutter/flutter_export_environment.sh **/ios/Flutter/app.flx **/ios/Flutter/app.zip **/ios/Flutter/flutter_assets/ -**/ios/Flutter/flutter_export_environment.sh **/ios/ServiceDefinitions.json **/ios/Runner/GeneratedPluginRegistrant.* -**/ios/Podfile + +# Coverage +coverage/ # Exceptions to above rules. !**/ios/**/default.mode1v3 !**/ios/**/default.mode2v3 !**/ios/**/default.pbxuser -!**/ios/**/default.perspectivev3 -!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages +!**/ios/**/default.perspectivev3 \ No newline at end of file From 5cd9115bb560f88bb4f44691da05119bb864682c Mon Sep 17 00:00:00 2001 From: Kristina Zotyeva Date: Wed, 17 Nov 2021 11:39:00 +0300 Subject: [PATCH 28/69] Fix test section in workflow.yaml. --- .github/workflows/workflow.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index a97dc12..0407903 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -74,8 +74,13 @@ jobs: - name: Install dependencies run: flutter pub get - - name: Run tests - run: flutter test + - name: Run tests + env: + CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}} + if: success() + run: | + flutter test --coverage + bash <(curl -s https://codecov.io/bash) -f coverage/lcov.info build_android_example: needs: analysis From 8c0bbdd98e16992cd1cdb93de8dab03a4e4e59f3 Mon Sep 17 00:00:00 2001 From: Kristina Zotyeva Date: Wed, 17 Nov 2021 11:40:14 +0300 Subject: [PATCH 29/69] Fix test section in workflow.yaml. --- .github/workflows/workflow.yaml | 36 ++++++++++++++++----------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index 0407903..40c90c3 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -13,10 +13,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout + - name: Checkout uses: actions/checkout@v2 - - name: Install Flutter + - name: Install Flutter uses: subosito/flutter-action@v1 with: channel: "stable" @@ -40,20 +40,20 @@ jobs: - name: Check Installation run: echo | grep -q Installation README.md ; echo $? - - name: Install dependencies + - name: Install dependencies run: flutter pub get - - name: Run dependency validator + - name: Run dependency validator run: | dart pub global activate dependency_validator dart pub global run dependency_validator:dependency_validator - - name: Run analyzer + - name: Run analyzer run: flutter analyze --fatal-warnings --fatal-infos . - - name: Run formatter + - name: Run formatter run: flutter format --set-exit-if-changed . - - name: Run package analyzer + - name: Run package analyzer uses: axel-op/dart-package-analyzer@v3 with: githubToken: ${{ secrets.GITHUB_TOKEN }} @@ -65,27 +65,27 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - - name: Install Flutter + + - name: Install Flutter uses: subosito/flutter-action@v1 with: channel: "stable" - - name: Install dependencies + - name: Install dependencies run: flutter pub get - name: Run tests - env: - CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}} - if: success() - run: | - flutter test --coverage - bash <(curl -s https://codecov.io/bash) -f coverage/lcov.info - + env: + CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}} + if: success() + run: | + flutter test --coverage + bash <(curl -s https://codecov.io/bash) -f coverage/lcov.info + build_android_example: needs: analysis runs-on: ubuntu-latest - + steps: # Setup Java environment in order to build the Android app. - uses: actions/checkout@v2 From 50fcddf358ba78f5ba56a7f6e03249d482e577ba Mon Sep 17 00:00:00 2001 From: Kristina Zotyeva Date: Wed, 17 Nov 2021 15:44:29 +0300 Subject: [PATCH 30/69] Fix README.md. Add example in README.md. --- README.md | 95 +++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 86 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 0e3c20a..7c82fd5 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Swipe Refresh -[![Build Status](https://shields.io/github/workflow/status/surfstudio/SurfGear/build?logo=github&logoColor=white)](https://github.com/surfstudio/SurfGear/tree/main/packages/swipe_refresh) -[![Coverage Status](https://img.shields.io/codecov/c/github/surfstudio/SurfGear?flag=swipe_refresh&logo=codecov&logoColor=white)](https://codecov.io/gh/surfstudio/SurfGear) +[![Build Status](https://shields.io/github/workflow/status/surfstudio/flutter-swipe-refresh/build?logo=github&logoColor=white)](https://github.com/surfstudio/flutter-swipe-refresh) +[![Coverage Status](https://img.shields.io/codecov/c/github/surfstudio/flutter-swipe-refresh?logo=codecov&logoColor=white)](https://app.codecov.io/gh/surfstudio/flutter-swipe-refresh) [![Pub Version](https://img.shields.io/pub/v/swipe_refresh?logo=dart&logoColor=white)](https://pub.dev/packages/swipe_refresh) [![Pub Likes](https://badgen.net/pub/likes/swipe_refresh)](https://pub.dev/packages/swipe_refresh) [![Pub popularity](https://badgen.net/pub/popularity/swipe_refresh)](https://pub.dev/packages/swipe_refresh/score) @@ -16,8 +16,6 @@ Widget for refresh by swipe. ![](media/material.gif) ![](media/cupertino.gif) -## Example - Main classes: 1. [Refresh state](lib/src/swipe_refresh_state.dart) @@ -25,16 +23,95 @@ Main classes: 3. [Widget for indicate swipe refresh Material style](lib/src/material_swipe_refresh.dart) 4. [Widget for indicate swipe refresh Cupertino style](lib/src/cupertino_swipe_refresh.dart) +## Example + +### Material + +Refresh indicator widget with Material Design style. + +```dart +SwipeRefresh.material( +stateStream: Stream(), +onRefresh: _refresh, +padding: const EdgeInsets.symmetric(vertical: 10), +children: [ ... ], +); + +Future _refresh() async { + // When all needed is done change state. + _controller.sink.add(SwipeRefreshState.hidden); +} +``` + +### Cupertino + +Refresh indicator widget with Cupertino Design style. + +```dart +SwipeRefresh.cupertino( +stateStream: Stream(), +onRefresh: _refresh, +padding: const EdgeInsets.symmetric(vertical: 10), +children: [ ... ], +); + +Future _refresh() async { + // When all needed is done change state. + _controller.sink.add(SwipeRefreshState.hidden); +} +``` + +### Adaptive + +Refresh indicator widget with adaptive to platform style. + +```dart +SwipeRefresh.adaptive( +stateStream: Stream(), +onRefresh: _refresh, +padding: const EdgeInsets.symmetric(vertical: 10), +children: [ ... ], +); + +Future _refresh() async { + // When all needed is done change state. + _controller.sink.add(SwipeRefreshState.hidden); +} +``` + +### Builder + +Refresh indicator widget with adaptive to platform style, with SliverChildBuilderDelegate in childDelegate. + +```dart +SwipeRefresh.builder( +stateStream: Stream(), +onRefresh: _refresh, +padding: const EdgeInsets.symmetric(vertical: 10), +itemCount: Colors.primaries.length, +itemBuilder: (context, index) { +return Container( + ... +); +}, +), + +Future _refresh() async { + // When all needed is done change state. + _controller.sink.add(SwipeRefreshState.hidden); +} +``` + ## Installation Add `swipe_refresh` to your `pubspec.yaml` file: ```yaml dependencies: - swipe_refresh: ^1.0.0 + swipe_refresh: $currentVersion$ ``` -You can use both `stable` and `dev` versions of the package listed above in the badges bar. +

At this moment, the current version of swipe_refresh is swipe_refresh version.

## Changelog @@ -42,11 +119,11 @@ All notable changes to this project will be documented in [this file](./CHANGELO ## Issues -For issues, file directly in the Issues section. +For issues, file directly in the [Issues](https://github.com/surfstudio/flutter-swipe-refresh/issues) section. ## Contribute -If you would like to contribute to the package (e.g. by improving the documentation, solving a bug or adding a cool new feature), please review our [contribution guide](../../CONTRIBUTING.md) first and send us your pull request. +If you would like to contribute to the package (e.g. by improving the documentation, solving a bug or adding a cool new feature), please review our [contribution guide](./CONTRIBUTING.md) first and send us your pull request. Your PRs are always welcome. @@ -58,4 +135,4 @@ Please feel free to ask any questions about this package. Join our community cha ## License -[Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0) +[Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0) \ No newline at end of file From dd948c23473ddcc3f8fa79a1db0932ffb2d3a5e8 Mon Sep 17 00:00:00 2001 From: Kristina Zotyeva Date: Wed, 17 Nov 2021 17:10:54 +0300 Subject: [PATCH 31/69] Fix README.md. Add example in README.md. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7c82fd5..d1787a0 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ Future _refresh() async { ### Builder -Refresh indicator widget with adaptive to platform style, with SliverChildBuilderDelegate in childDelegate. +Refresh indicator widget with adaptive to platform style, and with SliverChildBuilderDelegate in childDelegate(so as not to create more child elements than are visible through Viewport). ```dart SwipeRefresh.builder( @@ -92,8 +92,8 @@ itemCount: Colors.primaries.length, itemBuilder: (context, index) { return Container( ... -); -}, + ); + }, ), Future _refresh() async { From 312c031106617da75b0afb4977f9beee564c243f Mon Sep 17 00:00:00 2001 From: Kristina Zotyeva Date: Wed, 17 Nov 2021 18:49:17 +0300 Subject: [PATCH 32/69] Improved class documentation. --- lib/src/cupertino_swipe_refresh.dart | 1 + lib/src/swipe_refresh.dart | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/src/cupertino_swipe_refresh.dart b/lib/src/cupertino_swipe_refresh.dart index fa2ae65..a8d80e3 100644 --- a/lib/src/cupertino_swipe_refresh.dart +++ b/lib/src/cupertino_swipe_refresh.dart @@ -19,6 +19,7 @@ import 'package:swipe_refresh/src/swipe_refresh_base.dart'; import 'package:swipe_refresh/src/swipe_refresh_state.dart'; /// Refresh indicator widget with Cupertino style. +/// [children] - class CupertinoSwipeRefresh extends SwipeRefreshBase { static const double defaultRefreshTriggerPullDistance = 100.0; static const double defaultRefreshIndicatorExtent = 60.0; diff --git a/lib/src/swipe_refresh.dart b/lib/src/swipe_refresh.dart index 5979a0a..7dbb7ce 100644 --- a/lib/src/swipe_refresh.dart +++ b/lib/src/swipe_refresh.dart @@ -170,9 +170,9 @@ class SwipeRefresh extends StatelessWidget { physics: physics, ); - /// Create SwipeRefresh as common link - /// remove some conflicts between ScrollControllers when ListView added into - /// SwipeRefresh (remove need to add extra ListView). + /// Create refresh indicator with adaptive to platform style. + /// Uses SliverChildBuilderDelegate in childrenDelegate to avoid + /// creating more children than are visible through the [Viewport]. factory SwipeRefresh.builder({ required IndexedWidgetBuilder itemBuilder, required int itemCount, From e358f2b840960f7b5c940dad2916ce0b5c1bedf6 Mon Sep 17 00:00:00 2001 From: Kristina Zotyeva Date: Thu, 18 Nov 2021 10:58:08 +0300 Subject: [PATCH 33/69] Improved class documentation. --- lib/src/cupertino_swipe_refresh.dart | 24 +++++++++++++++++++++++- lib/src/material_swipe_refresh.dart | 24 ++++++++++++++++++++++++ lib/src/swipe_refresh.dart | 5 +++-- 3 files changed, 50 insertions(+), 3 deletions(-) diff --git a/lib/src/cupertino_swipe_refresh.dart b/lib/src/cupertino_swipe_refresh.dart index a8d80e3..a26d376 100644 --- a/lib/src/cupertino_swipe_refresh.dart +++ b/lib/src/cupertino_swipe_refresh.dart @@ -19,7 +19,29 @@ import 'package:swipe_refresh/src/swipe_refresh_base.dart'; import 'package:swipe_refresh/src/swipe_refresh_state.dart'; /// Refresh indicator widget with Cupertino style. -/// [children] - +/// [stateStream] - indicator state([SwipeRefreshState.loading] or +/// [SwipeRefreshState.hidden]). +/// [onRefresh] - callback invoked when pulled by [refreshTriggerPullDistance]. +/// [children] - list of any widgets. +/// [childrenDelegate] - pass the inheritor to SliverChildDelegate to avoid +/// creating more children than are visible through the [Viewport]. +/// [initState] - initialization state([SwipeRefreshState.loading] or +/// [SwipeRefreshState.hidden]). +/// [padding] - passed to add [SliverPadding]. +/// [scrollController] - ScrollController for [CustomScrollView]. +/// [shrinkWrap] - Whether the extent of the scroll view should be determined +/// by the contents being viewed(default - false). +/// [refreshTriggerPullDistance] - The amount of overscroll the scrollable +/// must be dragged to trigger a reload(default - [defaultRefreshTriggerPullDistance]). +/// [refreshIndicatorExtent] - amount of space the refresh indicator +/// sliver will keep holding while [onRefresh] is still running. +/// [indicatorBuilder] - builder that's called as this sliver's size changes, +/// and as the state changes(default - [CupertinoSliverRefreshControl.buildRefreshIndicator]). +/// [keyboardDismissBehavior] - [ScrollViewKeyboardDismissBehavior] +/// the defines how this [ScrollView] will dismiss the keyboard automatically. +/// (if == null it will be [ScrollViewKeyboardDismissBehavior.onDrag]). +/// [physics] - defines the physics of the scroll(if == null it will be +/// [AlwaysScrollableScrollPhysics]). class CupertinoSwipeRefresh extends SwipeRefreshBase { static const double defaultRefreshTriggerPullDistance = 100.0; static const double defaultRefreshIndicatorExtent = 60.0; diff --git a/lib/src/material_swipe_refresh.dart b/lib/src/material_swipe_refresh.dart index e75f869..48add0a 100644 --- a/lib/src/material_swipe_refresh.dart +++ b/lib/src/material_swipe_refresh.dart @@ -20,6 +20,30 @@ import 'package:swipe_refresh/src/swipe_refresh_base.dart'; import 'package:swipe_refresh/src/swipe_refresh_state.dart'; /// Refresh indicator widget with Material Design style. +/// [stateStream] - indicator state([SwipeRefreshState.loading] or +/// [SwipeRefreshState.hidden]). +/// [onRefresh] - function that's called when the user has dragged the +/// refresh indicator far enough to demonstrate that they want the app to refresh. +/// [indicatorColor] - progress indicator's foreground color +/// (default - [ColorScheme.primary]). +/// [children] - list of any widgets. +/// [childrenDelegate] - pass the inheritor to SliverChildDelegate +/// to avoid creating more children than are visible through the [Viewport]. +/// [initState] - initialization state([SwipeRefreshState.loading] or +/// [SwipeRefreshState.hidden]). +/// [backgroundColor] - progress indicator's background color +/// (default - Color(0xFFFFFFFF)). +/// [scrollController] - [ScrollController] for [ListView]. +/// [padding] - corresponds to having a [SliverPadding] in the +/// [CustomScrollView.slivers] property instead of the list itself, +/// and having the [SliverList] instead be a child of the [SliverPadding]. +/// [shrinkWrap] - Whether the extent of the scroll view should be determined +/// by the contents being viewed(default - false). +/// [keyboardDismissBehavior] - [ScrollViewKeyboardDismissBehavior] +/// the defines how this [ScrollView] will dismiss the keyboard automatically. +/// (if == null it will be [ScrollViewKeyboardDismissBehavior.manual]). +/// [physics] - defines the physics of the scroll(if == null it will be +/// [AlwaysScrollableScrollPhysics]). class MaterialSwipeRefresh extends SwipeRefreshBase { final Color? indicatorColor; final Color backgroundColor; diff --git a/lib/src/swipe_refresh.dart b/lib/src/swipe_refresh.dart index 7dbb7ce..66d5e6b 100644 --- a/lib/src/swipe_refresh.dart +++ b/lib/src/swipe_refresh.dart @@ -23,10 +23,11 @@ import 'package:swipe_refresh/src/swipe_refresh_style.dart'; /// Refresh indicator widget. /// /// Params for Material Design style: -/// [indicatorColor], [backgroundColor]. +/// [indicatorColor], [backgroundColor](more details [MaterialSwipeRefresh]). /// /// Params for Cupertino style: -/// [refreshTriggerPullDistance], [refreshIndicatorExtent], [indicatorBuilder]. +/// [refreshTriggerPullDistance], [refreshIndicatorExtent], [indicatorBuilder] +/// (more details [CupertinoSwipeRefresh]). class SwipeRefresh extends StatelessWidget { final List? children; final VoidCallback onRefresh; From ca6fe063e409e9080dae55a087c4d1fc5323609f Mon Sep 17 00:00:00 2001 From: Kristina Zotyeva Date: Thu, 18 Nov 2021 11:07:43 +0300 Subject: [PATCH 34/69] Improved .gitignore. --- .gitignore | 2 +- example/.gitignore | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 85c4ec3..761d64c 100644 --- a/.gitignore +++ b/.gitignore @@ -75,4 +75,4 @@ coverage/ !**/ios/**/default.mode1v3 !**/ios/**/default.mode2v3 !**/ios/**/default.pbxuser -!**/ios/**/default.perspectivev3 \ No newline at end of file +!**/ios/**/default.perspectivev3 diff --git a/example/.gitignore b/example/.gitignore index 85c4ec3..761d64c 100644 --- a/example/.gitignore +++ b/example/.gitignore @@ -75,4 +75,4 @@ coverage/ !**/ios/**/default.mode1v3 !**/ios/**/default.mode2v3 !**/ios/**/default.pbxuser -!**/ios/**/default.perspectivev3 \ No newline at end of file +!**/ios/**/default.perspectivev3 From 7ce9c2e8aeeb142f1836994c0b14fef271a990d4 Mon Sep 17 00:00:00 2001 From: Kristina Zotyeva Date: Tue, 30 Nov 2021 15:45:34 +0300 Subject: [PATCH 35/69] Change GIF image. Added image with packages name. --- README.md | 6 ++++-- media/cupertino.gif | Bin 71596 -> 0 bytes media/material.gif | Bin 56882 -> 0 bytes 3 files changed, 4 insertions(+), 2 deletions(-) delete mode 100644 media/cupertino.gif delete mode 100644 media/material.gif diff --git a/README.md b/README.md index d1787a0..6fa9f70 100644 --- a/README.md +++ b/README.md @@ -9,12 +9,14 @@ This package is part of the [SurfGear](https://github.com/surfstudio/SurfGear) toolkit made by [Surf](https://surf.ru). +[![Swipe Refresh](https://i.ibb.co/wCbKCy6/Swipe-Refresh.png)](https://github.com/surfstudio/SurfGear) + ## Description Widget for refresh by swipe. -![](media/material.gif) -![](media/cupertino.gif) +![](https://i.ibb.co/7Kmy91f/material.gif) +![](https://i.ibb.co/smPxRp7/cupertino.gif) Main classes: diff --git a/media/cupertino.gif b/media/cupertino.gif deleted file mode 100644 index 66199672b0eb550fcc25300e5cda476397ecb237..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 71596 zcmb@uXH-+|_V&BdAOV610s%qkA|ghqf@0_q0rMaPL^>7(6f6iLUk_{`#$1T0G(y+2Jzp|2ENz1RK(JPM(E04cWJ4M`pH^u|t2}P$G+I85MyDO+(~jsz4u(e#`A1~KBXa&xrQuQKaZ5j<%fzg6}^KuF_-@h(XKAMdq=h96|4ZkEhX|7-I~lI=U`mItr{WT z%bCY;I{=lB`qnkXznr+pa)Q;Ry3D3xlyyULuIO`IlUBs~VOf;)bph#ozFy~B!66Se zq|~PpK3S^y7IODJJgTjJ5^(oH_ku_7lkTt=W@M-k)Q^1L;CXnpYMW_DI>}!5_HcG!o1$}BGT0uXxp0aVj z&-eUX_=b24wmjf~rY$dF7 zo_q6W6vl{7+|TV|DtHjr$pe#8g^q@}NmoA#2}v*PI_-ekdNo?s(f0ju!N8wWwh`@T z5^sv$`qOpm`s;fna5^-b`@0nJuhC3;p^qsY6{Sq3WVaH+!XQrU0|oz3s;pY@RJfH->~U1L&mU-Cz#LE7{E52w?cI{ZE- zH%P`Kb_ZBGSx&;twGP~2T-*2V26o9ws0#}7YUYFcJ)LWBx;o;a9h$(bmWpa-r)|-y z<_oNo&xmZ!>uJ}8^Q>&(t0CEEaCPSEytY@*URL)|ujn`_Mdmc^8F>|hPE|EI5QgE& zM38H$eXgwdz1lT+XsMN^x_ld(x($;c(8dw$tylxM28G*B*IAMZz`0Sl3rq#hw55ajzUn+nU50wQc3^vJmb5uI8v6Tnw~fif^~^4eC3=7a$B z%mDx=E&2L*EOV&8?XbcHe| zl8w>WzuM<4E^4k_RjVJ*@{oX*)zNt*F`h8?HCt}*yq=48{*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UXm+Nn|LF++@$oG3sTEmGe-wMsRSwt^IeU032NJ9~c}u zt`v+RUBP^qGa6|~L`fl1?0KqJ+W~j2tQS3K#XE^o$}mO`3gXFNTBUIkUF6%bEl77_G+&ab%u1&N%NR z^!jNDXn!C`SazkGv6b3J~i1@LsFhQqTrjt25H@*^XW`2_g4Eb$MNfd9G09Q3F1 f_@7JVW`FwpUvL}##m9gCEq|`2|M_$9x6Az>DU;$p diff --git a/media/material.gif b/media/material.gif deleted file mode 100644 index 8c6d0182f3e304bfdae394914463f77d2de602ff..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 56882 zcmdRW2UL^Ww(d_L385FIgET2pMCna}D1<74AktB!i4-YPHS~_5NH3vCF9AdEy+h~` zQL2c5NR=X*$KLy#efAyaym#+=sZ3;NZ>`4@S+F^06+i+ z2wnieYk)ui2*kN8K{y&99M2^Ifhs|q&%u@;umnc{a0Cn-c>zaW14jhlh%j(;JRc>F zjs!=Pfg`HK5k+vsmN=fz#FseY365t5j%Ot(06+l-C|&@?Yk)!kD8#ueK{*QwJ6t)C~C7|#nC_DjmW`H{X;TZu709e2P%L`z64X_9Ri#V4hSVse_V+j^z zfJL240v2n4#g<^P1T4M;izi^u46tV<*fRni0PuhTo)^IL8sHHC9&s*9@Qwy}#}Yis z0FNrcV-4`wb4kGCOYnFC{;ULlMmPh2Gr-`C7dYcJI70wuh;vzT=4f!{SaOCkI75}3 zVGYi(=aO)SFFC^#&dy5C&Io@%&qW~DxqVMxMOpXubx|>5qVsRLPDn_I0RkZW+l=3~ z34juiKwwaCNN89PIRm4-g1)_-y`O(#!s|r;q|}tO%nWX(>r5XVWLPUB(@}_5)lB0HA|ZdKfv_KJ3!~xDaQ6tX z5($JV?FQU>JRD=*@*?0&hMJ7!ioT8!so1#g+kokZ=IJLQnZs$)*F@|F-WHC%RCq@A z<{edhs^H$1V2^ZVL~NeJM9SR(aU|>t*4k`p(8J2G(*Nuyn`UiUG1{cVv)p}?mzj-+ z@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Subject: [PATCH 36/69] Remove from tracking coverage folder. --- coverage/html/amber.png | Bin 141 -> 0 bytes coverage/html/emerald.png | Bin 141 -> 0 bytes coverage/html/gcov.css | 519 ------------------ coverage/html/glass.png | Bin 167 -> 0 bytes coverage/html/index-sort-f.html | 103 ---- coverage/html/index-sort-l.html | 103 ---- coverage/html/index.html | 103 ---- coverage/html/ruby.png | Bin 141 -> 0 bytes coverage/html/snow.png | Bin 141 -> 0 bytes ...ertino_swipe_refresh.dart.func-sort-c.html | 72 --- .../cupertino_swipe_refresh.dart.func.html | 72 --- .../cupertino_swipe_refresh.dart.gcov.html | 236 -------- coverage/html/src/index-sort-f.html | 143 ----- coverage/html/src/index-sort-l.html | 143 ----- coverage/html/src/index.html | 143 ----- ...terial_swipe_refresh.dart.func-sort-c.html | 72 --- .../src/material_swipe_refresh.dart.func.html | 72 --- .../src/material_swipe_refresh.dart.gcov.html | 180 ------ .../src/swipe_refresh.dart.func-sort-c.html | 72 --- .../html/src/swipe_refresh.dart.func.html | 72 --- .../html/src/swipe_refresh.dart.gcov.html | 380 ------------- .../swipe_refresh_base.dart.func-sort-c.html | 72 --- .../src/swipe_refresh_base.dart.func.html | 72 --- .../src/swipe_refresh_base.dart.gcov.html | 198 ------- .../swipe_refresh_state.dart.func-sort-c.html | 72 --- .../src/swipe_refresh_state.dart.func.html | 72 --- .../src/swipe_refresh_state.dart.gcov.html | 98 ---- .../swipe_refresh_style.dart.func-sort-c.html | 72 --- .../src/swipe_refresh_style.dart.func.html | 72 --- .../src/swipe_refresh_style.dart.gcov.html | 104 ---- coverage/html/updown.png | Bin 117 -> 0 bytes coverage/html/utills/index-sort-f.html | 93 ---- coverage/html/utills/index-sort-l.html | 93 ---- coverage/html/utills/index.html | 93 ---- .../platform_wrapper.dart.func-sort-c.html | 72 --- .../utills/platform_wrapper.dart.func.html | 72 --- .../utills/platform_wrapper.dart.gcov.html | 98 ---- coverage/lcov.info | 206 ------- 38 files changed, 4044 deletions(-) delete mode 100644 coverage/html/amber.png delete mode 100644 coverage/html/emerald.png delete mode 100644 coverage/html/gcov.css delete mode 100644 coverage/html/glass.png delete mode 100644 coverage/html/index-sort-f.html delete mode 100644 coverage/html/index-sort-l.html delete mode 100644 coverage/html/index.html delete mode 100644 coverage/html/ruby.png delete mode 100644 coverage/html/snow.png delete mode 100644 coverage/html/src/cupertino_swipe_refresh.dart.func-sort-c.html delete mode 100644 coverage/html/src/cupertino_swipe_refresh.dart.func.html delete mode 100644 coverage/html/src/cupertino_swipe_refresh.dart.gcov.html delete mode 100644 coverage/html/src/index-sort-f.html delete mode 100644 coverage/html/src/index-sort-l.html delete mode 100644 coverage/html/src/index.html delete mode 100644 coverage/html/src/material_swipe_refresh.dart.func-sort-c.html delete mode 100644 coverage/html/src/material_swipe_refresh.dart.func.html delete mode 100644 coverage/html/src/material_swipe_refresh.dart.gcov.html delete mode 100644 coverage/html/src/swipe_refresh.dart.func-sort-c.html delete mode 100644 coverage/html/src/swipe_refresh.dart.func.html delete mode 100644 coverage/html/src/swipe_refresh.dart.gcov.html delete mode 100644 coverage/html/src/swipe_refresh_base.dart.func-sort-c.html delete mode 100644 coverage/html/src/swipe_refresh_base.dart.func.html delete mode 100644 coverage/html/src/swipe_refresh_base.dart.gcov.html delete mode 100644 coverage/html/src/swipe_refresh_state.dart.func-sort-c.html delete mode 100644 coverage/html/src/swipe_refresh_state.dart.func.html delete mode 100644 coverage/html/src/swipe_refresh_state.dart.gcov.html delete mode 100644 coverage/html/src/swipe_refresh_style.dart.func-sort-c.html delete mode 100644 coverage/html/src/swipe_refresh_style.dart.func.html delete mode 100644 coverage/html/src/swipe_refresh_style.dart.gcov.html delete mode 100644 coverage/html/updown.png delete mode 100644 coverage/html/utills/index-sort-f.html delete mode 100644 coverage/html/utills/index-sort-l.html delete mode 100644 coverage/html/utills/index.html delete mode 100644 coverage/html/utills/platform_wrapper.dart.func-sort-c.html delete mode 100644 coverage/html/utills/platform_wrapper.dart.func.html delete mode 100644 coverage/html/utills/platform_wrapper.dart.gcov.html delete mode 100644 coverage/lcov.info diff --git a/coverage/html/amber.png b/coverage/html/amber.png deleted file mode 100644 index 2cab170d8359081983a4e343848dfe06bc490f12..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 141 zcmeAS@N?(olHy`uVBq!ia0vp^j3CU&3?x-=hn)ga>?NMQuI!iC1^G2tW}LqE04T&+ z;1OBOz`!j8!i<;h*8KqrvZOouIx;Y9?C1WI$O`1M1^9%x{(levWG?NMQuI!iC1^Jb!lvI6;R0X`wF(yt=9xVZRt1vCRixIA4P dLn>}1Cji+@42)0J?}79&c)I$ztaD0e0sy@GAL0N2 diff --git a/coverage/html/gcov.css b/coverage/html/gcov.css deleted file mode 100644 index bfd0a83..0000000 --- a/coverage/html/gcov.css +++ /dev/null @@ -1,519 +0,0 @@ -/* All views: initial background and text color */ -body -{ - color: #000000; - background-color: #FFFFFF; -} - -/* All views: standard link format*/ -a:link -{ - color: #284FA8; - text-decoration: underline; -} - -/* All views: standard link - visited format */ -a:visited -{ - color: #00CB40; - text-decoration: underline; -} - -/* All views: standard link - activated format */ -a:active -{ - color: #FF0040; - text-decoration: underline; -} - -/* All views: main title format */ -td.title -{ - text-align: center; - padding-bottom: 10px; - font-family: sans-serif; - font-size: 20pt; - font-style: italic; - font-weight: bold; -} - -/* All views: header item format */ -td.headerItem -{ - text-align: right; - padding-right: 6px; - font-family: sans-serif; - font-weight: bold; - vertical-align: top; - white-space: nowrap; -} - -/* All views: header item value format */ -td.headerValue -{ - text-align: left; - color: #284FA8; - font-family: sans-serif; - font-weight: bold; - white-space: nowrap; -} - -/* All views: header item coverage table heading */ -td.headerCovTableHead -{ - text-align: center; - padding-right: 6px; - padding-left: 6px; - padding-bottom: 0px; - font-family: sans-serif; - font-size: 80%; - white-space: nowrap; -} - -/* All views: header item coverage table entry */ -td.headerCovTableEntry -{ - text-align: right; - color: #284FA8; - font-family: sans-serif; - font-weight: bold; - white-space: nowrap; - padding-left: 12px; - padding-right: 4px; - background-color: #DAE7FE; -} - -/* All views: header item coverage table entry for high coverage rate */ -td.headerCovTableEntryHi -{ - text-align: right; - color: #000000; - font-family: sans-serif; - font-weight: bold; - white-space: nowrap; - padding-left: 12px; - padding-right: 4px; - background-color: #A7FC9D; -} - -/* All views: header item coverage table entry for medium coverage rate */ -td.headerCovTableEntryMed -{ - text-align: right; - color: #000000; - font-family: sans-serif; - font-weight: bold; - white-space: nowrap; - padding-left: 12px; - padding-right: 4px; - background-color: #FFEA20; -} - -/* All views: header item coverage table entry for ow coverage rate */ -td.headerCovTableEntryLo -{ - text-align: right; - color: #000000; - font-family: sans-serif; - font-weight: bold; - white-space: nowrap; - padding-left: 12px; - padding-right: 4px; - background-color: #FF0000; -} - -/* All views: header legend value for legend entry */ -td.headerValueLeg -{ - text-align: left; - color: #000000; - font-family: sans-serif; - font-size: 80%; - white-space: nowrap; - padding-top: 4px; -} - -/* All views: color of horizontal ruler */ -td.ruler -{ - background-color: #6688D4; -} - -/* All views: version string format */ -td.versionInfo -{ - text-align: center; - padding-top: 2px; - font-family: sans-serif; - font-style: italic; -} - -/* Directory view/File view (all)/Test case descriptions: - table headline format */ -td.tableHead -{ - text-align: center; - color: #FFFFFF; - background-color: #6688D4; - font-family: sans-serif; - font-size: 120%; - font-weight: bold; - white-space: nowrap; - padding-left: 4px; - padding-right: 4px; -} - -span.tableHeadSort -{ - padding-right: 4px; -} - -/* Directory view/File view (all): filename entry format */ -td.coverFile -{ - text-align: left; - padding-left: 10px; - padding-right: 20px; - color: #284FA8; - background-color: #DAE7FE; - font-family: monospace; -} - -/* Directory view/File view (all): bar-graph entry format*/ -td.coverBar -{ - padding-left: 10px; - padding-right: 10px; - background-color: #DAE7FE; -} - -/* Directory view/File view (all): bar-graph outline color */ -td.coverBarOutline -{ - background-color: #000000; -} - -/* Directory view/File view (all): percentage entry for files with - high coverage rate */ -td.coverPerHi -{ - text-align: right; - padding-left: 10px; - padding-right: 10px; - background-color: #A7FC9D; - font-weight: bold; - font-family: sans-serif; -} - -/* Directory view/File view (all): line count entry for files with - high coverage rate */ -td.coverNumHi -{ - text-align: right; - padding-left: 10px; - padding-right: 10px; - background-color: #A7FC9D; - white-space: nowrap; - font-family: sans-serif; -} - -/* Directory view/File view (all): percentage entry for files with - medium coverage rate */ -td.coverPerMed -{ - text-align: right; - padding-left: 10px; - padding-right: 10px; - background-color: #FFEA20; - font-weight: bold; - font-family: sans-serif; -} - -/* Directory view/File view (all): line count entry for files with - medium coverage rate */ -td.coverNumMed -{ - text-align: right; - padding-left: 10px; - padding-right: 10px; - background-color: #FFEA20; - white-space: nowrap; - font-family: sans-serif; -} - -/* Directory view/File view (all): percentage entry for files with - low coverage rate */ -td.coverPerLo -{ - text-align: right; - padding-left: 10px; - padding-right: 10px; - background-color: #FF0000; - font-weight: bold; - font-family: sans-serif; -} - -/* Directory view/File view (all): line count entry for files with - low coverage rate */ -td.coverNumLo -{ - text-align: right; - padding-left: 10px; - padding-right: 10px; - background-color: #FF0000; - white-space: nowrap; - font-family: sans-serif; -} - -/* File view (all): "show/hide details" link format */ -a.detail:link -{ - color: #B8D0FF; - font-size:80%; -} - -/* File view (all): "show/hide details" link - visited format */ -a.detail:visited -{ - color: #B8D0FF; - font-size:80%; -} - -/* File view (all): "show/hide details" link - activated format */ -a.detail:active -{ - color: #FFFFFF; - font-size:80%; -} - -/* File view (detail): test name entry */ -td.testName -{ - text-align: right; - padding-right: 10px; - background-color: #DAE7FE; - font-family: sans-serif; -} - -/* File view (detail): test percentage entry */ -td.testPer -{ - text-align: right; - padding-left: 10px; - padding-right: 10px; - background-color: #DAE7FE; - font-family: sans-serif; -} - -/* File view (detail): test lines count entry */ -td.testNum -{ - text-align: right; - padding-left: 10px; - padding-right: 10px; - background-color: #DAE7FE; - font-family: sans-serif; -} - -/* Test case descriptions: test name format*/ -dt -{ - font-family: sans-serif; - font-weight: bold; -} - -/* Test case descriptions: description table body */ -td.testDescription -{ - padding-top: 10px; - padding-left: 30px; - padding-bottom: 10px; - padding-right: 30px; - background-color: #DAE7FE; -} - -/* Source code view: function entry */ -td.coverFn -{ - text-align: left; - padding-left: 10px; - padding-right: 20px; - color: #284FA8; - background-color: #DAE7FE; - font-family: monospace; -} - -/* Source code view: function entry zero count*/ -td.coverFnLo -{ - text-align: right; - padding-left: 10px; - padding-right: 10px; - background-color: #FF0000; - font-weight: bold; - font-family: sans-serif; -} - -/* Source code view: function entry nonzero count*/ -td.coverFnHi -{ - text-align: right; - padding-left: 10px; - padding-right: 10px; - background-color: #DAE7FE; - font-weight: bold; - font-family: sans-serif; -} - -/* Source code view: source code format */ -pre.source -{ - font-family: monospace; - white-space: pre; - margin-top: 2px; -} - -/* Source code view: line number format */ -span.lineNum -{ - background-color: #EFE383; -} - -/* Source code view: format for lines which were executed */ -td.lineCov, -span.lineCov -{ - background-color: #CAD7FE; -} - -/* Source code view: format for Cov legend */ -span.coverLegendCov -{ - padding-left: 10px; - padding-right: 10px; - padding-bottom: 2px; - background-color: #CAD7FE; -} - -/* Source code view: format for lines which were not executed */ -td.lineNoCov, -span.lineNoCov -{ - background-color: #FF6230; -} - -/* Source code view: format for NoCov legend */ -span.coverLegendNoCov -{ - padding-left: 10px; - padding-right: 10px; - padding-bottom: 2px; - background-color: #FF6230; -} - -/* Source code view (function table): standard link - visited format */ -td.lineNoCov > a:visited, -td.lineCov > a:visited -{ - color: black; - text-decoration: underline; -} - -/* Source code view: format for lines which were executed only in a - previous version */ -span.lineDiffCov -{ - background-color: #B5F7AF; -} - -/* Source code view: format for branches which were executed - * and taken */ -span.branchCov -{ - background-color: #CAD7FE; -} - -/* Source code view: format for branches which were executed - * but not taken */ -span.branchNoCov -{ - background-color: #FF6230; -} - -/* Source code view: format for branches which were not executed */ -span.branchNoExec -{ - background-color: #FF6230; -} - -/* Source code view: format for the source code heading line */ -pre.sourceHeading -{ - white-space: pre; - font-family: monospace; - font-weight: bold; - margin: 0px; -} - -/* All views: header legend value for low rate */ -td.headerValueLegL -{ - font-family: sans-serif; - text-align: center; - white-space: nowrap; - padding-left: 4px; - padding-right: 2px; - background-color: #FF0000; - font-size: 80%; -} - -/* All views: header legend value for med rate */ -td.headerValueLegM -{ - font-family: sans-serif; - text-align: center; - white-space: nowrap; - padding-left: 2px; - padding-right: 2px; - background-color: #FFEA20; - font-size: 80%; -} - -/* All views: header legend value for hi rate */ -td.headerValueLegH -{ - font-family: sans-serif; - text-align: center; - white-space: nowrap; - padding-left: 2px; - padding-right: 4px; - background-color: #A7FC9D; - font-size: 80%; -} - -/* All views except source code view: legend format for low coverage */ -span.coverLegendCovLo -{ - padding-left: 10px; - padding-right: 10px; - padding-top: 2px; - background-color: #FF0000; -} - -/* All views except source code view: legend format for med coverage */ -span.coverLegendCovMed -{ - padding-left: 10px; - padding-right: 10px; - padding-top: 2px; - background-color: #FFEA20; -} - -/* All views except source code view: legend format for hi coverage */ -span.coverLegendCovHi -{ - padding-left: 10px; - padding-right: 10px; - padding-top: 2px; - background-color: #A7FC9D; -} diff --git a/coverage/html/glass.png b/coverage/html/glass.png deleted file mode 100644 index e1abc00680a3093c49fdb775ae6bdb6764c95af2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 167 zcmeAS@N?(olHy`uVBq!ia0vp^j3CU&3?x-=hn)gaEa{HEjtmSN`?>!lvI6;R0X`wF z|Ns97GD8ntt^-nxB|(0{3=Yq3q=7g|-tI089jvk*Kn`btM`SSr1Gf+eGhVt|_XjA* zUgGKN%6^Gmn4d%Ph(nkFP>9RZ#WAE}PI3Z}&BVayv3^M*kj3EX>gTe~DWM4f=_Dpv diff --git a/coverage/html/index-sort-f.html b/coverage/html/index-sort-f.html deleted file mode 100644 index 5902fd2..0000000 --- a/coverage/html/index-sort-f.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - - LCOV - lcov.info - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top levelHitTotalCoverage
Test:lcov.infoLines:178178100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Directory Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
src -
100.0%
-
100.0 %176 / 176-0 / 0
utills -
100.0%
-
100.0 %2 / 2-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/index-sort-l.html b/coverage/html/index-sort-l.html deleted file mode 100644 index 82bc632..0000000 --- a/coverage/html/index-sort-l.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - - LCOV - lcov.info - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top levelHitTotalCoverage
Test:lcov.infoLines:178178100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Directory Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
utills -
100.0%
-
100.0 %2 / 2-0 / 0
src -
100.0%
-
100.0 %176 / 176-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/index.html b/coverage/html/index.html deleted file mode 100644 index b9d1145..0000000 --- a/coverage/html/index.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - - LCOV - lcov.info - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top levelHitTotalCoverage
Test:lcov.infoLines:178178100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Directory Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
src -
100.0%
-
100.0 %176 / 176-0 / 0
utills -
100.0%
-
100.0 %2 / 2-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/ruby.png b/coverage/html/ruby.png deleted file mode 100644 index 991b6d4ec9e78be165e3ef757eed1aada287364d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 141 zcmeAS@N?(olHy`uVBq!ia0vp^j3CU&3?x-=hn)ga>?NMQuI!iC1^FceV#7`HfI^%F z9+AZi4BSE>%y{W;-5;PJOS+@4BLl<6e(pbstUx|nfKQ0)e^Y%R^MdiLxj>4`)5S5Q b;#P73kj=!v_*DHKNFRfztDnm{r-UW|iOwIS diff --git a/coverage/html/snow.png b/coverage/html/snow.png deleted file mode 100644 index 2cdae107fceec6e7f02ac7acb4a34a82a540caa5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 141 zcmeAS@N?(olHy`uVBq!ia0vp^j3CU&3?x-=hn)ga>?NMQuI!iC1^MM!lvI6;R0X`wF|Ns97GD8ntt^-nBo-U3d c6}OTTfNUlP#;5A{K>8RwUHx3vIVCg!071?oo&W#< diff --git a/coverage/html/src/cupertino_swipe_refresh.dart.func-sort-c.html b/coverage/html/src/cupertino_swipe_refresh.dart.func-sort-c.html deleted file mode 100644 index 56710b5..0000000 --- a/coverage/html/src/cupertino_swipe_refresh.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - src\cupertino_swipe_refresh.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - src\cupertino_swipe_refresh.dart - cupertino_swipe_refresh.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:4646100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/src/cupertino_swipe_refresh.dart.func.html b/coverage/html/src/cupertino_swipe_refresh.dart.func.html deleted file mode 100644 index 983353d..0000000 --- a/coverage/html/src/cupertino_swipe_refresh.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - src\cupertino_swipe_refresh.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - src\cupertino_swipe_refresh.dart - cupertino_swipe_refresh.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:4646100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/src/cupertino_swipe_refresh.dart.gcov.html b/coverage/html/src/cupertino_swipe_refresh.dart.gcov.html deleted file mode 100644 index fc061e1..0000000 --- a/coverage/html/src/cupertino_swipe_refresh.dart.gcov.html +++ /dev/null @@ -1,236 +0,0 @@ - - - - - - - LCOV - lcov.info - src\cupertino_swipe_refresh.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - src\cupertino_swipe_refresh.dart - cupertino_swipe_refresh.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:4646100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : // Copyright (c) 2019-present,  SurfStudio LLC
-       2             : //
-       3             : // Licensed under the Apache License, Version 2.0 (the "License");
-       4             : // you may not use this file except in compliance with the License.
-       5             : // You may obtain a copy of the License at
-       6             : //
-       7             : //     http://www.apache.org/licenses/LICENSE-2.0
-       8             : //
-       9             : // Unless required by applicable law or agreed to in writing, software
-      10             : // distributed under the License is distributed on an "AS IS" BASIS,
-      11             : // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-      12             : // See the License for the specific language governing permissions and
-      13             : // limitations under the License.
-      14             : 
-      15             : import 'dart:async';
-      16             : 
-      17             : import 'package:flutter/cupertino.dart';
-      18             : import 'package:swipe_refresh/src/swipe_refresh_base.dart';
-      19             : import 'package:swipe_refresh/src/swipe_refresh_state.dart';
-      20             : 
-      21             : /// Refresh indicator widget with Cupertino style.
-      22             : class CupertinoSwipeRefresh extends SwipeRefreshBase {
-      23             :   static const double defaultRefreshTriggerPullDistance = 100.0;
-      24             :   static const double defaultRefreshIndicatorExtent = 60.0;
-      25             : 
-      26             :   final double refreshTriggerPullDistance;
-      27             :   final double refreshIndicatorExtent;
-      28             :   final RefreshControlIndicatorBuilder indicatorBuilder;
-      29             : 
-      30           3 :   const CupertinoSwipeRefresh({
-      31             :     required Stream<SwipeRefreshState> stateStream,
-      32             :     required VoidCallback onRefresh,
-      33             :     Key? key,
-      34             :     SliverChildDelegate? childrenDelegate,
-      35             :     List<Widget>? children,
-      36             :     SwipeRefreshState? initState,
-      37             :     EdgeInsets? padding,
-      38             :     ScrollController? scrollController,
-      39             :     bool shrinkWrap = false,
-      40             :     this.refreshTriggerPullDistance = defaultRefreshTriggerPullDistance,
-      41             :     this.refreshIndicatorExtent = defaultRefreshIndicatorExtent,
-      42             :     this.indicatorBuilder = CupertinoSliverRefreshControl.buildRefreshIndicator,
-      43             :     ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
-      44             :     ScrollPhysics? physics,
-      45           3 :   }) : super(
-      46             :           key: key,
-      47             :           children: children,
-      48             :           childrenDelegate: childrenDelegate,
-      49             :           stateStream: stateStream,
-      50             :           initState: initState,
-      51             :           onRefresh: onRefresh,
-      52             :           padding: padding,
-      53             :           scrollController: scrollController,
-      54             :           shrinkWrap: shrinkWrap,
-      55             :           keyboardDismissBehavior: keyboardDismissBehavior,
-      56             :           physics: physics,
-      57             :         );
-      58             : 
-      59           3 :   @override
-      60             :   // ignore: no_logic_in_create_state
-      61           3 :   SwipeRefreshBaseState createState() => _CupertinoSwipeRefreshState(
-      62           3 :         scrollController,
-      63             :       );
-      64             : }
-      65             : 
-      66             : class _CupertinoSwipeRefreshState
-      67             :     extends SwipeRefreshBaseState<CupertinoSwipeRefresh> {
-      68             :   final ScrollController _scrollController;
-      69             : 
-      70           3 :   _CupertinoSwipeRefreshState(
-      71             :     ScrollController? scrollController,
-      72           3 :   ) : _scrollController = scrollController ?? ScrollController();
-      73             : 
-      74           3 :   @override
-      75             :   Widget buildRefresher(
-      76             :     Key key,
-      77             :     List<Widget> children,
-      78             :     Future<void> Function() onRefresh,
-      79             :   ) {
-      80           3 :     return CustomScrollView(
-      81           6 :       shrinkWrap: widget.shrinkWrap,
-      82           3 :       controller: _scrollController,
-      83           6 :       keyboardDismissBehavior: widget.keyboardDismissBehavior ??
-      84             :           ScrollViewKeyboardDismissBehavior.onDrag,
-      85           6 :       physics: widget.physics == null
-      86             :           ? const BouncingScrollPhysics(
-      87             :               parent: AlwaysScrollableScrollPhysics(),
-      88             :             )
-      89           3 :           : AlwaysScrollableScrollPhysics(parent: widget.physics),
-      90           3 :       slivers: <Widget>[
-      91           3 :         CupertinoSliverRefreshControl(
-      92             :           key: key,
-      93             :           onRefresh: onRefresh,
-      94           6 :           refreshTriggerPullDistance: widget.refreshTriggerPullDistance,
-      95           6 :           refreshIndicatorExtent: widget.refreshIndicatorExtent,
-      96           6 :           builder: widget.indicatorBuilder,
-      97             :         ),
-      98           3 :         SliverSafeArea(
-      99           6 :           bottom: widget.padding == null,
-     100           6 :           left: widget.padding == null,
-     101           6 :           right: widget.padding == null,
-     102           6 :           top: widget.padding == null,
-     103           3 :           sliver: _ListChildrenWidget(
-     104             :             children: children,
-     105           6 :             padding: widget.padding,
-     106           6 :             childrenDelegate: widget.childrenDelegate,
-     107             :           ),
-     108             :         ),
-     109             :       ],
-     110             :     );
-     111             :   }
-     112             : 
-     113           1 :   @override
-     114             :   void onUpdateState(SwipeRefreshState state) {
-     115             :    // if (state == SwipeRefreshState.loading) {
-     116             :    //   _scrollController.jumpTo(-(widget.refreshIndicatorExtent + 5));
-     117             :    // }
-     118             : 
-     119           1 :     if (state == SwipeRefreshState.hidden) {
-     120           1 :       if (completer != null) {
-     121           2 :         completer!.complete();
-     122           1 :         completer = null;
-     123             :       }
-     124             :     }
-     125             :   }
-     126             : }
-     127             : 
-     128             : class _ListChildrenWidget extends StatelessWidget {
-     129             :   final List<Widget> children;
-     130             :   final EdgeInsets? padding;
-     131             :   final SliverChildDelegate? childrenDelegate;
-     132             : 
-     133           3 :   const _ListChildrenWidget({
-     134             :     required this.children,
-     135             :     Key? key,
-     136             :     this.padding,
-     137             :     this.childrenDelegate,
-     138           3 :   }) : super(key: key);
-     139             : 
-     140           3 :   @override
-     141             :   Widget build(BuildContext context) {
-     142           3 :     if (padding != null) {
-     143           1 :       return SliverPadding(
-     144           1 :         padding: padding!,
-     145           1 :         sliver: SliverList(
-     146           1 :           delegate: childrenDelegate ??
-     147           1 :               SliverChildListDelegate(
-     148           1 :                 children,
-     149             :               ),
-     150             :         ),
-     151             :       );
-     152             :     }
-     153           3 :     return SliverList(
-     154           3 :       delegate: childrenDelegate ??
-     155           2 :           SliverChildListDelegate(
-     156           2 :             children,
-     157             :           ),
-     158             :     );
-     159             :   }
-     160             : }
-
-
-
- - - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/src/index-sort-f.html b/coverage/html/src/index-sort-f.html deleted file mode 100644 index 2bb7908..0000000 --- a/coverage/html/src/index-sort-f.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - - - - LCOV - lcov.info - src - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - srcHitTotalCoverage
Test:lcov.infoLines:176176100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
swipe_refresh_state.dart -
100.0%
-
100.0 %1 / 1-0 / 0
material_swipe_refresh.dart -
100.0%
-
100.0 %27 / 27-0 / 0
swipe_refresh_base.dart -
100.0%
-
100.0 %24 / 24-0 / 0
swipe_refresh_style.dart -
100.0%
-
100.0 %1 / 1-0 / 0
swipe_refresh.dart -
100.0%
-
100.0 %77 / 77-0 / 0
cupertino_swipe_refresh.dart -
100.0%
-
100.0 %46 / 46-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/src/index-sort-l.html b/coverage/html/src/index-sort-l.html deleted file mode 100644 index 615dbb3..0000000 --- a/coverage/html/src/index-sort-l.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - - - - LCOV - lcov.info - src - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - srcHitTotalCoverage
Test:lcov.infoLines:176176100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
swipe_refresh_state.dart -
100.0%
-
100.0 %1 / 1-0 / 0
swipe_refresh_style.dart -
100.0%
-
100.0 %1 / 1-0 / 0
swipe_refresh_base.dart -
100.0%
-
100.0 %24 / 24-0 / 0
material_swipe_refresh.dart -
100.0%
-
100.0 %27 / 27-0 / 0
cupertino_swipe_refresh.dart -
100.0%
-
100.0 %46 / 46-0 / 0
swipe_refresh.dart -
100.0%
-
100.0 %77 / 77-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/src/index.html b/coverage/html/src/index.html deleted file mode 100644 index 6aeea70..0000000 --- a/coverage/html/src/index.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - - - - LCOV - lcov.info - src - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - srcHitTotalCoverage
Test:lcov.infoLines:176176100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
cupertino_swipe_refresh.dart -
100.0%
-
100.0 %46 / 46-0 / 0
material_swipe_refresh.dart -
100.0%
-
100.0 %27 / 27-0 / 0
swipe_refresh.dart -
100.0%
-
100.0 %77 / 77-0 / 0
swipe_refresh_base.dart -
100.0%
-
100.0 %24 / 24-0 / 0
swipe_refresh_state.dart -
100.0%
-
100.0 %1 / 1-0 / 0
swipe_refresh_style.dart -
100.0%
-
100.0 %1 / 1-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/src/material_swipe_refresh.dart.func-sort-c.html b/coverage/html/src/material_swipe_refresh.dart.func-sort-c.html deleted file mode 100644 index 00eefdb..0000000 --- a/coverage/html/src/material_swipe_refresh.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - src\material_swipe_refresh.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - src\material_swipe_refresh.dart - material_swipe_refresh.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:2727100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/src/material_swipe_refresh.dart.func.html b/coverage/html/src/material_swipe_refresh.dart.func.html deleted file mode 100644 index 1a99998..0000000 --- a/coverage/html/src/material_swipe_refresh.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - src\material_swipe_refresh.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - src\material_swipe_refresh.dart - material_swipe_refresh.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:2727100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/src/material_swipe_refresh.dart.gcov.html b/coverage/html/src/material_swipe_refresh.dart.gcov.html deleted file mode 100644 index 699dcd1..0000000 --- a/coverage/html/src/material_swipe_refresh.dart.gcov.html +++ /dev/null @@ -1,180 +0,0 @@ - - - - - - - LCOV - lcov.info - src\material_swipe_refresh.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - src\material_swipe_refresh.dart - material_swipe_refresh.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:2727100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : // Copyright (c) 2019-present,  SurfStudio LLC
-       2             : //
-       3             : // Licensed under the Apache License, Version 2.0 (the "License");
-       4             : // you may not use this file except in compliance with the License.
-       5             : // You may obtain a copy of the License at
-       6             : //
-       7             : //     http://www.apache.org/licenses/LICENSE-2.0
-       8             : //
-       9             : // Unless required by applicable law or agreed to in writing, software
-      10             : // distributed under the License is distributed on an "AS IS" BASIS,
-      11             : // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-      12             : // See the License for the specific language governing permissions and
-      13             : // limitations under the License.
-      14             : 
-      15             : import 'dart:async';
-      16             : 
-      17             : import 'package:flutter/material.dart';
-      18             : import 'package:flutter/widgets.dart';
-      19             : import 'package:swipe_refresh/src/swipe_refresh_base.dart';
-      20             : import 'package:swipe_refresh/src/swipe_refresh_state.dart';
-      21             : 
-      22             : /// Refresh indicator widget with Material Design style.
-      23             : class MaterialSwipeRefresh extends SwipeRefreshBase {
-      24             :   final Color? indicatorColor;
-      25             :   final Color backgroundColor;
-      26             : 
-      27           2 :   const MaterialSwipeRefresh({
-      28             :     required Stream<SwipeRefreshState> stateStream,
-      29             :     required VoidCallback onRefresh,
-      30             :     Key? key,
-      31             :     this.indicatorColor,
-      32             :     List<Widget>? children,
-      33             :     SliverChildDelegate? childrenDelegate,
-      34             :     SwipeRefreshState? initState,
-      35             :     Color? backgroundColor,
-      36             :     ScrollController? scrollController,
-      37             :     EdgeInsets? padding,
-      38             :     bool shrinkWrap = false,
-      39             :     ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
-      40             :     ScrollPhysics? physics,
-      41             :   })  : backgroundColor = backgroundColor ?? const Color(0xFFFFFFFF),
-      42           2 :         super(
-      43             :           key: key,
-      44             :           children: children,
-      45             :           childrenDelegate: childrenDelegate,
-      46             :           stateStream: stateStream,
-      47             :           initState: initState,
-      48             :           onRefresh: onRefresh,
-      49             :           scrollController: scrollController,
-      50             :           padding: padding,
-      51             :           shrinkWrap: shrinkWrap,
-      52             :           keyboardDismissBehavior: keyboardDismissBehavior,
-      53             :           physics: physics,
-      54             :         );
-      55             : 
-      56           2 :   @override
-      57           2 :   _MaterialSwipeRefreshState createState() => _MaterialSwipeRefreshState();
-      58             : }
-      59             : 
-      60             : class _MaterialSwipeRefreshState
-      61             :     extends SwipeRefreshBaseState<MaterialSwipeRefresh> {
-      62           2 :   @override
-      63             :   Widget buildRefresher(
-      64             :     Key key,
-      65             :     List<Widget> children,
-      66             :     Future<void> Function() onRefresh,
-      67             :   ) {
-      68           2 :     return RefreshIndicator(
-      69             :       key: key,
-      70             :       onRefresh: onRefresh,
-      71           4 :       color: widget.indicatorColor,
-      72           4 :       backgroundColor: widget.backgroundColor,
-      73           4 :       child: widget.childrenDelegate == null
-      74           2 :           ? ListView(
-      75           4 :               shrinkWrap: widget.shrinkWrap,
-      76           4 :               padding: widget.padding,
-      77           6 :               controller: widget.scrollController ?? ScrollController(),
-      78           6 :               physics: AlwaysScrollableScrollPhysics(parent: widget.physics),
-      79           4 :               keyboardDismissBehavior: widget.keyboardDismissBehavior ??
-      80             :                   ScrollViewKeyboardDismissBehavior.manual,
-      81             :               children: children,
-      82             :             )
-      83           1 :           : ListView.custom(
-      84           2 :               shrinkWrap: widget.shrinkWrap,
-      85           2 :               padding: widget.padding,
-      86           2 :               childrenDelegate: widget.childrenDelegate!,
-      87           2 :               controller: widget.scrollController ?? ScrollController(),
-      88           2 :               keyboardDismissBehavior: widget.keyboardDismissBehavior ??
-      89             :                   ScrollViewKeyboardDismissBehavior.manual,
-      90           3 :               physics: AlwaysScrollableScrollPhysics(parent: widget.physics),
-      91             :             ),
-      92             :     );
-      93             :   }
-      94             : 
-      95           1 :   @override
-      96             :   void onUpdateState(SwipeRefreshState state) {
-      97           1 :     if (state == SwipeRefreshState.hidden) {
-      98           1 :       if (completer != null) {
-      99           2 :         completer!.complete();
-     100           1 :         completer = null;
-     101             :       }
-     102             :     }
-     103             :   }
-     104             : }
-
-
-
- - - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/src/swipe_refresh.dart.func-sort-c.html b/coverage/html/src/swipe_refresh.dart.func-sort-c.html deleted file mode 100644 index e3331db..0000000 --- a/coverage/html/src/swipe_refresh.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - src\swipe_refresh.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - src\swipe_refresh.dart - swipe_refresh.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:7777100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/src/swipe_refresh.dart.func.html b/coverage/html/src/swipe_refresh.dart.func.html deleted file mode 100644 index 42d1e03..0000000 --- a/coverage/html/src/swipe_refresh.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - src\swipe_refresh.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - src\swipe_refresh.dart - swipe_refresh.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:7777100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/src/swipe_refresh.dart.gcov.html b/coverage/html/src/swipe_refresh.dart.gcov.html deleted file mode 100644 index 69b6b42..0000000 --- a/coverage/html/src/swipe_refresh.dart.gcov.html +++ /dev/null @@ -1,380 +0,0 @@ - - - - - - - LCOV - lcov.info - src\swipe_refresh.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - src\swipe_refresh.dart - swipe_refresh.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:7777100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : // Copyright (c) 2019-present,  SurfStudio LLC
-       2             : //
-       3             : // Licensed under the Apache License, Version 2.0 (the "License");
-       4             : // you may not use this file except in compliance with the License.
-       5             : // You may obtain a copy of the License at
-       6             : //
-       7             : //     http://www.apache.org/licenses/LICENSE-2.0
-       8             : //
-       9             : // Unless required by applicable law or agreed to in writing, software
-      10             : // distributed under the License is distributed on an "AS IS" BASIS,
-      11             : // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-      12             : // See the License for the specific language governing permissions and
-      13             : // limitations under the License.
-      14             : 
-      15             : import 'package:flutter/cupertino.dart';
-      16             : import 'package:flutter/foundation.dart';
-      17             : import 'package:swipe_refresh/src/cupertino_swipe_refresh.dart';
-      18             : import 'package:swipe_refresh/src/material_swipe_refresh.dart';
-      19             : import 'package:swipe_refresh/src/swipe_refresh_state.dart';
-      20             : import 'package:swipe_refresh/src/swipe_refresh_style.dart';
-      21             : import 'package:swipe_refresh/utills/platform_wrapper.dart';
-      22             : 
-      23             : /// Refresh indicator widget.
-      24             : ///
-      25             : /// Params for Material Design style:
-      26             : /// [indicatorColor], [backgroundColor].
-      27             : ///
-      28             : /// Params for Cupertino style:
-      29             : /// [refreshTriggerPullDistance], [refreshIndicatorExtent], [indicatorBuilder].
-      30             : class SwipeRefresh extends StatelessWidget {
-      31             :   final List<Widget>? children;
-      32             :   final VoidCallback onRefresh;
-      33             :   final SwipeRefreshState? initState;
-      34             :   final Stream<SwipeRefreshState> stateStream;
-      35             :   final Color? indicatorColor;
-      36             :   final Color backgroundColor;
-      37             :   final double refreshTriggerPullDistance;
-      38             :   final double refreshIndicatorExtent;
-      39             :   final RefreshControlIndicatorBuilder indicatorBuilder;
-      40             :   final SwipeRefreshStyle style;
-      41             :   final ScrollController? scrollController;
-      42             :   final SliverChildDelegate? childrenDelegate;
-      43             :   final EdgeInsets? padding;
-      44             :   final bool shrinkWrap;
-      45             :   final ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior;
-      46             :   final ScrollPhysics? physics;
-      47             :   final PlatformWrapper _platform;
-      48             : 
-      49           4 :   SwipeRefresh(
-      50             :     this.style, {
-      51             :     required this.stateStream,
-      52             :     required this.onRefresh,
-      53             :     Key? key,
-      54             :     this.children,
-      55             :     this.initState,
-      56             :     this.scrollController,
-      57             :     this.childrenDelegate,
-      58             :     this.padding,
-      59             :     this.indicatorColor,
-      60             :     this.shrinkWrap = false,
-      61             :     this.keyboardDismissBehavior,
-      62             :     this.physics,
-      63             :     Color? backgroundColor,
-      64             :     double? refreshTriggerPullDistance,
-      65             :     double? refreshIndicatorExtent,
-      66             :     RefreshControlIndicatorBuilder? indicatorBuilder,
-      67             :     PlatformWrapper? platform,
-      68             :   })  : backgroundColor = backgroundColor ?? const Color(0xFFFFFFFF),
-      69             :         refreshTriggerPullDistance = refreshTriggerPullDistance ??
-      70             :             CupertinoSwipeRefresh.defaultRefreshTriggerPullDistance,
-      71             :         refreshIndicatorExtent = refreshIndicatorExtent ??
-      72             :             CupertinoSwipeRefresh.defaultRefreshIndicatorExtent,
-      73             :         indicatorBuilder = indicatorBuilder ??
-      74             :             CupertinoSliverRefreshControl.buildRefreshIndicator,
-      75           2 :         _platform = platform ?? PlatformWrapper(),
-      76           4 :         super(key: key);
-      77             : 
-      78             :   /// Create refresh indicator adaptive to platform.
-      79           1 :   SwipeRefresh.adaptive({
-      80             :     required Stream<SwipeRefreshState> stateStream,
-      81             :     required VoidCallback onRefresh,
-      82             :     List<Widget>? children,
-      83             :     SliverChildDelegate? childrenDelegate,
-      84             :     Key? key,
-      85             :     SwipeRefreshState? initState,
-      86             :     Color? indicatorColor,
-      87             :     Color? backgroundColor,
-      88             :     double? refreshTriggerPullDistance,
-      89             :     double? refreshIndicatorExtent,
-      90             :     RefreshControlIndicatorBuilder? indicatorBuilder,
-      91             :     ScrollController? scrollController,
-      92             :     EdgeInsets? padding,
-      93             :     bool shrinkWrap = false,
-      94             :     ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
-      95             :     ScrollPhysics? physics,
-      96             :     PlatformWrapper? platform,
-      97           1 :   }) : this(
-      98             :           SwipeRefreshStyle.adaptive,
-      99             :           key: key,
-     100             :           children: children,
-     101             :           childrenDelegate: childrenDelegate,
-     102             :           stateStream: stateStream,
-     103             :           initState: initState,
-     104             :           onRefresh: onRefresh,
-     105             :           indicatorColor: indicatorColor,
-     106             :           backgroundColor: backgroundColor,
-     107             :           refreshTriggerPullDistance: refreshTriggerPullDistance,
-     108             :           refreshIndicatorExtent: refreshIndicatorExtent,
-     109             :           indicatorBuilder: indicatorBuilder,
-     110             :           scrollController: scrollController,
-     111             :           padding: padding,
-     112             :           shrinkWrap: shrinkWrap,
-     113             :           keyboardDismissBehavior: keyboardDismissBehavior,
-     114             :           physics: physics,
-     115             :           platform: platform,
-     116             :         );
-     117             : 
-     118             :   /// Create refresh indicator with Material Design style.
-     119           1 :   SwipeRefresh.material({
-     120             :     required Stream<SwipeRefreshState> stateStream,
-     121             :     required VoidCallback onRefresh,
-     122             :     List<Widget>? children,
-     123             :     SliverChildDelegate? childrenDelegate,
-     124             :     Key? key,
-     125             :     SwipeRefreshState? initState,
-     126             :     Color? indicatorColor,
-     127             :     Color? backgroundColor,
-     128             :     ScrollController? scrollController,
-     129             :     EdgeInsets? padding,
-     130             :     bool shrinkWrap = false,
-     131             :     ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
-     132             :     ScrollPhysics? physics,
-     133           1 :   }) : this(
-     134             :           SwipeRefreshStyle.material,
-     135             :           key: key,
-     136             :           children: children,
-     137             :           childrenDelegate: childrenDelegate,
-     138             :           stateStream: stateStream,
-     139             :           initState: initState,
-     140             :           onRefresh: onRefresh,
-     141             :           indicatorColor: indicatorColor,
-     142             :           backgroundColor: backgroundColor,
-     143             :           scrollController: scrollController,
-     144             :           padding: padding,
-     145             :           shrinkWrap: shrinkWrap,
-     146             :           keyboardDismissBehavior: keyboardDismissBehavior,
-     147             :           physics: physics,
-     148             :         );
-     149             : 
-     150             :   /// Create refresh indicator with Cupertino style.
-     151           1 :   SwipeRefresh.cupertino({
-     152             :     required Stream<SwipeRefreshState> stateStream,
-     153             :     required VoidCallback onRefresh,
-     154             :     List<Widget>? children,
-     155             :     SliverChildDelegate? childrenDelegate,
-     156             :     Key? key,
-     157             :     SwipeRefreshState? initState,
-     158             :     double? refreshTriggerPullDistance,
-     159             :     double? refreshIndicatorExtent,
-     160             :     RefreshControlIndicatorBuilder? indicatorBuilder,
-     161             :     ScrollController? scrollController,
-     162             :     EdgeInsets? padding,
-     163             :     bool shrinkWrap = false,
-     164             :     ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
-     165             :     ScrollPhysics? physics,
-     166           1 :   }) : this(
-     167             :           SwipeRefreshStyle.cupertino,
-     168             :           key: key,
-     169             :           children: children,
-     170             :           childrenDelegate: childrenDelegate,
-     171             :           stateStream: stateStream,
-     172             :           initState: initState,
-     173             :           onRefresh: onRefresh,
-     174             :           refreshTriggerPullDistance: refreshTriggerPullDistance,
-     175             :           refreshIndicatorExtent: refreshIndicatorExtent,
-     176             :           indicatorBuilder: indicatorBuilder,
-     177             :           scrollController: scrollController,
-     178             :           padding: padding,
-     179             :           shrinkWrap: shrinkWrap,
-     180             :           keyboardDismissBehavior: keyboardDismissBehavior,
-     181             :           physics: physics,
-     182             :         );
-     183             : 
-     184             :   /// Create SwipeRefresh as common link
-     185             :   /// remove some conflicts between ScrollControllers when ListView added into
-     186             :   /// SwipeRefresh (remove need to add extra ListView).
-     187           1 :   factory SwipeRefresh.builder({
-     188             :     required IndexedWidgetBuilder itemBuilder,
-     189             :     required int itemCount,
-     190             :     required Stream<SwipeRefreshState> stateStream,
-     191             :     required VoidCallback onRefresh,
-     192             :     Key? key,
-     193             :     SwipeRefreshState? initState,
-     194             :     Color? indicatorColor,
-     195             :     Color? backgroundColor,
-     196             :     double? refreshTriggerPullDistance,
-     197             :     double? refreshIndicatorExtent,
-     198             :     RefreshControlIndicatorBuilder? indicatorBuilder,
-     199             :     ScrollController? scrollController,
-     200             :     EdgeInsets? padding,
-     201             :     bool shrinkWrap = false,
-     202             :     ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
-     203             :     ScrollPhysics? physics,
-     204             :     PlatformWrapper? platform,
-     205             :   }) {
-     206           1 :     return SwipeRefresh(
-     207             :       SwipeRefreshStyle.adaptive,
-     208             :       key: key,
-     209             :       stateStream: stateStream,
-     210             :       initState: initState,
-     211             :       onRefresh: onRefresh,
-     212             :       indicatorColor: indicatorColor,
-     213             :       backgroundColor: backgroundColor,
-     214             :       refreshTriggerPullDistance: refreshTriggerPullDistance,
-     215             :       refreshIndicatorExtent: refreshIndicatorExtent,
-     216             :       indicatorBuilder: indicatorBuilder,
-     217             :       scrollController: scrollController,
-     218             :       padding: padding,
-     219             :       shrinkWrap: shrinkWrap,
-     220             :       keyboardDismissBehavior: keyboardDismissBehavior,
-     221             :       physics: physics,
-     222           1 :       childrenDelegate: SliverChildBuilderDelegate(
-     223             :         itemBuilder,
-     224             :         childCount: itemCount,
-     225             :       ),
-     226             :       platform: platform,
-     227             :     );
-     228             :   }
-     229             : 
-     230           4 :   @override
-     231             :   Widget build(BuildContext context) {
-     232           4 :     switch (style) {
-     233           4 :       case SwipeRefreshStyle.material:
-     234           1 :         return MaterialSwipeRefresh(
-     235           1 :           key: key,
-     236           1 :           childrenDelegate: childrenDelegate,
-     237           1 :           stateStream: stateStream,
-     238           1 :           initState: initState,
-     239           1 :           onRefresh: onRefresh,
-     240           1 :           scrollController: scrollController,
-     241           1 :           backgroundColor: backgroundColor,
-     242           1 :           indicatorColor: indicatorColor,
-     243           1 :           shrinkWrap: shrinkWrap,
-     244           1 :           padding: padding,
-     245           1 :           keyboardDismissBehavior: keyboardDismissBehavior,
-     246           1 :           physics: physics,
-     247           1 :           children: children,
-     248             :         );
-     249           3 :       case SwipeRefreshStyle.cupertino:
-     250           1 :         return CupertinoSwipeRefresh(
-     251           1 :           key: key,
-     252           1 :           childrenDelegate: childrenDelegate,
-     253           1 :           stateStream: stateStream,
-     254           1 :           initState: initState,
-     255           1 :           onRefresh: onRefresh,
-     256           1 :           scrollController: scrollController,
-     257           1 :           refreshIndicatorExtent: refreshIndicatorExtent,
-     258           1 :           refreshTriggerPullDistance: refreshTriggerPullDistance,
-     259           1 :           indicatorBuilder: indicatorBuilder,
-     260           1 :           shrinkWrap: shrinkWrap,
-     261           1 :           padding: padding,
-     262           1 :           physics: physics,
-     263           1 :           children: children,
-     264             :         );
-     265           2 :       case SwipeRefreshStyle.builder:
-     266           2 :       case SwipeRefreshStyle.adaptive:
-     267           4 :         if (_platform.isAndroid) {
-     268           1 :           return MaterialSwipeRefresh(
-     269           1 :             key: key,
-     270           1 :             childrenDelegate: childrenDelegate,
-     271           1 :             stateStream: stateStream,
-     272           1 :             initState: initState,
-     273           1 :             onRefresh: onRefresh,
-     274           1 :             scrollController: scrollController,
-     275           1 :             backgroundColor: backgroundColor,
-     276           1 :             indicatorColor: indicatorColor,
-     277           1 :             shrinkWrap: shrinkWrap,
-     278           1 :             padding: padding,
-     279           1 :             keyboardDismissBehavior: keyboardDismissBehavior,
-     280           1 :             physics: physics,
-     281           1 :             children: children,
-     282             :           );
-     283           4 :         } else if (_platform.isIOS) {
-     284           2 :           return CupertinoSwipeRefresh(
-     285           2 :             key: key,
-     286           2 :             childrenDelegate: childrenDelegate,
-     287           2 :             stateStream: stateStream,
-     288           2 :             initState: initState,
-     289           2 :             onRefresh: onRefresh,
-     290           2 :             scrollController: scrollController,
-     291           2 :             refreshIndicatorExtent: refreshIndicatorExtent,
-     292           2 :             refreshTriggerPullDistance: refreshTriggerPullDistance,
-     293           2 :             indicatorBuilder: indicatorBuilder,
-     294           2 :             shrinkWrap: shrinkWrap,
-     295           2 :             padding: padding,
-     296           2 :             physics: physics,
-     297           2 :             children: children,
-     298             :           );
-     299             :         }
-     300             :     }
-     301             : 
-     302           1 :     return Container();
-     303             :   }
-     304             : }
-
-
-
- - - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/src/swipe_refresh_base.dart.func-sort-c.html b/coverage/html/src/swipe_refresh_base.dart.func-sort-c.html deleted file mode 100644 index 6bdee7c..0000000 --- a/coverage/html/src/swipe_refresh_base.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - src\swipe_refresh_base.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - src\swipe_refresh_base.dart - swipe_refresh_base.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:2424100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/src/swipe_refresh_base.dart.func.html b/coverage/html/src/swipe_refresh_base.dart.func.html deleted file mode 100644 index 662259b..0000000 --- a/coverage/html/src/swipe_refresh_base.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - src\swipe_refresh_base.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - src\swipe_refresh_base.dart - swipe_refresh_base.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:2424100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/src/swipe_refresh_base.dart.gcov.html b/coverage/html/src/swipe_refresh_base.dart.gcov.html deleted file mode 100644 index 2a3f334..0000000 --- a/coverage/html/src/swipe_refresh_base.dart.gcov.html +++ /dev/null @@ -1,198 +0,0 @@ - - - - - - - LCOV - lcov.info - src\swipe_refresh_base.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - src\swipe_refresh_base.dart - swipe_refresh_base.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:2424100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : // Copyright (c) 2019-present,  SurfStudio LLC
-       2             : //
-       3             : // Licensed under the Apache License, Version 2.0 (the "License");
-       4             : // you may not use this file except in compliance with the License.
-       5             : // You may obtain a copy of the License at
-       6             : //
-       7             : //     http://www.apache.org/licenses/LICENSE-2.0
-       8             : //
-       9             : // Unless required by applicable law or agreed to in writing, software
-      10             : // distributed under the License is distributed on an "AS IS" BASIS,
-      11             : // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-      12             : // See the License for the specific language governing permissions and
-      13             : // limitations under the License.
-      14             : 
-      15             : import 'dart:async';
-      16             : 
-      17             : import 'package:flutter/material.dart';
-      18             : import 'package:swipe_refresh/src/swipe_refresh_state.dart';
-      19             : 
-      20             : /// Base refresh indicator widget.
-      21             : abstract class SwipeRefreshBase extends StatefulWidget {
-      22             :   final List<Widget>? children;
-      23             :   final VoidCallback onRefresh;
-      24             :   final SwipeRefreshState? initState;
-      25             :   final Stream<SwipeRefreshState> stateStream;
-      26             :   final ScrollController? scrollController;
-      27             :   final SliverChildDelegate? childrenDelegate;
-      28             :   final EdgeInsets? padding;
-      29             :   final bool shrinkWrap;
-      30             :   final ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior;
-      31             :   final ScrollPhysics? physics;
-      32             : 
-      33           4 :   const SwipeRefreshBase({
-      34             :     required this.stateStream,
-      35             :     required this.onRefresh,
-      36             :     Key? key,
-      37             :     this.initState,
-      38             :     this.scrollController,
-      39             :     this.childrenDelegate,
-      40             :     this.children,
-      41             :     this.padding,
-      42             :     this.shrinkWrap = false,
-      43             :     this.keyboardDismissBehavior,
-      44             :     this.physics,
-      45           2 :   })  : assert((children == null || childrenDelegate == null) &&
-      46             :             (children != null || childrenDelegate != null)),
-      47           4 :         super(key: key);
-      48             : 
-      49             :   @override
-      50             :   @protected
-      51             :   // ignore: no_logic_in_create_state
-      52             :   SwipeRefreshBaseState createState();
-      53             : }
-      54             : 
-      55             : abstract class SwipeRefreshBaseState<T extends SwipeRefreshBase>
-      56             :     extends State<T> {
-      57             :   @protected
-      58             :   final GlobalKey refreshKey = GlobalKey();
-      59             : 
-      60             :   @protected
-      61             :   Completer<void>? completer;
-      62             : 
-      63             :   @visibleForTesting
-      64             :   @protected
-      65             :   SwipeRefreshState currentState = SwipeRefreshState.hidden;
-      66             : 
-      67             :   StreamSubscription<SwipeRefreshState>? _stateSubscription;
-      68             : 
-      69           4 :   @override
-      70             :   void initState() {
-      71           4 :     super.initState();
-      72             : 
-      73           8 :     if (widget.initState != null) {
-      74           6 :       currentState = widget.initState!;
-      75             :     }
-      76             : 
-      77          20 :     _stateSubscription = widget.stateStream.listen(_updateState);
-      78             :   }
-      79             : 
-      80           4 :   @override
-      81             :   Widget build(BuildContext context) {
-      82             :     // ignore: avoid-returning-widgets
-      83          22 :     return buildRefresher(refreshKey, widget.children ?? [], _onRefresh);
-      84             :   }
-      85             : 
-      86           4 :   @override
-      87             :   void dispose() {
-      88           8 :     _stateSubscription?.cancel();
-      89             : 
-      90           4 :     super.dispose();
-      91             :   }
-      92             : 
-      93             :   @protected
-      94             :   Widget buildRefresher(
-      95             :     Key key,
-      96             :     List<Widget> children,
-      97             :     Future<void> Function() onRefresh,
-      98             :   );
-      99             : 
-     100             :   @protected
-     101             :   void onUpdateState(SwipeRefreshState state);
-     102             : 
-     103           2 :   @protected
-     104             :   Future<void> _onRefresh() {
-     105           2 :     _updateState(SwipeRefreshState.loading);
-     106           4 :     widget.onRefresh();
-     107           4 :     completer = Completer<void>();
-     108           4 :     return completer!.future;
-     109             :   }
-     110             : 
-     111           2 :   void _updateState(SwipeRefreshState newState) {
-     112           4 :     if (currentState != newState) {
-     113           2 :       setState(
-     114           2 :         () {
-     115           2 :           currentState = newState;
-     116             : 
-     117           4 :           onUpdateState(currentState);
-     118             :         },
-     119             :       );
-     120             :     }
-     121             :   }
-     122             : }
-
-
-
- - - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/src/swipe_refresh_state.dart.func-sort-c.html b/coverage/html/src/swipe_refresh_state.dart.func-sort-c.html deleted file mode 100644 index 24ecdbe..0000000 --- a/coverage/html/src/swipe_refresh_state.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - src\swipe_refresh_state.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - src\swipe_refresh_state.dart - swipe_refresh_state.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:11100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/src/swipe_refresh_state.dart.func.html b/coverage/html/src/swipe_refresh_state.dart.func.html deleted file mode 100644 index 5e9826e..0000000 --- a/coverage/html/src/swipe_refresh_state.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - src\swipe_refresh_state.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - src\swipe_refresh_state.dart - swipe_refresh_state.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:11100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/src/swipe_refresh_state.dart.gcov.html b/coverage/html/src/swipe_refresh_state.dart.gcov.html deleted file mode 100644 index dfb046a..0000000 --- a/coverage/html/src/swipe_refresh_state.dart.gcov.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - LCOV - lcov.info - src\swipe_refresh_state.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - src\swipe_refresh_state.dart - swipe_refresh_state.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:11100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : // Copyright (c) 2019-present,  SurfStudio LLC
-       2             : //
-       3             : // Licensed under the Apache License, Version 2.0 (the "License");
-       4             : // you may not use this file except in compliance with the License.
-       5             : // You may obtain a copy of the License at
-       6             : //
-       7             : //     http://www.apache.org/licenses/LICENSE-2.0
-       8             : //
-       9             : // Unless required by applicable law or agreed to in writing, software
-      10             : // distributed under the License is distributed on an "AS IS" BASIS,
-      11             : // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-      12             : // See the License for the specific language governing permissions and
-      13             : // limitations under the License.
-      14             : 
-      15             : /// Refresh indicator states.
-      16           4 : enum SwipeRefreshState {
-      17             :   /// Indicator hidden.
-      18             :   hidden,
-      19             : 
-      20             :   /// Indicator shown.
-      21             :   loading,
-      22             : }
-
-
-
- - - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/src/swipe_refresh_style.dart.func-sort-c.html b/coverage/html/src/swipe_refresh_style.dart.func-sort-c.html deleted file mode 100644 index 944cbc2..0000000 --- a/coverage/html/src/swipe_refresh_style.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - src\swipe_refresh_style.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - src\swipe_refresh_style.dart - swipe_refresh_style.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:11100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/src/swipe_refresh_style.dart.func.html b/coverage/html/src/swipe_refresh_style.dart.func.html deleted file mode 100644 index ea66fb2..0000000 --- a/coverage/html/src/swipe_refresh_style.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - src\swipe_refresh_style.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - src\swipe_refresh_style.dart - swipe_refresh_style.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:11100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/src/swipe_refresh_style.dart.gcov.html b/coverage/html/src/swipe_refresh_style.dart.gcov.html deleted file mode 100644 index 1f16e83..0000000 --- a/coverage/html/src/swipe_refresh_style.dart.gcov.html +++ /dev/null @@ -1,104 +0,0 @@ - - - - - - - LCOV - lcov.info - src\swipe_refresh_style.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - src\swipe_refresh_style.dart - swipe_refresh_style.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:11100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : // Copyright (c) 2019-present,  SurfStudio LLC
-       2             : //
-       3             : // Licensed under the Apache License, Version 2.0 (the "License");
-       4             : // you may not use this file except in compliance with the License.
-       5             : // You may obtain a copy of the License at
-       6             : //
-       7             : //     http://www.apache.org/licenses/LICENSE-2.0
-       8             : //
-       9             : // Unless required by applicable law or agreed to in writing, software
-      10             : // distributed under the License is distributed on an "AS IS" BASIS,
-      11             : // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-      12             : // See the License for the specific language governing permissions and
-      13             : // limitations under the License.
-      14             : 
-      15             : /// Indicator style.
-      16           4 : enum SwipeRefreshStyle {
-      17             :   /// Material Design.
-      18             :   material,
-      19             : 
-      20             :   /// Cupertino.
-      21             :   cupertino,
-      22             : 
-      23             :   /// Adaptive.
-      24             :   adaptive,
-      25             : 
-      26             :   /// Builder.
-      27             :   builder,
-      28             : }
-
-
-
- - - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/updown.png b/coverage/html/updown.png deleted file mode 100644 index aa56a238b3e6c435265250f9266cd1b8caba0f20..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 117 zcmeAS@N?(olHy`uVBq!ia0vp^AT}Qd8;}%R+`Ae`*?77*hG?8mPH5^{)z4*}Q$iB}huR`+ diff --git a/coverage/html/utills/index-sort-f.html b/coverage/html/utills/index-sort-f.html deleted file mode 100644 index c06fa6e..0000000 --- a/coverage/html/utills/index-sort-f.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - LCOV - lcov.info - utills - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - utillsHitTotalCoverage
Test:lcov.infoLines:22100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
platform_wrapper.dart -
100.0%
-
100.0 %2 / 2-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/utills/index-sort-l.html b/coverage/html/utills/index-sort-l.html deleted file mode 100644 index d425a7b..0000000 --- a/coverage/html/utills/index-sort-l.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - LCOV - lcov.info - utills - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - utillsHitTotalCoverage
Test:lcov.infoLines:22100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
platform_wrapper.dart -
100.0%
-
100.0 %2 / 2-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/utills/index.html b/coverage/html/utills/index.html deleted file mode 100644 index 8dcc6ca..0000000 --- a/coverage/html/utills/index.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - LCOV - lcov.info - utills - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - utillsHitTotalCoverage
Test:lcov.infoLines:22100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
platform_wrapper.dart -
100.0%
-
100.0 %2 / 2-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/utills/platform_wrapper.dart.func-sort-c.html b/coverage/html/utills/platform_wrapper.dart.func-sort-c.html deleted file mode 100644 index d172493..0000000 --- a/coverage/html/utills/platform_wrapper.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - utills\platform_wrapper.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - utills\platform_wrapper.dart - platform_wrapper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:22100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/utills/platform_wrapper.dart.func.html b/coverage/html/utills/platform_wrapper.dart.func.html deleted file mode 100644 index 4cf2985..0000000 --- a/coverage/html/utills/platform_wrapper.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - utills\platform_wrapper.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - utills\platform_wrapper.dart - platform_wrapper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:22100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/html/utills/platform_wrapper.dart.gcov.html b/coverage/html/utills/platform_wrapper.dart.gcov.html deleted file mode 100644 index 98c8e3b..0000000 --- a/coverage/html/utills/platform_wrapper.dart.gcov.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - LCOV - lcov.info - utills\platform_wrapper.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - utills\platform_wrapper.dart - platform_wrapper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:22100.0 %
Date:Mon Nov 8 15:51:46 2021Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : // Copyright (c) 2019-present,  SurfStudio LLC
-       2             : //
-       3             : // Licensed under the Apache License, Version 2.0 (the "License");
-       4             : // you may not use this file except in compliance with the License.
-       5             : // You may obtain a copy of the License at
-       6             : //
-       7             : //     http://www.apache.org/licenses/LICENSE-2.0
-       8             : //
-       9             : // Unless required by applicable law or agreed to in writing, software
-      10             : // distributed under the License is distributed on an "AS IS" BASIS,
-      11             : // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-      12             : // See the License for the specific language governing permissions and
-      13             : // limitations under the License.
-      14             : 
-      15             : import 'dart:io';
-      16             : 
-      17             : /// Wrapper for Platform io.
-      18             : class PlatformWrapper {
-      19           2 :   bool get isIOS => Platform.isIOS;
-      20             : 
-      21           2 :   bool get isAndroid => Platform.isAndroid;
-      22             : }
-
-
-
- - - - -
Generated by: LCOV version 1.15.alpha0w
-
- - - diff --git a/coverage/lcov.info b/coverage/lcov.info deleted file mode 100644 index 9d987dc..0000000 --- a/coverage/lcov.info +++ /dev/null @@ -1,206 +0,0 @@ -SF:lib\utills\platform_wrapper.dart -DA:19,2 -DA:21,2 -LF:2 -LH:2 -end_of_record -SF:lib\src\cupertino_swipe_refresh.dart -DA:30,3 -DA:45,3 -DA:59,3 -DA:61,3 -DA:62,3 -DA:70,3 -DA:72,3 -DA:74,3 -DA:80,3 -DA:81,6 -DA:82,3 -DA:83,6 -DA:85,6 -DA:89,3 -DA:90,3 -DA:91,3 -DA:94,6 -DA:95,6 -DA:96,6 -DA:98,3 -DA:99,6 -DA:100,6 -DA:101,6 -DA:102,6 -DA:103,3 -DA:105,6 -DA:106,6 -DA:113,1 -DA:119,1 -DA:120,1 -DA:121,2 -DA:122,1 -DA:133,3 -DA:138,3 -DA:140,3 -DA:142,3 -DA:143,1 -DA:144,1 -DA:145,1 -DA:146,1 -DA:147,1 -DA:148,1 -DA:153,3 -DA:154,3 -DA:155,2 -DA:156,2 -LF:46 -LH:46 -end_of_record -SF:lib\src\swipe_refresh_base.dart -DA:33,4 -DA:45,2 -DA:47,4 -DA:69,4 -DA:71,4 -DA:73,8 -DA:74,6 -DA:77,20 -DA:80,4 -DA:83,22 -DA:86,4 -DA:88,8 -DA:90,4 -DA:103,2 -DA:105,2 -DA:106,4 -DA:107,4 -DA:108,4 -DA:111,2 -DA:112,4 -DA:113,2 -DA:114,2 -DA:115,2 -DA:117,4 -LF:24 -LH:24 -end_of_record -SF:lib\src\swipe_refresh_state.dart -DA:16,4 -LF:1 -LH:1 -end_of_record -SF:lib\src\material_swipe_refresh.dart -DA:27,2 -DA:42,2 -DA:56,2 -DA:57,2 -DA:62,2 -DA:68,2 -DA:71,4 -DA:72,4 -DA:73,4 -DA:74,2 -DA:75,4 -DA:76,4 -DA:77,6 -DA:78,6 -DA:79,4 -DA:83,1 -DA:84,2 -DA:85,2 -DA:86,2 -DA:87,2 -DA:88,2 -DA:90,3 -DA:95,1 -DA:97,1 -DA:98,1 -DA:99,2 -DA:100,1 -LF:27 -LH:27 -end_of_record -SF:lib\src\swipe_refresh.dart -DA:49,4 -DA:75,2 -DA:76,4 -DA:79,1 -DA:97,1 -DA:119,1 -DA:133,1 -DA:151,1 -DA:166,1 -DA:187,1 -DA:206,1 -DA:222,1 -DA:230,4 -DA:232,4 -DA:233,4 -DA:234,1 -DA:235,1 -DA:236,1 -DA:237,1 -DA:238,1 -DA:239,1 -DA:240,1 -DA:241,1 -DA:242,1 -DA:243,1 -DA:244,1 -DA:245,1 -DA:246,1 -DA:247,1 -DA:249,3 -DA:250,1 -DA:251,1 -DA:252,1 -DA:253,1 -DA:254,1 -DA:255,1 -DA:256,1 -DA:257,1 -DA:258,1 -DA:259,1 -DA:260,1 -DA:261,1 -DA:262,1 -DA:263,1 -DA:265,2 -DA:266,2 -DA:267,4 -DA:268,1 -DA:269,1 -DA:270,1 -DA:271,1 -DA:272,1 -DA:273,1 -DA:274,1 -DA:275,1 -DA:276,1 -DA:277,1 -DA:278,1 -DA:279,1 -DA:280,1 -DA:281,1 -DA:283,4 -DA:284,2 -DA:285,2 -DA:286,2 -DA:287,2 -DA:288,2 -DA:289,2 -DA:290,2 -DA:291,2 -DA:292,2 -DA:293,2 -DA:294,2 -DA:295,2 -DA:296,2 -DA:297,2 -DA:302,1 -LF:77 -LH:77 -end_of_record -SF:lib\src\swipe_refresh_style.dart -DA:16,4 -LF:1 -LH:1 -end_of_record From b7ceb46265d9f9942582be879a21e66aad56f6e9 Mon Sep 17 00:00:00 2001 From: Kristina Zotyeva Date: Wed, 8 Dec 2021 15:32:16 +0300 Subject: [PATCH 37/69] Return const constructors. --- lib/src/swipe_refresh.dart | 10 +++++----- lib/utills/platform_wrapper.dart | 2 ++ test/platform_wrapper_test.dart | 4 ++-- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/lib/src/swipe_refresh.dart b/lib/src/swipe_refresh.dart index d1655c4..b9c87ef 100644 --- a/lib/src/swipe_refresh.dart +++ b/lib/src/swipe_refresh.dart @@ -47,7 +47,7 @@ class SwipeRefresh extends StatelessWidget { final ScrollPhysics? physics; final PlatformWrapper _platform; - SwipeRefresh( + const SwipeRefresh( this.style, { required this.stateStream, required this.onRefresh, @@ -73,11 +73,11 @@ class SwipeRefresh extends StatelessWidget { CupertinoSwipeRefresh.defaultRefreshIndicatorExtent, indicatorBuilder = indicatorBuilder ?? CupertinoSliverRefreshControl.buildRefreshIndicator, - _platform = platform ?? PlatformWrapper(), + _platform = platform ?? const PlatformWrapper(), super(key: key); /// Create refresh indicator adaptive to platform. - SwipeRefresh.adaptive({ + const SwipeRefresh.adaptive({ required Stream stateStream, required VoidCallback onRefresh, List? children, @@ -117,7 +117,7 @@ class SwipeRefresh extends StatelessWidget { ); /// Create refresh indicator with Material Design style. - SwipeRefresh.material({ + const SwipeRefresh.material({ required Stream stateStream, required VoidCallback onRefresh, List? children, @@ -149,7 +149,7 @@ class SwipeRefresh extends StatelessWidget { ); /// Create refresh indicator with Cupertino style. - SwipeRefresh.cupertino({ + const SwipeRefresh.cupertino({ required Stream stateStream, required VoidCallback onRefresh, List? children, diff --git a/lib/utills/platform_wrapper.dart b/lib/utills/platform_wrapper.dart index b18879c..7e4975a 100644 --- a/lib/utills/platform_wrapper.dart +++ b/lib/utills/platform_wrapper.dart @@ -19,4 +19,6 @@ class PlatformWrapper { bool get isIOS => Platform.isIOS; bool get isAndroid => Platform.isAndroid; + + const PlatformWrapper(); } diff --git a/test/platform_wrapper_test.dart b/test/platform_wrapper_test.dart index 779f61b..c24a945 100644 --- a/test/platform_wrapper_test.dart +++ b/test/platform_wrapper_test.dart @@ -19,7 +19,7 @@ void main() { late PlatformWrapper platformWrapper; setUp(() { - platformWrapper = PlatformWrapper(); + platformWrapper = const PlatformWrapper(); }); test( @@ -33,7 +33,7 @@ void main() { test( 'Method isIOS should return false', - () { + () { final isIOS = platformWrapper.isIOS; expect(isIOS, false); From d52cd5a2b4d25d776365e95a56117244dcffc008 Mon Sep 17 00:00:00 2001 From: Kristina Zotyeva Date: Wed, 8 Dec 2021 15:39:20 +0300 Subject: [PATCH 38/69] Run flutter format . --- test/swipe_refresh_cupertino_test.dart | 2 +- test/swipe_refresh_material_test.dart | 2 +- test/test_utils.dart | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/swipe_refresh_cupertino_test.dart b/test/swipe_refresh_cupertino_test.dart index fa5a412..962aee5 100644 --- a/test/swipe_refresh_cupertino_test.dart +++ b/test/swipe_refresh_cupertino_test.dart @@ -278,7 +278,7 @@ void main() { testWidgets( 'If padding passed to the SwipeRefresh.cupertino, ' - 'SliverList should be wrapped in SliverPadding', + 'SliverList should be wrapped in SliverPadding', (tester) async { final events = []; diff --git a/test/swipe_refresh_material_test.dart b/test/swipe_refresh_material_test.dart index ab81504..ccda728 100644 --- a/test/swipe_refresh_material_test.dart +++ b/test/swipe_refresh_material_test.dart @@ -251,5 +251,5 @@ class MockOnRefreshFunction extends Mock { } class TestSliverChildListDelegate extends SliverChildListDelegate { - TestSliverChildListDelegate(List children) : super(children); + TestSliverChildListDelegate(List children) : super(children); } diff --git a/test/test_utils.dart b/test/test_utils.dart index 2ecff09..76e1fbe 100644 --- a/test/test_utils.dart +++ b/test/test_utils.dart @@ -13,5 +13,6 @@ // limitations under the License. import 'package:flutter/material.dart'; + // ignore: avoid-returning-widgets Widget makeTestableWidget(Widget widget) => MaterialApp(home: widget); From 8036a469f0c98da51da5cc78d5214cdf46ca5ff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=BE=D1=82?= =?UTF-8?q?=D1=8C=D0=B5=D0=B2?= Date: Wed, 8 Dec 2021 15:52:02 +0300 Subject: [PATCH 39/69] Release 1.0.2 --- CHANGELOG.md | 4 ++-- README.md | 34 +++++++++++++++++----------------- pubspec.yaml | 2 +- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f8d23de..823703b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,8 @@ # Changelog -## next +## 1.0.2 -*Refactoring. +* Internal improvements. ## 1.0.1 diff --git a/README.md b/README.md index c3d6f9e..4341cf8 100644 --- a/README.md +++ b/README.md @@ -33,10 +33,10 @@ Refresh indicator widget with Material Design style. ```dart SwipeRefresh.material( -stateStream: Stream(), -onRefresh: _refresh, -padding: const EdgeInsets.symmetric(vertical: 10), -children: [ ... ], + stateStream: Stream(), + onRefresh: _refresh, + padding: const EdgeInsets.symmetric(vertical: 10), + children: [ ... ], ); Future _refresh() async { @@ -51,10 +51,10 @@ Refresh indicator widget with Cupertino Design style. ```dart SwipeRefresh.cupertino( -stateStream: Stream(), -onRefresh: _refresh, -padding: const EdgeInsets.symmetric(vertical: 10), -children: [ ... ], + stateStream: Stream(), + onRefresh: _refresh, + padding: const EdgeInsets.symmetric(vertical: 10), + children: [ ... ], ); Future _refresh() async { @@ -69,10 +69,10 @@ Refresh indicator widget with adaptive to platform style. ```dart SwipeRefresh.adaptive( -stateStream: Stream(), -onRefresh: _refresh, -padding: const EdgeInsets.symmetric(vertical: 10), -children: [ ... ], + stateStream: Stream(), + onRefresh: _refresh, + padding: const EdgeInsets.symmetric(vertical: 10), + children: [ ... ], ); Future _refresh() async { @@ -87,11 +87,11 @@ Refresh indicator widget with adaptive to platform style, and with SliverChildBu ```dart SwipeRefresh.builder( -stateStream: Stream(), -onRefresh: _refresh, -padding: const EdgeInsets.symmetric(vertical: 10), -itemCount: Colors.primaries.length, -itemBuilder: (context, index) { + stateStream: Stream(), + onRefresh: _refresh, + padding: const EdgeInsets.symmetric(vertical: 10), + itemCount: Colors.primaries.length, + itemBuilder: (context, index) { return Container( ... ); diff --git a/pubspec.yaml b/pubspec.yaml index f80ed67..f0d7b50 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: swipe_refresh version: 1.0.1 -description: Widget for refresh by swipe. +description: Set of widgets provides make refresh by using pull down gesture. repository: "https://github.com/surfstudio/flutter-swipe-refresh" issue_tracker: "https://github.com/surfstudio/flutter-swipe-refresh/issues" From 5a704017fcd59037600a756fdb69390cbb68a5bf Mon Sep 17 00:00:00 2001 From: Kristina Zotyeva Date: Thu, 9 Dec 2021 12:24:46 +0300 Subject: [PATCH 40/69] Update build badge. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4341cf8..ac30c25 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Swipe Refresh -[![Build Status](https://shields.io/github/workflow/status/surfstudio/flutter-swipe-refresh/build?logo=github&logoColor=white)](https://github.com/surfstudio/flutter-swipe-refresh) +[![Build Status](https://shields.io/github/workflow/status/surfstudio/flutter-swipe-refresh/Analysis?logo=github&logoColor=white)](https://github.com/surfstudio/flutter-swipe-refresh) [![Coverage Status](https://img.shields.io/codecov/c/github/surfstudio/flutter-swipe-refresh?logo=codecov&logoColor=white)](https://app.codecov.io/gh/surfstudio/flutter-swipe-refresh) [![Pub Version](https://img.shields.io/pub/v/swipe_refresh?logo=dart&logoColor=white)](https://pub.dev/packages/swipe_refresh) [![Pub Likes](https://badgen.net/pub/likes/swipe_refresh)](https://pub.dev/packages/swipe_refresh) From 84697ab4e4126ebd64fccacb8f895fd2f1d43a09 Mon Sep 17 00:00:00 2001 From: Kristina Zotyeva Date: Mon, 13 Dec 2021 10:44:05 +0300 Subject: [PATCH 41/69] Removed unnecessary imports. --- lib/src/material_swipe_refresh.dart | 1 - lib/src/swipe_refresh.dart | 1 - test/swipe_refresh_cupertino_test.dart | 1 - test/swipe_refresh_material_test.dart | 1 - 4 files changed, 4 deletions(-) diff --git a/lib/src/material_swipe_refresh.dart b/lib/src/material_swipe_refresh.dart index b662a22..f82bec6 100644 --- a/lib/src/material_swipe_refresh.dart +++ b/lib/src/material_swipe_refresh.dart @@ -15,7 +15,6 @@ import 'dart:async'; import 'package:flutter/material.dart'; -import 'package:flutter/widgets.dart'; import 'package:swipe_refresh/src/swipe_refresh_base.dart'; import 'package:swipe_refresh/src/swipe_refresh_state.dart'; diff --git a/lib/src/swipe_refresh.dart b/lib/src/swipe_refresh.dart index b9c87ef..229afb0 100644 --- a/lib/src/swipe_refresh.dart +++ b/lib/src/swipe_refresh.dart @@ -13,7 +13,6 @@ // limitations under the License. import 'package:flutter/cupertino.dart'; -import 'package:flutter/foundation.dart'; import 'package:swipe_refresh/src/cupertino_swipe_refresh.dart'; import 'package:swipe_refresh/src/material_swipe_refresh.dart'; import 'package:swipe_refresh/src/swipe_refresh_state.dart'; diff --git a/test/swipe_refresh_cupertino_test.dart b/test/swipe_refresh_cupertino_test.dart index 962aee5..9ec5d64 100644 --- a/test/swipe_refresh_cupertino_test.dart +++ b/test/swipe_refresh_cupertino_test.dart @@ -14,7 +14,6 @@ import 'dart:async'; -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mocktail/mocktail.dart'; diff --git a/test/swipe_refresh_material_test.dart b/test/swipe_refresh_material_test.dart index ccda728..c04ef6f 100644 --- a/test/swipe_refresh_material_test.dart +++ b/test/swipe_refresh_material_test.dart @@ -15,7 +15,6 @@ import 'dart:async'; import 'package:flutter/material.dart'; -import 'package:flutter/rendering.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mocktail/mocktail.dart'; import 'package:swipe_refresh/src/swipe_refresh_base.dart'; From 6e54c4dc6e18c2fd3032d0d2d2f53c43b9d929e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=BE=D1=82?= =?UTF-8?q?=D1=8C=D0=B5=D0=B2?= Date: Mon, 13 Dec 2021 11:30:16 +0300 Subject: [PATCH 42/69] Release 1.0.2 --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index f0d7b50..c67de5b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: swipe_refresh -version: 1.0.1 +version: 1.0.2 description: Set of widgets provides make refresh by using pull down gesture. repository: "https://github.com/surfstudio/flutter-swipe-refresh" issue_tracker: "https://github.com/surfstudio/flutter-swipe-refresh/issues" From 332b136a85ce05739b33222c505dcb34b3fa965c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A2=D0=B0=D1=82=D1=8C=D1=8F=D0=BD=D0=B0=20=D0=A1=D1=83?= =?UTF-8?q?=D0=B3=D0=B8=D0=BD=D0=B0?= <39735343+internetova@users.noreply.github.com> Date: Fri, 11 Feb 2022 18:09:59 +0300 Subject: [PATCH 43/69] Ci: Workflow which add label for a new issue. --- .github/workflows/new_issues_label.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/new_issues_label.yml diff --git a/.github/workflows/new_issues_label.yml b/.github/workflows/new_issues_label.yml new file mode 100644 index 0000000..681df4b --- /dev/null +++ b/.github/workflows/new_issues_label.yml @@ -0,0 +1,22 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Label issues +on: + issues: + types: + - reopened + - opened +jobs: + label_issues: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: Label issues + uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90 + with: + add-labels: "new issues" + repo-token: ${{ secrets.SECRET_ISSUES }} From 29fb411869db0316864cd48243f8ce82ebcdb934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A2=D0=B0=D1=82=D1=8C=D1=8F=D0=BD=D0=B0=20=D0=A1=D1=83?= =?UTF-8?q?=D0=B3=D0=B8=D0=BD=D0=B0?= <39735343+internetova@users.noreply.github.com> Date: Tue, 15 Feb 2022 11:25:42 +0300 Subject: [PATCH 44/69] Chore: Bump android compileSdkVersion to 31, kotlin_version to 1.6.10 (#18) --- example/android/app/build.gradle | 2 +- example/android/build.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 28b9bf9..5ed0bd5 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -26,7 +26,7 @@ apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { - compileSdkVersion 30 + compileSdkVersion 31 sourceSets { main.java.srcDirs += 'src/main/kotlin' diff --git a/example/android/build.gradle b/example/android/build.gradle index 5588645..8c40237 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -1,5 +1,5 @@ buildscript { - ext.kotlin_version = '1.3.50' + ext.kotlin_version = '1.6.10' repositories { google() jcenter() From 1b818d2eb23f5487138db892c5417f63f645051d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D1=80=D0=B8=D1=81=D1=82=D0=B8=D0=BD=D0=B0=20=D0=97?= =?UTF-8?q?=D0=BE=D1=82=D1=8C=D0=B5=D0=B2=D0=B0?= Date: Tue, 29 Mar 2022 10:58:47 +0400 Subject: [PATCH 45/69] Chore: add github action to add "new pull request" label for pull_request. --- .github/workflows/new_pull_request_label.yml | 31 ++++++++++++++++ .../new_pull_request_main_actions.yml | 36 +++++++++++++++++++ pubspec.yaml | 2 +- test/swipe_refresh_adaptive_test.dart | 10 +++--- 4 files changed, 73 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/new_pull_request_label.yml create mode 100644 .github/workflows/new_pull_request_main_actions.yml diff --git a/.github/workflows/new_pull_request_label.yml b/.github/workflows/new_pull_request_label.yml new file mode 100644 index 0000000..5b52872 --- /dev/null +++ b/.github/workflows/new_pull_request_label.yml @@ -0,0 +1,31 @@ +# This workflow is triggered when a WIP label is added to an open pull request. +# When deleting the WIP label, the new_pull_request label is added. +# When adding a WIP label, the new_pull_request label is removed if there is one. + +name: Pull-request label tracking +on: + pull_request_target: + types: + - labeled + - unlabeled + +jobs: + label_pull_request: + if: ${{ github.event.label.name == 'WIP' }} + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - name: Add label pull request + if: "!contains(github.event.pull_request.title, 'WIP') && !contains(github.event.pull_request.labels.*.name, 'WIP') && (github.event.pull_request.draft == false)" + uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90 + with: + add-labels: "new pull request" + repo-token: ${{ secrets.SECRET_ISSUES }} + + - name: Remove label pull request + if: "contains(github.event.pull_request.title, 'WIP') || contains(github.event.pull_request.labels.*.name, 'WIP') || (github.event.pull_request.draft == true)" + uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90 + with: + remove-labels: "new pull request" + repo-token: ${{ secrets.SECRET_ISSUES }} diff --git a/.github/workflows/new_pull_request_main_actions.yml b/.github/workflows/new_pull_request_main_actions.yml new file mode 100644 index 0000000..bd6b24f --- /dev/null +++ b/.github/workflows/new_pull_request_main_actions.yml @@ -0,0 +1,36 @@ +# This workflow is triggered when when a pull request opened, edited, reopened, +# converted_to_draft and ready_for_review. +# +# There is no WIP in the title, there is no WIP label and the pull request is not a draft the +# new pull request label is added. +# If either of these is true then remove the label new pull request if there is one. + +name: Pull-request tracking +on: + pull_request_target: + types: + - opened + - edited + - reopened + - converted_to_draft + - ready_for_review + +jobs: + pull_request: + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - name: Add label pull request + if: "!contains(github.event.pull_request.title, 'WIP') && !contains(github.event.pull_request.labels.*.name, 'WIP') && (github.event.pull_request.draft == false)" + uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90 + with: + add-labels: "new pull request" + repo-token: ${{ secrets.SECRET_ISSUES }} + + - name: Remove label pull request + if: "contains(github.event.pull_request.title, 'WIP') || contains(github.event.pull_request.labels.*.name, 'WIP') || (github.event.pull_request.draft == true)" + uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90 + with: + remove-labels: "new pull request" + repo-token: ${{ secrets.SECRET_ISSUES }} \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index c67de5b..d120fc6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -12,7 +12,7 @@ dev_dependencies: flutter_test: sdk: flutter mocktail: ^0.2.0 - surf_lint_rules: ^1.0.0 + surf_lint_rules: ^1.5.0 environment: sdk: ">=2.12.0 <3.0.0" diff --git a/test/swipe_refresh_adaptive_test.dart b/test/swipe_refresh_adaptive_test.dart index 84b8fa3..a2931ce 100644 --- a/test/swipe_refresh_adaptive_test.dart +++ b/test/swipe_refresh_adaptive_test.dart @@ -23,25 +23,25 @@ import 'package:swipe_refresh/utills/platform_wrapper.dart'; import 'test_utils.dart'; void main() { - late StreamController _controller; + late StreamController controller; late Stream stream; late MockPlatformWrapper platformWrapper; setUp(() { - _controller = StreamController.broadcast(); - stream = _controller.stream; + controller = StreamController.broadcast(); + stream = controller.stream; platformWrapper = MockPlatformWrapper(); }); tearDown(() async { - await _controller.close(); + await controller.close(); }); Future _onRefresh() async { await Future.delayed(const Duration(seconds: 3)); - _controller.sink.add(SwipeRefreshState.hidden); + controller.sink.add(SwipeRefreshState.hidden); } final listColors = [ From f4705e2ffe1f60de7ec502695eae9dde59d480af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A2=D0=B0=D1=82=D1=8C=D1=8F=D0=BD=D0=B0=20=D0=A1=D1=83?= =?UTF-8?q?=D0=B3=D0=B8=D0=BD=D0=B0?= <39735343+internetova@users.noreply.github.com> Date: Mon, 25 Apr 2022 14:28:44 +0300 Subject: [PATCH 46/69] Chore: Publishing GitHub action flow * refactor: workflow -> main * refactor: Label issues * refactor: Pull-request label tracking * refactor: Pull-request tracking * feat: Publishing to pub.dev * refactor: analysis --- .github/workflows/main.yml | 29 ++++ .github/workflows/new_issues_label.yml | 12 +- .github/workflows/new_pull_request_label.yml | 20 +-- .../new_pull_request_main_actions.yml | 22 +-- .github/workflows/publish_to_pub.yml | 26 ++++ .github/workflows/workflow.yaml | 129 ------------------ 6 files changed, 65 insertions(+), 173 deletions(-) create mode 100644 .github/workflows/main.yml create mode 100644 .github/workflows/publish_to_pub.yml delete mode 100644 .github/workflows/workflow.yaml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..42a8222 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +name: "Main" + +on: + pull_request: + branches: + - main + push: + branches: + - main + tags-ignore: + - '**' + +jobs: + analysis: + uses: surfstudio/flutter-ci-workflows/.github/workflows/analysis.yml@main + + testing: + needs: analysis + uses: surfstudio/flutter-ci-workflows/.github/workflows/testing.yml@main + secrets: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + + build_android_example: + needs: analysis + uses: surfstudio/flutter-ci-workflows/.github/workflows/build_android_example.yml@main + + build_ios_example: + needs: analysis + uses: surfstudio/flutter-ci-workflows/.github/workflows/build_ios_example.yml@main diff --git a/.github/workflows/new_issues_label.yml b/.github/workflows/new_issues_label.yml index 681df4b..5319ce7 100644 --- a/.github/workflows/new_issues_label.yml +++ b/.github/workflows/new_issues_label.yml @@ -11,12 +11,6 @@ on: - opened jobs: label_issues: - runs-on: ubuntu-latest - permissions: - issues: write - steps: - - name: Label issues - uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90 - with: - add-labels: "new issues" - repo-token: ${{ secrets.SECRET_ISSUES }} + uses: surfstudio/flutter-ci-workflows/.github/workflows/new_issues_label.yml@main + secrets: + SECRET_ISSUES: ${{ secrets.SECRET_ISSUES }} diff --git a/.github/workflows/new_pull_request_label.yml b/.github/workflows/new_pull_request_label.yml index 5b52872..fb21084 100644 --- a/.github/workflows/new_pull_request_label.yml +++ b/.github/workflows/new_pull_request_label.yml @@ -12,20 +12,6 @@ on: jobs: label_pull_request: if: ${{ github.event.label.name == 'WIP' }} - runs-on: ubuntu-latest - permissions: - pull-requests: write - steps: - - name: Add label pull request - if: "!contains(github.event.pull_request.title, 'WIP') && !contains(github.event.pull_request.labels.*.name, 'WIP') && (github.event.pull_request.draft == false)" - uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90 - with: - add-labels: "new pull request" - repo-token: ${{ secrets.SECRET_ISSUES }} - - - name: Remove label pull request - if: "contains(github.event.pull_request.title, 'WIP') || contains(github.event.pull_request.labels.*.name, 'WIP') || (github.event.pull_request.draft == true)" - uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90 - with: - remove-labels: "new pull request" - repo-token: ${{ secrets.SECRET_ISSUES }} + uses: surfstudio/flutter-ci-workflows/.github/workflows/new_pull_request_label.yml@main + secrets: + SECRET_ISSUES: ${{ secrets.SECRET_ISSUES }} diff --git a/.github/workflows/new_pull_request_main_actions.yml b/.github/workflows/new_pull_request_main_actions.yml index bd6b24f..ccf208e 100644 --- a/.github/workflows/new_pull_request_main_actions.yml +++ b/.github/workflows/new_pull_request_main_actions.yml @@ -1,4 +1,4 @@ -# This workflow is triggered when when a pull request opened, edited, reopened, +# This workflow is triggered when a pull request opened, edited, reopened, # converted_to_draft and ready_for_review. # # There is no WIP in the title, there is no WIP label and the pull request is not a draft the @@ -17,20 +17,6 @@ on: jobs: pull_request: - runs-on: ubuntu-latest - permissions: - pull-requests: write - steps: - - name: Add label pull request - if: "!contains(github.event.pull_request.title, 'WIP') && !contains(github.event.pull_request.labels.*.name, 'WIP') && (github.event.pull_request.draft == false)" - uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90 - with: - add-labels: "new pull request" - repo-token: ${{ secrets.SECRET_ISSUES }} - - - name: Remove label pull request - if: "contains(github.event.pull_request.title, 'WIP') || contains(github.event.pull_request.labels.*.name, 'WIP') || (github.event.pull_request.draft == true)" - uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90 - with: - remove-labels: "new pull request" - repo-token: ${{ secrets.SECRET_ISSUES }} \ No newline at end of file + uses: surfstudio/flutter-ci-workflows/.github/workflows/new_pull_request_label.yml@main + secrets: + SECRET_ISSUES: ${{ secrets.SECRET_ISSUES }} \ No newline at end of file diff --git a/.github/workflows/publish_to_pub.yml b/.github/workflows/publish_to_pub.yml new file mode 100644 index 0000000..f4a0247 --- /dev/null +++ b/.github/workflows/publish_to_pub.yml @@ -0,0 +1,26 @@ +name: "Publishing" + +on: + push: + tags: + - v* + +jobs: + analysis: + uses: surfstudio/flutter-ci-workflows/.github/workflows/analysis.yml@main + + testing: + needs: analysis + uses: surfstudio/flutter-ci-workflows/.github/workflows/testing.yml@main + secrets: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + + package-publishing: + needs: [ analysis, testing ] + uses: surfstudio/flutter-ci-workflows/.github/workflows/publish_to_pub.yml@main + with: + PANA_TOTAL: '100' + secrets: + PUB_CREDENTIAL_JSON: ${{ secrets.PUB_CREDENTIAL_JSON }} + PUB_OAUTH_ACCESS_TOKEN: ${{ secrets.PUB_OAUTH_ACCESS_TOKEN }} + PUB_OAUTH_REFRESH_TOKEN: ${{ secrets.PUB_OAUTH_REFRESH_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml deleted file mode 100644 index 40c90c3..0000000 --- a/.github/workflows/workflow.yaml +++ /dev/null @@ -1,129 +0,0 @@ -name: "Analysis" - -on: - pull_request: - branches: - - main - push: - branches: - - main - -jobs: - analysis: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Install Flutter - uses: subosito/flutter-action@v1 - with: - channel: "stable" - - - name: Content - id: check_license - uses: andstor/file-existence-action@v1 - with: - files: "LICENSE, README.md, example, CHANGELOG.md, CONTRIBUTING.md" - - - name: File exists - if: steps.check_files.outputs.files_exists == 'true' - run: echo Content is ok! - - - name: Check Description - run: echo | grep -q Description README.md ; echo $? - - - name: Check Example - run: echo | grep -q Example README.md ; echo $? - - - name: Check Installation - run: echo | grep -q Installation README.md ; echo $? - - - name: Install dependencies - run: flutter pub get - - - name: Run dependency validator - run: | - dart pub global activate dependency_validator - dart pub global run dependency_validator:dependency_validator - - name: Run analyzer - run: flutter analyze --fatal-warnings --fatal-infos . - - - name: Run formatter - run: flutter format --set-exit-if-changed . - - - name: Run package analyzer - uses: axel-op/dart-package-analyzer@v3 - with: - githubToken: ${{ secrets.GITHUB_TOKEN }} - - testing: - needs: analysis - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Install Flutter - uses: subosito/flutter-action@v1 - with: - channel: "stable" - - - name: Install dependencies - run: flutter pub get - - - name: Run tests - env: - CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}} - if: success() - run: | - flutter test --coverage - bash <(curl -s https://codecov.io/bash) -f coverage/lcov.info - - build_android_example: - needs: analysis - runs-on: ubuntu-latest - - steps: - # Setup Java environment in order to build the Android app. - - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 - with: - java-version: "12.x" - - - name: Install Flutter - uses: subosito/flutter-action@v1 - with: - channel: "stable" - - - name: Install dependencies - run: flutter pub get - - - name: Build Android - run: | - cd example - flutter pub get - flutter build apk - - build_ios_example: - needs: analysis - runs-on: macos-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Install Flutter - uses: subosito/flutter-action@v1 - with: - channel: "stable" - - - name: Install dependencies - run: flutter pub get - - - name: Build iOS - run: | - cd example - flutter pub get - flutter build ios --release --no-codesign From f83c222d1d75b521877e045464e3fb252e513463 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D1=80=D0=B8=D1=81=D1=82=D0=B8=D0=BD=D0=B0=20=D0=97?= =?UTF-8?q?=D0=BE=D1=82=D1=8C=D0=B5=D0=B2=D0=B0?= Date: Thu, 12 May 2022 14:00:20 +0300 Subject: [PATCH 47/69] Chore: add github action to monitors the correctness of the issue. (#23) --- .github/workflows/check_issue.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/check_issue.yaml diff --git a/.github/workflows/check_issue.yaml b/.github/workflows/check_issue.yaml new file mode 100644 index 0000000..a2b5746 --- /dev/null +++ b/.github/workflows/check_issue.yaml @@ -0,0 +1,15 @@ +name: "Checking issue for correctness of described" + +on: + issues: + types: + - reopened + - opened + +jobs: + check-issue: + uses: surfstudio/flutter-ci-workflows/.github/workflows/check_issues.yaml@main + with: + REPO_PATH: 'https://github.com/surfstudio/flutter-swipe-refresh/issues/new/choose' + ISSUE_TITLE: ${{ github.event.issue.title }} + ISSUE_BODY: ${{ github.event.issue.body }} From 514dd46d6cfd88589fe11b19c6633f010db3f7ab Mon Sep 17 00:00:00 2001 From: Dmitry Shevchenko Date: Fri, 12 Aug 2022 16:19:30 +0300 Subject: [PATCH 48/69] feat(platform_wrapper): add web support Platform -> TargetPlatform (#24) * feat(platform_wrapper): add web support Platform -> TargetPlatform * chore(test): update test --- example/web/favicon.png | Bin 0 -> 917 bytes example/web/icons/Icon-192.png | Bin 0 -> 5292 bytes example/web/icons/Icon-512.png | Bin 0 -> 8252 bytes example/web/icons/Icon-maskable-192.png | Bin 0 -> 5594 bytes example/web/icons/Icon-maskable-512.png | Bin 0 -> 20998 bytes example/web/index.html | 58 ++++++++++++++++++++++++ example/web/manifest.json | 35 ++++++++++++++ lib/utills/platform_wrapper.dart | 6 +-- test/platform_wrapper_test.dart | 11 ++++- 9 files changed, 105 insertions(+), 5 deletions(-) create mode 100644 example/web/favicon.png create mode 100644 example/web/icons/Icon-192.png create mode 100644 example/web/icons/Icon-512.png create mode 100644 example/web/icons/Icon-maskable-192.png create mode 100644 example/web/icons/Icon-maskable-512.png create mode 100644 example/web/index.html create mode 100644 example/web/manifest.json diff --git a/example/web/favicon.png b/example/web/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..8aaa46ac1ae21512746f852a42ba87e4165dfdd1 GIT binary patch literal 917 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|I14-?iy0X7 zltGxWVyS%@P(fs7NJL45ua8x7ey(0(N`6wRUPW#JP&EUCO@$SZnVVXYs8ErclUHn2 zVXFjIVFhG^g!Ppaz)DK8ZIvQ?0~DO|i&7O#^-S~(l1AfjnEK zjFOT9D}DX)@^Za$W4-*MbbUihOG|wNBYh(yU7!lx;>x^|#0uTKVr7USFmqf|i<65o z3raHc^AtelCMM;Vme?vOfh>Xph&xL%(-1c06+^uR^q@XSM&D4+Kp$>4P^%3{)XKjo zGZknv$b36P8?Z_gF{nK@`XI}Z90TzwSQO}0J1!f2c(B=V`5aP@1P1a|PZ!4!3&Gl8 zTYqUsf!gYFyJnXpu0!n&N*SYAX-%d(5gVjrHJWqXQshj@!Zm{!01WsQrH~9=kTxW#6SvuapgMqt>$=j#%eyGrQzr zP{L-3gsMA^$I1&gsBAEL+vxi1*Igl=8#8`5?A-T5=z-sk46WA1IUT)AIZHx1rdUrf zVJrJn<74DDw`j)Ki#gt}mIT-Q`XRa2-jQXQoI%w`nb|XblvzK${ZzlV)m-XcwC(od z71_OEC5Bt9GEXosOXaPTYOia#R4ID2TiU~`zVMl08TV_C%DnU4^+HE>9(CE4D6?Fz oujB08i7adh9xk7*FX66dWH6F5TM;?E2b5PlUHx3vIVCg!0Dx9vYXATM literal 0 HcmV?d00001 diff --git a/example/web/icons/Icon-192.png b/example/web/icons/Icon-192.png new file mode 100644 index 0000000000000000000000000000000000000000..b749bfef07473333cf1dd31e9eed89862a5d52aa GIT binary patch literal 5292 zcmZ`-2T+sGz6~)*FVZ`aW+(v>MIm&M-g^@e2u-B-DoB?qO+b1Tq<5uCCv>ESfRum& zp%X;f!~1{tzL__3=gjVJ=j=J>+nMj%ncXj1Q(b|Ckbw{Y0FWpt%4y%$uD=Z*c-x~o zE;IoE;xa#7Ll5nj-e4CuXB&G*IM~D21rCP$*xLXAK8rIMCSHuSu%bL&S3)8YI~vyp@KBu9Ph7R_pvKQ@xv>NQ`dZp(u{Z8K3yOB zn7-AR+d2JkW)KiGx0hosml;+eCXp6+w%@STjFY*CJ?udJ64&{BCbuebcuH;}(($@@ znNlgBA@ZXB)mcl9nbX#F!f_5Z=W>0kh|UVWnf!At4V*LQP%*gPdCXd6P@J4Td;!Ur z<2ZLmwr(NG`u#gDEMP19UcSzRTL@HsK+PnIXbVBT@oHm53DZr?~V(0{rsalAfwgo zEh=GviaqkF;}F_5-yA!1u3!gxaR&Mj)hLuj5Q-N-@Lra{%<4ONja8pycD90&>yMB` zchhd>0CsH`^|&TstH-8+R`CfoWqmTTF_0?zDOY`E`b)cVi!$4xA@oO;SyOjJyP^_j zx^@Gdf+w|FW@DMdOi8=4+LJl$#@R&&=UM`)G!y%6ZzQLoSL%*KE8IO0~&5XYR9 z&N)?goEiWA(YoRfT{06&D6Yuu@Qt&XVbuW@COb;>SP9~aRc+z`m`80p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&-8`;#RDcZyk*+RPkn_r8?Ak@agHiSp*qFNX)&i21HE?yuZ;-C<3C zwJGd1lx5UzViP7sZJ&|LqH*mryb}y|%AOw+v)yc`qM)03qyyrqhX?ub`Cjwx2PrR! z)_z>5*!*$x1=Qa-0uE7jy0z`>|Ni#X+uV|%_81F7)b+nf%iz=`fF4g5UfHS_?PHbr zB;0$bK@=di?f`dS(j{l3-tSCfp~zUuva+=EWxJcRfp(<$@vd(GigM&~vaYZ0c#BTs z3ijkxMl=vw5AS&DcXQ%eeKt!uKvh2l3W?&3=dBHU=Gz?O!40S&&~ei2vg**c$o;i89~6DVns zG>9a*`k5)NI9|?W!@9>rzJ;9EJ=YlJTx1r1BA?H`LWijk(rTax9(OAu;q4_wTj-yj z1%W4GW&K4T=uEGb+E!>W0SD_C0RR91 literal 0 HcmV?d00001 diff --git a/example/web/icons/Icon-512.png b/example/web/icons/Icon-512.png new file mode 100644 index 0000000000000000000000000000000000000000..88cfd48dff1169879ba46840804b412fe02fefd6 GIT binary patch literal 8252 zcmd5=2T+s!lYZ%-(h(2@5fr2dC?F^$C=i-}R6$UX8af(!je;W5yC_|HmujSgN*6?W z3knF*TL1$|?oD*=zPbBVex*RUIKsL<(&Rj9%^UD2IK3W?2j>D?eWQgvS-HLymHo9%~|N2Q{~j za?*X-{b9JRowv_*Mh|;*-kPFn>PI;r<#kFaxFqbn?aq|PduQg=2Q;~Qc}#z)_T%x9 zE|0!a70`58wjREmAH38H1)#gof)U3g9FZ^ zF7&-0^Hy{4XHWLoC*hOG(dg~2g6&?-wqcpf{ z&3=o8vw7lMi22jCG9RQbv8H}`+}9^zSk`nlR8?Z&G2dlDy$4#+WOlg;VHqzuE=fM@ z?OI6HEJH4&tA?FVG}9>jAnq_^tlw8NbjNhfqk2rQr?h(F&WiKy03Sn=-;ZJRh~JrD zbt)zLbnabttEZ>zUiu`N*u4sfQaLE8-WDn@tHp50uD(^r-}UsUUu)`!Rl1PozAc!a z?uj|2QDQ%oV-jxUJmJyc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xUHMVqfB;(f?OPtMnAZ#rm5q5mh;a2f_si2_ z3oXWB?{NF(JtkAn6F(O{z@b76OIqMC$&oJ_&S|YbFJ*)3qVX_uNf5b8(!vGX19hsG z(OP>RmZp29KH9Ge2kKjKigUmOe^K_!UXP`von)PR8Qz$%=EmOB9xS(ZxE_tnyzo}7 z=6~$~9k0M~v}`w={AeqF?_)9q{m8K#6M{a&(;u;O41j)I$^T?lx5(zlebpY@NT&#N zR+1bB)-1-xj}R8uwqwf=iP1GbxBjneCC%UrSdSxK1vM^i9;bUkS#iRZw2H>rS<2<$ zNT3|sDH>{tXb=zq7XZi*K?#Zsa1h1{h5!Tq_YbKFm_*=A5-<~j63he;4`77!|LBlo zR^~tR3yxcU=gDFbshyF6>o0bdp$qmHS7D}m3;^QZq9kBBU|9$N-~oU?G5;jyFR7>z hN`IR97YZXIo@y!QgFWddJ3|0`sjFx!m))><{BI=FK%f8s literal 0 HcmV?d00001 diff --git a/example/web/icons/Icon-maskable-192.png b/example/web/icons/Icon-maskable-192.png new file mode 100644 index 0000000000000000000000000000000000000000..eb9b4d76e525556d5d89141648c724331630325d GIT binary patch literal 5594 zcmdT|`#%%j|KDb2V@0DPm$^(Lx5}lO%Yv(=e*7hl@QqKS50#~#^IQPxBmuh|i9sXnt4ch@VT0F7% zMtrs@KWIOo+QV@lSs66A>2pz6-`9Jk=0vv&u?)^F@HZ)-6HT=B7LF;rdj zskUyBfbojcX#CS>WrIWo9D=DIwcXM8=I5D{SGf$~=gh-$LwY?*)cD%38%sCc?5OsX z-XfkyL-1`VavZ?>(pI-xp-kYq=1hsnyP^TLb%0vKRSo^~r{x?ISLY1i7KjSp z*0h&jG(Rkkq2+G_6eS>n&6>&Xk+ngOMcYrk<8KrukQHzfx675^^s$~<@d$9X{VBbg z2Fd4Z%g`!-P}d#`?B4#S-9x*eNlOVRnDrn#jY@~$jfQ-~3Od;A;x-BI1BEDdvr`pI z#D)d)!2_`GiZOUu1crb!hqH=ezs0qk<_xDm_Kkw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hUN4tGMLCzDzPqY$~`l<47{+l<{FZ$L6(>J)|}!bi<)| zE35dl{a2)&leQ@LlDxLQOfUDS`;+ZQ4ozrleQwaR-K|@9T{#hB5Z^t#8 zC-d_G;B4;F#8A2EBL58s$zF-=SCr`P#z zNCTnHF&|X@q>SkAoYu>&s9v@zCpv9lLSH-UZzfhJh`EZA{X#%nqw@@aW^vPcfQrlPs(qQxmC|4tp^&sHy!H!2FH5eC{M@g;ElWNzlb-+ zxpfc0m4<}L){4|RZ>KReag2j%Ot_UKkgpJN!7Y_y3;Ssz{9 z!K3isRtaFtQII5^6}cm9RZd5nTp9psk&u1C(BY`(_tolBwzV_@0F*m%3G%Y?2utyS zY`xM0iDRT)yTyYukFeGQ&W@ReM+ADG1xu@ruq&^GK35`+2r}b^V!m1(VgH|QhIPDE X>c!)3PgKfL&lX^$Z>Cpu&6)6jvi^Z! literal 0 HcmV?d00001 diff --git a/example/web/icons/Icon-maskable-512.png b/example/web/icons/Icon-maskable-512.png new file mode 100644 index 0000000000000000000000000000000000000000..d69c56691fbdb0b7efa65097c7cc1edac12a6d3e GIT binary patch literal 20998 zcmeFZ_gj-)&^4Nb2tlbLMU<{!p(#yjqEe+=0IA_oih%ScH9@5#MNp&}Y#;;(h=A0@ zh7{>lT2MkSQ344eAvrhici!td|HJuyvJm#Y_w1Q9Yu3!26dNlO-oxUDK_C#XnW^Co z5C{VN6#{~B0)K2j7}*1Xq(Nqemv23A-6&=ZpEijkVnSwVGqLv40?n0=p;k3-U5e5+ z+z3>aS`u9DS=!wg8ROu?X4TFoW6CFLL&{GzoVT)ldhLekLM|+j3tIxRd|*5=c{=s&*vfPdBr(Fyj(v@%eQj1Soy7m4^@VRl1~@-PV7y+c!xz$8436WBn$t{=}mEdK#k`aystimGgI{(IBx$!pAwFoE9Y`^t^;> zKAD)C(Dl^s%`?q5$P|fZf8Xymrtu^Pv(7D`rn>Z-w$Ahs!z9!94WNVxrJuXfHAaxg zC6s@|Z1$7R$(!#t%Jb{{s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2b#iaazCv;|?(W-q}$o&Y}Q5d@BRk^jL7#{kbCK zSgkyu;=DV+or2)AxCBgq-nj5=@n^`%T#V+xBGEkW4lCqrE)LMv#f;AvD__cQ@Eg3`~x| zW+h9mofSXCq5|M)9|ez(#X?-sxB%Go8};sJ?2abp(Y!lyi>k)|{M*Z$c{e1-K4ky` MPgg&ebxsLQ025IeI{*Lx literal 0 HcmV?d00001 diff --git a/example/web/index.html b/example/web/index.html new file mode 100644 index 0000000..41b3bc3 --- /dev/null +++ b/example/web/index.html @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + example + + + + + + + + + + diff --git a/example/web/manifest.json b/example/web/manifest.json new file mode 100644 index 0000000..096edf8 --- /dev/null +++ b/example/web/manifest.json @@ -0,0 +1,35 @@ +{ + "name": "example", + "short_name": "example", + "start_url": ".", + "display": "standalone", + "background_color": "#0175C2", + "theme_color": "#0175C2", + "description": "A new Flutter project.", + "orientation": "portrait-primary", + "prefer_related_applications": false, + "icons": [ + { + "src": "icons/Icon-192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "icons/Icon-512.png", + "sizes": "512x512", + "type": "image/png" + }, + { + "src": "icons/Icon-maskable-192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "icons/Icon-maskable-512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ] +} diff --git a/lib/utills/platform_wrapper.dart b/lib/utills/platform_wrapper.dart index 7e4975a..3530af4 100644 --- a/lib/utills/platform_wrapper.dart +++ b/lib/utills/platform_wrapper.dart @@ -12,13 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. -import 'dart:io'; +import 'package:flutter/foundation.dart'; /// Wrapper for Platform io. class PlatformWrapper { - bool get isIOS => Platform.isIOS; + bool get isIOS => defaultTargetPlatform == TargetPlatform.iOS; - bool get isAndroid => Platform.isAndroid; + bool get isAndroid => defaultTargetPlatform == TargetPlatform.android; const PlatformWrapper(); } diff --git a/test/platform_wrapper_test.dart b/test/platform_wrapper_test.dart index c24a945..ce3d22a 100644 --- a/test/platform_wrapper_test.dart +++ b/test/platform_wrapper_test.dart @@ -23,11 +23,18 @@ void main() { }); test( - 'Method isAndroid should return false', + 'Method isAndroid should return true', () { final isAndroid = platformWrapper.isAndroid; - expect(isAndroid, false); + // because the target flutter checks the test environment + // and by default outputs the platform android + // assert(() { + // if (Platform.environment.containsKey('FLUTTER_TEST')) + // result = platform.TargetPlatform.android; + // return true; + // }()); + expect(isAndroid, true); }, ); From 36fd61b780696577e11d527333ded7c41845ef57 Mon Sep 17 00:00:00 2001 From: Vitaliy Podushkin Date: Fri, 21 Jul 2023 13:31:37 +0700 Subject: [PATCH 49/69] feat: Added modern workflow for SurfGear packages (#27) * feat(fvm): added fvm * fix(fvm): fix gitgnore * feat(analyze): updated lint rules & fixed some lints * feat(workflow): updated workflow * fix(ci): added fvm dependency for step * fix(workflow): Fix publish workflow --------- Co-authored-by: Maxim Sysoev --- .fvm/fvm_config.json | 4 ++++ .github/workflows/main.yml | 33 +++++++++++++++++++++++---- .github/workflows/publish_to_pub.yml | 20 +++++++++++++++- .gitignore | 1 + example/.fvm/fvm_config.json | 4 ++++ example/.gitignore | 1 + example/lib/main.dart | 2 ++ example/pubspec.yaml | 2 +- lib/src/material_swipe_refresh.dart | 2 ++ pubspec.yaml | 2 +- test/swipe_refresh_adaptive_test.dart | 8 +++---- test/swipe_refresh_builder_test.dart | 4 ++-- 12 files changed, 70 insertions(+), 13 deletions(-) create mode 100644 .fvm/fvm_config.json create mode 100644 example/.fvm/fvm_config.json diff --git a/.fvm/fvm_config.json b/.fvm/fvm_config.json new file mode 100644 index 0000000..6e3d57e --- /dev/null +++ b/.fvm/fvm_config.json @@ -0,0 +1,4 @@ +{ + "flutterSdkVersion": "3.7.6", + "flavors": {} +} \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 42a8222..0953778 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,26 +4,51 @@ on: pull_request: branches: - main + - dev push: branches: - main + - dev tags-ignore: - - '**' + - "**" jobs: + get_fvm_version: + outputs: + flutter_version: ${{ steps.fvm_version.outputs.flutterSdkVersion }} + name: "Get Flutter version from FVM" + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - id: fvm_version + uses: zoexx/github-action-json-file-properties@release + with: + file_path: ".fvm/fvm_config.json" + analysis: + needs: get_fvm_version uses: surfstudio/flutter-ci-workflows/.github/workflows/analysis.yml@main + with: + flutter-version: ${{ needs.get_fvm_version.outputs.flutter_version }} testing: - needs: analysis + needs: [analysis, get_fvm_version] uses: surfstudio/flutter-ci-workflows/.github/workflows/testing.yml@main + with: + flutter-version: ${{ needs.get_fvm_version.outputs.flutter_version }} secrets: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} build_android_example: - needs: analysis + needs: [analysis, get_fvm_version] uses: surfstudio/flutter-ci-workflows/.github/workflows/build_android_example.yml@main + with: + flutter-version: ${{ needs.get_fvm_version.outputs.flutter_version }} build_ios_example: - needs: analysis + needs: [analysis, get_fvm_version] uses: surfstudio/flutter-ci-workflows/.github/workflows/build_ios_example.yml@main + with: + flutter-version: ${{ needs.get_fvm_version.outputs.flutter_version }} diff --git a/.github/workflows/publish_to_pub.yml b/.github/workflows/publish_to_pub.yml index f4a0247..6385757 100644 --- a/.github/workflows/publish_to_pub.yml +++ b/.github/workflows/publish_to_pub.yml @@ -6,13 +6,31 @@ on: - v* jobs: + get_fvm_version: + outputs: + flutter_version: ${{ steps.fvm_version.outputs.flutterSdkVersion }} + name: "Get Flutter version from FVM" + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - id: fvm_version + uses: zoexx/github-action-json-file-properties@release + with: + file_path: ".fvm/fvm_config.json" + analysis: + needs: get_fvm_version uses: surfstudio/flutter-ci-workflows/.github/workflows/analysis.yml@main + with: + flutter-version: ${{ needs.get_fvm_version.outputs.flutter_version }} testing: - needs: analysis + needs: [get_fvm_version, analysis] uses: surfstudio/flutter-ci-workflows/.github/workflows/testing.yml@main secrets: + flutter-version: ${{ needs.get_fvm_version.outputs.flutter_version }} CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} package-publishing: diff --git a/.gitignore b/.gitignore index 761d64c..99ddad1 100644 --- a/.gitignore +++ b/.gitignore @@ -31,6 +31,7 @@ .pub-cache/ .pub/ build/ +.fvm/flutter_sdk # Android related **/android/**/gradle-wrapper.jar diff --git a/example/.fvm/fvm_config.json b/example/.fvm/fvm_config.json new file mode 100644 index 0000000..6e3d57e --- /dev/null +++ b/example/.fvm/fvm_config.json @@ -0,0 +1,4 @@ +{ + "flutterSdkVersion": "3.7.6", + "flavors": {} +} \ No newline at end of file diff --git a/example/.gitignore b/example/.gitignore index 761d64c..99ddad1 100644 --- a/example/.gitignore +++ b/example/.gitignore @@ -31,6 +31,7 @@ .pub-cache/ .pub/ build/ +.fvm/flutter_sdk # Android related **/android/**/gradle-wrapper.jar diff --git a/example/lib/main.dart b/example/lib/main.dart index b97a979..949575b 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// ignore_for_file: library_private_types_in_public_api + import 'dart:async'; import 'package:flutter/material.dart'; diff --git a/example/pubspec.yaml b/example/pubspec.yaml index d54adee..9978d26 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -14,7 +14,7 @@ dependencies: path: ../ dev_dependencies: - surf_lint_rules: ^1.0.0 + surf_lint_rules: ^2.0.0 flutter: uses-material-design: true diff --git a/lib/src/material_swipe_refresh.dart b/lib/src/material_swipe_refresh.dart index f82bec6..4a9fae5 100644 --- a/lib/src/material_swipe_refresh.dart +++ b/lib/src/material_swipe_refresh.dart @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// ignore_for_file: library_private_types_in_public_api + import 'dart:async'; import 'package:flutter/material.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index d120fc6..e35cb6c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -12,7 +12,7 @@ dev_dependencies: flutter_test: sdk: flutter mocktail: ^0.2.0 - surf_lint_rules: ^1.5.0 + surf_lint_rules: ^2.0.0 environment: sdk: ">=2.12.0 <3.0.0" diff --git a/test/swipe_refresh_adaptive_test.dart b/test/swipe_refresh_adaptive_test.dart index a2931ce..3ce3709 100644 --- a/test/swipe_refresh_adaptive_test.dart +++ b/test/swipe_refresh_adaptive_test.dart @@ -38,7 +38,7 @@ void main() { await controller.close(); }); - Future _onRefresh() async { + Future onRefresh() async { await Future.delayed(const Duration(seconds: 3)); controller.sink.add(SwipeRefreshState.hidden); @@ -60,7 +60,7 @@ void main() { final adaptiveSwipeRefresh = makeTestableWidget( SwipeRefresh.adaptive( stateStream: stream, - onRefresh: _onRefresh, + onRefresh: onRefresh, children: listColors .map( (e) => Container( @@ -88,7 +88,7 @@ void main() { final adaptiveSwipeRefresh = makeTestableWidget( SwipeRefresh.adaptive( stateStream: stream, - onRefresh: _onRefresh, + onRefresh: onRefresh, children: listColors .map( (e) => Container( @@ -117,7 +117,7 @@ void main() { final adaptiveSwipeRefresh = makeTestableWidget( SwipeRefresh.adaptive( stateStream: stream, - onRefresh: _onRefresh, + onRefresh: onRefresh, children: listColors .map( (e) => Container( diff --git a/test/swipe_refresh_builder_test.dart b/test/swipe_refresh_builder_test.dart index 663840c..cf8bbee 100644 --- a/test/swipe_refresh_builder_test.dart +++ b/test/swipe_refresh_builder_test.dart @@ -39,7 +39,7 @@ void main() { await controller.close(); }); - Future _onRefresh() async { + Future onRefresh() async { await Future.delayed(const Duration(seconds: 3)); controller.sink.add(SwipeRefreshState.hidden); @@ -61,7 +61,7 @@ void main() { final testWidget = makeTestableWidget( SwipeRefresh.builder( stateStream: stream, - onRefresh: _onRefresh, + onRefresh: onRefresh, itemCount: listColors.length, itemBuilder: (_, index) => Container( color: listColors[index], From b215b2baf7db0be511987e57b3b5b6b671259e4e Mon Sep 17 00:00:00 2001 From: DmitrDomrachev Date: Tue, 13 Feb 2024 10:10:03 +0300 Subject: [PATCH 50/69] chore: added a list of supported platforms --- pubspec.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pubspec.yaml b/pubspec.yaml index e35cb6c..ec4bb54 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -18,3 +18,7 @@ environment: sdk: ">=2.12.0 <3.0.0" flutter: + +platforms: + android: + ios: From 69ed7eed6abfaf67273463125165b0daf9c63409 Mon Sep 17 00:00:00 2001 From: DmitrDomrachev Date: Tue, 13 Feb 2024 22:45:12 +0300 Subject: [PATCH 51/69] fix: ScrollController initializations moved form constructor --- lib/src/cupertino_swipe_refresh.dart | 34 +++++++++--------- lib/src/material_swipe_refresh.dart | 19 +++++----- lib/src/swipe_refresh_base.dart | 52 +++++++++++++--------------- 3 files changed, 50 insertions(+), 55 deletions(-) diff --git a/lib/src/cupertino_swipe_refresh.dart b/lib/src/cupertino_swipe_refresh.dart index f4e382e..30776a3 100644 --- a/lib/src/cupertino_swipe_refresh.dart +++ b/lib/src/cupertino_swipe_refresh.dart @@ -53,18 +53,18 @@ class CupertinoSwipeRefresh extends SwipeRefreshBase { const CupertinoSwipeRefresh({ required Stream stateStream, required VoidCallback onRefresh, - Key? key, - SliverChildDelegate? childrenDelegate, + this.refreshTriggerPullDistance = defaultRefreshTriggerPullDistance, + this.refreshIndicatorExtent = defaultRefreshIndicatorExtent, + this.indicatorBuilder = CupertinoSliverRefreshControl.buildRefreshIndicator, List? children, + SliverChildDelegate? childrenDelegate, SwipeRefreshState? initState, EdgeInsets? padding, ScrollController? scrollController, bool shrinkWrap = false, - this.refreshTriggerPullDistance = defaultRefreshTriggerPullDistance, - this.refreshIndicatorExtent = defaultRefreshIndicatorExtent, - this.indicatorBuilder = CupertinoSliverRefreshControl.buildRefreshIndicator, ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior, ScrollPhysics? physics, + Key? key, }) : super( key: key, children: children, @@ -72,27 +72,25 @@ class CupertinoSwipeRefresh extends SwipeRefreshBase { stateStream: stateStream, initState: initState, onRefresh: onRefresh, - padding: padding, scrollController: scrollController, + padding: padding, shrinkWrap: shrinkWrap, keyboardDismissBehavior: keyboardDismissBehavior, physics: physics, ); @override - // ignore: no_logic_in_create_state - SwipeRefreshBaseState createState() => _CupertinoSwipeRefreshState( - scrollController, - ); + SwipeRefreshBaseState createState() => _CupertinoSwipeRefreshState(); } -class _CupertinoSwipeRefreshState - extends SwipeRefreshBaseState { - final ScrollController _scrollController; +class _CupertinoSwipeRefreshState extends SwipeRefreshBaseState { + late final ScrollController _scrollController; - _CupertinoSwipeRefreshState( - ScrollController? scrollController, - ) : _scrollController = scrollController ?? ScrollController(); + @override + void initState() { + super.initState(); + _scrollController = widget.scrollController ?? ScrollController(); + } @override Widget buildRefresher( @@ -103,8 +101,8 @@ class _CupertinoSwipeRefreshState return CustomScrollView( shrinkWrap: widget.shrinkWrap, controller: _scrollController, - keyboardDismissBehavior: widget.keyboardDismissBehavior ?? - ScrollViewKeyboardDismissBehavior.onDrag, + keyboardDismissBehavior: + widget.keyboardDismissBehavior ?? ScrollViewKeyboardDismissBehavior.onDrag, physics: widget.physics == null ? const BouncingScrollPhysics( parent: AlwaysScrollableScrollPhysics(), diff --git a/lib/src/material_swipe_refresh.dart b/lib/src/material_swipe_refresh.dart index 4a9fae5..d32a7f1 100644 --- a/lib/src/material_swipe_refresh.dart +++ b/lib/src/material_swipe_refresh.dart @@ -52,18 +52,18 @@ class MaterialSwipeRefresh extends SwipeRefreshBase { const MaterialSwipeRefresh({ required Stream stateStream, required VoidCallback onRefresh, - Key? key, this.indicatorColor, List? children, SliverChildDelegate? childrenDelegate, SwipeRefreshState? initState, Color? backgroundColor, - ScrollController? scrollController, EdgeInsets? padding, + ScrollController? scrollController, bool shrinkWrap = false, ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior, ScrollPhysics? physics, - }) : backgroundColor = backgroundColor ?? const Color(0xFFFFFFFF), + Key? key, + }) : backgroundColor = backgroundColor ?? Colors.white, super( key: key, children: children, @@ -79,11 +79,10 @@ class MaterialSwipeRefresh extends SwipeRefreshBase { ); @override - _MaterialSwipeRefreshState createState() => _MaterialSwipeRefreshState(); + SwipeRefreshBaseState createState() => _MaterialSwipeRefreshState(); } -class _MaterialSwipeRefreshState - extends SwipeRefreshBaseState { +class _MaterialSwipeRefreshState extends SwipeRefreshBaseState { @override Widget buildRefresher( Key key, @@ -101,8 +100,8 @@ class _MaterialSwipeRefreshState padding: widget.padding, controller: widget.scrollController ?? ScrollController(), physics: AlwaysScrollableScrollPhysics(parent: widget.physics), - keyboardDismissBehavior: widget.keyboardDismissBehavior ?? - ScrollViewKeyboardDismissBehavior.manual, + keyboardDismissBehavior: + widget.keyboardDismissBehavior ?? ScrollViewKeyboardDismissBehavior.manual, children: children, ) : ListView.custom( @@ -110,8 +109,8 @@ class _MaterialSwipeRefreshState padding: widget.padding, childrenDelegate: widget.childrenDelegate!, controller: widget.scrollController ?? ScrollController(), - keyboardDismissBehavior: widget.keyboardDismissBehavior ?? - ScrollViewKeyboardDismissBehavior.manual, + keyboardDismissBehavior: + widget.keyboardDismissBehavior ?? ScrollViewKeyboardDismissBehavior.manual, physics: AlwaysScrollableScrollPhysics(parent: widget.physics), ), ); diff --git a/lib/src/swipe_refresh_base.dart b/lib/src/swipe_refresh_base.dart index a0e88c8..5a2e8f6 100644 --- a/lib/src/swipe_refresh_base.dart +++ b/lib/src/swipe_refresh_base.dart @@ -52,8 +52,7 @@ abstract class SwipeRefreshBase extends StatefulWidget { SwipeRefreshBaseState createState(); } -abstract class SwipeRefreshBaseState - extends State { +abstract class SwipeRefreshBaseState extends State { @protected final GlobalKey refreshKey = GlobalKey(); @@ -77,19 +76,38 @@ abstract class SwipeRefreshBaseState _stateSubscription = widget.stateStream.listen(_updateState); } - @override - Widget build(BuildContext context) { - // ignore: avoid-returning-widgets - return buildRefresher(refreshKey, widget.children ?? [], _onRefresh); + void _updateState(SwipeRefreshState newState) { + if (currentState != newState) { + setState( + () { + currentState = newState; + + onUpdateState(currentState); + }, + ); + } + } + + @protected + Future _onRefresh() { + _updateState(SwipeRefreshState.loading); + widget.onRefresh(); + completer = Completer(); + return completer!.future; } @override void dispose() { _stateSubscription?.cancel(); - super.dispose(); } + @override + Widget build(BuildContext context) { + // ignore: avoid-returning-widgets + return buildRefresher(refreshKey, widget.children ?? [], _onRefresh); + } + @protected Widget buildRefresher( Key key, @@ -99,24 +117,4 @@ abstract class SwipeRefreshBaseState @protected void onUpdateState(SwipeRefreshState state); - - @protected - Future _onRefresh() { - _updateState(SwipeRefreshState.loading); - widget.onRefresh(); - completer = Completer(); - return completer!.future; - } - - void _updateState(SwipeRefreshState newState) { - if (currentState != newState) { - setState( - () { - currentState = newState; - - onUpdateState(currentState); - }, - ); - } - } } From faf52bd6e4135bd046ef73b391c46d7cdf6409b0 Mon Sep 17 00:00:00 2001 From: DmitrDomrachev Date: Tue, 13 Feb 2024 23:01:06 +0300 Subject: [PATCH 52/69] style: dart format --- lib/src/cupertino_swipe_refresh.dart | 7 ++++--- lib/src/material_swipe_refresh.dart | 11 ++++++----- lib/src/swipe_refresh_base.dart | 3 ++- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/lib/src/cupertino_swipe_refresh.dart b/lib/src/cupertino_swipe_refresh.dart index 30776a3..50d6c65 100644 --- a/lib/src/cupertino_swipe_refresh.dart +++ b/lib/src/cupertino_swipe_refresh.dart @@ -83,7 +83,8 @@ class CupertinoSwipeRefresh extends SwipeRefreshBase { SwipeRefreshBaseState createState() => _CupertinoSwipeRefreshState(); } -class _CupertinoSwipeRefreshState extends SwipeRefreshBaseState { +class _CupertinoSwipeRefreshState + extends SwipeRefreshBaseState { late final ScrollController _scrollController; @override @@ -101,8 +102,8 @@ class _CupertinoSwipeRefreshState extends SwipeRefreshBaseState _MaterialSwipeRefreshState(); } -class _MaterialSwipeRefreshState extends SwipeRefreshBaseState { +class _MaterialSwipeRefreshState + extends SwipeRefreshBaseState { @override Widget buildRefresher( Key key, @@ -100,8 +101,8 @@ class _MaterialSwipeRefreshState extends SwipeRefreshBaseState extends State { +abstract class SwipeRefreshBaseState + extends State { @protected final GlobalKey refreshKey = GlobalKey(); From 3f76478114593409507e74f9b57896b3bd703d71 Mon Sep 17 00:00:00 2001 From: Alex Martynov Date: Tue, 27 Feb 2024 16:46:04 +0600 Subject: [PATCH 53/69] chore(SNP-903): FVM update --- .fvm/fvm_config.json | 4 ---- .fvmrc | 3 +++ .gitignore | 4 +++- 3 files changed, 6 insertions(+), 5 deletions(-) delete mode 100644 .fvm/fvm_config.json create mode 100644 .fvmrc diff --git a/.fvm/fvm_config.json b/.fvm/fvm_config.json deleted file mode 100644 index 6e3d57e..0000000 --- a/.fvm/fvm_config.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "flutterSdkVersion": "3.7.6", - "flavors": {} -} \ No newline at end of file diff --git a/.fvmrc b/.fvmrc new file mode 100644 index 0000000..c112b65 --- /dev/null +++ b/.fvmrc @@ -0,0 +1,3 @@ +{ + "flutter": "3.7.6" +} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 99ddad1..c0ae71b 100644 --- a/.gitignore +++ b/.gitignore @@ -31,7 +31,9 @@ .pub-cache/ .pub/ build/ -.fvm/flutter_sdk + +# FVM +.fvm/ # Android related **/android/**/gradle-wrapper.jar From 4eca6ff4faf9f999849a5099302c861d40c136e0 Mon Sep 17 00:00:00 2001 From: Alex Martynov Date: Tue, 27 Feb 2024 16:49:57 +0600 Subject: [PATCH 54/69] chore(SNP-903): update GitHub Action workflows --- .github/workflows/main.yml | 15 ++------ .github/workflows/new_issue_to_pyrus_task.yml | 35 +++++++++++++++++++ .github/workflows/new_issues_label.yml | 2 +- .github/workflows/new_pull_request_label.yml | 2 +- .../new_pull_request_main_actions.yml | 2 +- .github/workflows/publish_to_pub.yml | 22 ++++++------ 6 files changed, 53 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/new_issue_to_pyrus_task.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0953778..db4dd38 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,30 +2,21 @@ name: "Main" on: pull_request: - branches: - - main - - dev - push: - branches: - - main - - dev - tags-ignore: - - "**" jobs: get_fvm_version: outputs: - flutter_version: ${{ steps.fvm_version.outputs.flutterSdkVersion }} + flutter_version: ${{ steps.fvm_version.outputs.flutter }} name: "Get Flutter version from FVM" runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - id: fvm_version uses: zoexx/github-action-json-file-properties@release with: - file_path: ".fvm/fvm_config.json" + file_path: ".fvmrc" analysis: needs: get_fvm_version diff --git a/.github/workflows/new_issue_to_pyrus_task.yml b/.github/workflows/new_issue_to_pyrus_task.yml new file mode 100644 index 0000000..36813f6 --- /dev/null +++ b/.github/workflows/new_issue_to_pyrus_task.yml @@ -0,0 +1,35 @@ +name: "Create Pyrus task from issue" + +on: + issues: + types: + - reopened + - opened + +jobs: + get_package_name: + name: Get package name + runs-on: ubuntu-latest + outputs: + package_name: ${{ steps.parse_pubspec.outputs.name }} + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Parsing pubspec.yaml + id: parse_pubspec + uses: actions-tools/yaml-outputs@v2 + with: + file-path: 'pubspec.yaml' + + call_create_pyrus_task_from_issue: + name: Create Pyrus task from issue + needs: get_package_name + uses: surfstudio/flutter-ci-workflows/.github/workflows/new_issue_to_pyrus_task.yml@main + with: + PACKAGE_NAME: ${{ needs.get_package_name.outputs.package_name }} + ISSUE_TITLE: ${{ github.event.issue.title }} + ISSUE_BODY: ${{ github.event.issue.body }} + ISSUE_LINK: ${{ github.event.issue.html_url }} + secrets: + LOGIN: ${{ secrets.PYRUS_BOT_LOGIN }} + SECURITY_KEY: ${{ secrets.PYRUS_BOT_SECRET_KEY }} diff --git a/.github/workflows/new_issues_label.yml b/.github/workflows/new_issues_label.yml index 5319ce7..58890cc 100644 --- a/.github/workflows/new_issues_label.yml +++ b/.github/workflows/new_issues_label.yml @@ -13,4 +13,4 @@ jobs: label_issues: uses: surfstudio/flutter-ci-workflows/.github/workflows/new_issues_label.yml@main secrets: - SECRET_ISSUES: ${{ secrets.SECRET_ISSUES }} + SECRET_ISSUES: ${{ secrets.ACCESS_TOKEN_FOR_SURFGEAR }} diff --git a/.github/workflows/new_pull_request_label.yml b/.github/workflows/new_pull_request_label.yml index fb21084..9fd27c2 100644 --- a/.github/workflows/new_pull_request_label.yml +++ b/.github/workflows/new_pull_request_label.yml @@ -14,4 +14,4 @@ jobs: if: ${{ github.event.label.name == 'WIP' }} uses: surfstudio/flutter-ci-workflows/.github/workflows/new_pull_request_label.yml@main secrets: - SECRET_ISSUES: ${{ secrets.SECRET_ISSUES }} + SECRET_ISSUES: ${{ secrets.ACCESS_TOKEN_FOR_SURFGEAR }} diff --git a/.github/workflows/new_pull_request_main_actions.yml b/.github/workflows/new_pull_request_main_actions.yml index ccf208e..e33b93a 100644 --- a/.github/workflows/new_pull_request_main_actions.yml +++ b/.github/workflows/new_pull_request_main_actions.yml @@ -19,4 +19,4 @@ jobs: pull_request: uses: surfstudio/flutter-ci-workflows/.github/workflows/new_pull_request_label.yml@main secrets: - SECRET_ISSUES: ${{ secrets.SECRET_ISSUES }} \ No newline at end of file + SECRET_ISSUES: ${{ secrets.ACCESS_TOKEN_FOR_SURFGEAR }} diff --git a/.github/workflows/publish_to_pub.yml b/.github/workflows/publish_to_pub.yml index 6385757..504a9be 100644 --- a/.github/workflows/publish_to_pub.yml +++ b/.github/workflows/publish_to_pub.yml @@ -8,17 +8,17 @@ on: jobs: get_fvm_version: outputs: - flutter_version: ${{ steps.fvm_version.outputs.flutterSdkVersion }} + flutter_version: ${{ steps.fvm_version.outputs.flutter }} name: "Get Flutter version from FVM" runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - id: fvm_version uses: zoexx/github-action-json-file-properties@release with: - file_path: ".fvm/fvm_config.json" + file_path: ".fvmrc" analysis: needs: get_fvm_version @@ -27,18 +27,20 @@ jobs: flutter-version: ${{ needs.get_fvm_version.outputs.flutter_version }} testing: - needs: [get_fvm_version, analysis] + needs: [analysis, get_fvm_version] uses: surfstudio/flutter-ci-workflows/.github/workflows/testing.yml@main - secrets: + with: flutter-version: ${{ needs.get_fvm_version.outputs.flutter_version }} + secrets: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} package-publishing: - needs: [ analysis, testing ] + needs: [analysis, testing, get_fvm_version] uses: surfstudio/flutter-ci-workflows/.github/workflows/publish_to_pub.yml@main with: - PANA_TOTAL: '100' + flutter-version: ${{ needs.get_fvm_version.outputs.flutter_version }} + PANA_TOTAL: "100" secrets: - PUB_CREDENTIAL_JSON: ${{ secrets.PUB_CREDENTIAL_JSON }} - PUB_OAUTH_ACCESS_TOKEN: ${{ secrets.PUB_OAUTH_ACCESS_TOKEN }} - PUB_OAUTH_REFRESH_TOKEN: ${{ secrets.PUB_OAUTH_REFRESH_TOKEN }} \ No newline at end of file + PUB_CREDENTIAL_JSON: ${{ secrets.SURF_PUB_CREDENTIAL_JSON }} + PUB_OAUTH_ACCESS_TOKEN: ${{ secrets.SURF_PUB_OAUTH_ACCESS_TOKEN }} + PUB_OAUTH_REFRESH_TOKEN: ${{ secrets.SURF_PUB_OAUTH_REFRESH_TOKEN }} From 399fd0542ccea6c3b748d042b2877ee8d5575d85 Mon Sep 17 00:00:00 2001 From: Alex Martynov Date: Tue, 27 Feb 2024 16:50:41 +0600 Subject: [PATCH 55/69] chore(SNP-903): add new PR and issues templates --- .github/ISSUE_TEMPLATE/bug_report.md | 67 +++++++++++-------- .github/ISSUE_TEMPLATE/config.yml | 5 ++ .../ISSUE_TEMPLATE/documentation_update.md | 14 ++-- .github/ISSUE_TEMPLATE/feature_request.md | 20 +++--- .github/PULL_REQUEST_TEMPLATE.md | 6 ++ .github/PULL_REQUEST_TEMPLATE/bug_fix.md | 10 +-- .../documentation_update.md | 10 +-- .github/PULL_REQUEST_TEMPLATE/new_feature.md | 10 +-- 8 files changed, 70 insertions(+), 72 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/PULL_REQUEST_TEMPLATE.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 3a48652..9f615a5 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,45 +1,58 @@ --- name: Bug report -about: Something is wrong with Flutter Swipe Refresh. +about: Something is wrong. title: "[BUG] " labels: bug -assignees: MbIXjkee --- - +## Expected behavior + -## Prior Issues - -Are there any existing issues or PRs that relate to this problem? If so, link them here. - -## Describe the bug +## Actual behavior + -A clear and concise description of what the bug is. -Please show the code you wrote as completely as possible. +## Video/Screenshot + -```dart -/// your code here -``` +## Steps to reproduce + -## Steps to Reproduce +## Details +Flutter version: -If the current behavior is a bug, please provide the steps to reproduce. +Dart version: -## What is the expected behavior? +Platform: -A clear and concise description of what you expected to happen. +## Logs and stacktrace + -## Additional context +## Any possible solutions + -* What package and OS are affected by this issue? Did this work in previous versions of a package? - -* If applicable, add screenshots to help explain your problem. +## What did you try to solve + -* Please provide output from `flutter doctor -v` and `flutter analyze`. - -* Add any other context about the problem here. +## Checklist for self-check +- [ ] Added expected and actual behavior. +- [ ] Added video or screenshot of bug. +- [ ] Added isolated way to reproduce the bug. +- [ ] Specified Flutter, Dart version and platforms. +- [ ] Attached error code and logs. +- [ ] All unspecified fields in the Issue description are deleted. \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..6689749 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,5 @@ +blank_issues_enabled: false +contact_links: + - name: SurfGear telegram chat + url: https://t.me/SurfGear + about: Please ask and answer questions here. \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/documentation_update.md b/.github/ISSUE_TEMPLATE/documentation_update.md index 0c7bf5b..3bb3aea 100644 --- a/.github/ISSUE_TEMPLATE/documentation_update.md +++ b/.github/ISSUE_TEMPLATE/documentation_update.md @@ -2,23 +2,19 @@ name: Documentation update about: Fixing a problem or improve in an existing docs page. labels: documentation -assignees: MbIXjkee --- - +## Specify package name + ## Describe what scenario you think is uncovered by the existing examples / articles - -A clear and concise description of the problem that you want explained. + ## Describe why existing examples / articles do not cover this case - -Explain which examples / articles you have seen before making this request, and -why they did not help you with your problem. + ## Additional context - -Add any other context or screenshots about the documentation request here. + diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index f5baad7..2c2f243 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,24 +1,22 @@ --- -name: Feature Request -about: I'd like Flutter Swipe Refresh to do something new. +name: Feature request +about: I'd like SurfGear team to do something new. labels: enhancement -assignees: MbIXjkee --- - +## Specify package name + ## What is the new or updated feature that you are suggesting? - -A clear and concise description of what you want to happen. + ## Why should this feature be included? - -Is your feature request related to a problem? Please describe a clear and concise description of what the problem is. If you investigated any alternative solutions please describe. + ## Additional context - -Please provide any other context or screenshots about the feature request here. + \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..ba5f1df --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,6 @@ +Tap on "Preview" ⤴ + +And choose one of the templates: +* [Bugfix PR](?expand=1&template=bug_fix.md) +* [New feature PR](?expand=1&template=new_feature.md) +* [Documentation update PR](?expand=1&template=documentation_update.md) \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE/bug_fix.md b/.github/PULL_REQUEST_TEMPLATE/bug_fix.md index 66a216d..262175d 100644 --- a/.github/PULL_REQUEST_TEMPLATE/bug_fix.md +++ b/.github/PULL_REQUEST_TEMPLATE/bug_fix.md @@ -1,23 +1,17 @@ ---- -name: Bug fix -about: Fixing a problem with Flutter Swipe Refresh. -assignees: MbIXjkee ---- - - ## Checklist - [ ] Have you added an explanation of what your changes do and why you'd like us to include them? - [ ] Is there an existing issue for this PR? - - _link issue here_ + - _link issue here_ (use keywords like `fix`, `close`, `resolve` etc. if necessary) - [ ] Have the files been linted and formatted? - [ ] Have the docs been updated to match the changes in the PR? - [ ] Have the tests been updated to match the changes in the PR? +- [ ] Attached videos/screenshots demonstrating the fix/feature. - [ ] Have you run the tests locally to confirm they pass? ## Changes diff --git a/.github/PULL_REQUEST_TEMPLATE/documentation_update.md b/.github/PULL_REQUEST_TEMPLATE/documentation_update.md index c9565ec..b4dd21d 100644 --- a/.github/PULL_REQUEST_TEMPLATE/documentation_update.md +++ b/.github/PULL_REQUEST_TEMPLATE/documentation_update.md @@ -1,20 +1,12 @@ ---- -name: Documentation update -about: Fixing a problem or improve in an existing docs page. -labels: documentation -assignees: MbIXjkee ---- - - ## Checklist - [ ] Is there an existing issue for this PR? - - _link issue here_ + - _link issue here_ (use keywords like `fix`, `close`, `resolve` etc. if necessary) - [ ] Have the files been linted and formatted? ## Changes diff --git a/.github/PULL_REQUEST_TEMPLATE/new_feature.md b/.github/PULL_REQUEST_TEMPLATE/new_feature.md index 7ebbb47..1625c60 100644 --- a/.github/PULL_REQUEST_TEMPLATE/new_feature.md +++ b/.github/PULL_REQUEST_TEMPLATE/new_feature.md @@ -1,23 +1,17 @@ ---- -name: New feature -labels: enhancement -assignees: MbIXjkee ---- - - ## Checklist - [ ] Have you added an explanation of what your changes do and why you'd like us to include them? - [ ] Is there an existing issue for this PR? - - _link issue here_ + - _link issue here_ (use keywords like `fix`, `close`, `resolve` etc. if necessary) - [ ] Have the files been linted and formatted? - [ ] Have the docs been updated to match the changes in the PR? - [ ] Have the tests been updated to match the changes in the PR? +- [ ] Attached videos/screenshots demonstrating the fix/feature. - [ ] Have you run the tests locally to confirm they pass? ## New Features From d56bc5e86f792ab08237ee3e56a3072ec2fdcd79 Mon Sep 17 00:00:00 2001 From: Tatiana Sugina Date: Wed, 27 Mar 2024 14:26:00 +0300 Subject: [PATCH 56/69] chore: up version --- .fvmrc | 2 +- example/.fvm/fvm_config.json | 4 ---- pubspec.yaml | 4 ++-- 3 files changed, 3 insertions(+), 7 deletions(-) delete mode 100644 example/.fvm/fvm_config.json diff --git a/.fvmrc b/.fvmrc index c112b65..37f94f6 100644 --- a/.fvmrc +++ b/.fvmrc @@ -1,3 +1,3 @@ { - "flutter": "3.7.6" + "flutter": "3.19.0" } \ No newline at end of file diff --git a/example/.fvm/fvm_config.json b/example/.fvm/fvm_config.json deleted file mode 100644 index 6e3d57e..0000000 --- a/example/.fvm/fvm_config.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "flutterSdkVersion": "3.7.6", - "flavors": {} -} \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index ec4bb54..ab72500 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: swipe_refresh -version: 1.0.2 +version: 1.0.5 description: Set of widgets provides make refresh by using pull down gesture. repository: "https://github.com/surfstudio/flutter-swipe-refresh" issue_tracker: "https://github.com/surfstudio/flutter-swipe-refresh/issues" @@ -15,7 +15,7 @@ dev_dependencies: surf_lint_rules: ^2.0.0 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=3.0.0 <4.0.0" flutter: From 38f407feaa541adc0a09ff09c46b38fcd4cfbc25 Mon Sep 17 00:00:00 2001 From: Tatiana Sugina Date: Wed, 27 Mar 2024 14:29:32 +0300 Subject: [PATCH 57/69] feat: pubspec --- pubspec.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index ab72500..24a6e99 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -18,7 +18,4 @@ environment: sdk: ">=3.0.0 <4.0.0" flutter: - -platforms: - android: - ios: + uses-material-design: true From 14165fbfac7696fadcadbb3d450948226123e932 Mon Sep 17 00:00:00 2001 From: Tatiana Sugina Date: Wed, 27 Mar 2024 14:29:49 +0300 Subject: [PATCH 58/69] feat: add ConditionalWrapper --- lib/src/widgets/conditional_wrapper.dart | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 lib/src/widgets/conditional_wrapper.dart diff --git a/lib/src/widgets/conditional_wrapper.dart b/lib/src/widgets/conditional_wrapper.dart new file mode 100644 index 0000000..8e8d0c7 --- /dev/null +++ b/lib/src/widgets/conditional_wrapper.dart @@ -0,0 +1,26 @@ +import 'package:flutter/material.dart'; + +/// Wrap the child with a wrapper if the condition is true. +class ConditionalWrapper extends StatelessWidget { + /// Create an instance [ConditionalWrapper]. + const ConditionalWrapper({ + required this.condition, + required this.wrapper, + required this.child, + super.key, + }); + + /// Condition to wrap the child. + final bool condition; + + /// Wrapper for the child. + final Widget Function(Widget child) wrapper; + + /// Child to be wrapped. + final Widget child; + + @override + Widget build(BuildContext context) { + return condition ? wrapper(child) : child; + } +} From df03706901c4b5579a14b8b0fb9f425f244c51ef Mon Sep 17 00:00:00 2001 From: Tatiana Sugina Date: Wed, 27 Mar 2024 14:30:11 +0300 Subject: [PATCH 59/69] feat: add ScrollBehaviorInWeb --- lib/src/widgets/scroll_behavior_in_web.dart | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lib/src/widgets/scroll_behavior_in_web.dart diff --git a/lib/src/widgets/scroll_behavior_in_web.dart b/lib/src/widgets/scroll_behavior_in_web.dart new file mode 100644 index 0000000..ddc6a2f --- /dev/null +++ b/lib/src/widgets/scroll_behavior_in_web.dart @@ -0,0 +1,12 @@ +import 'package:flutter/gestures.dart'; +import 'package:flutter/material.dart'; + +/// For websites to work on the web and desktop. +class ScrollBehaviorInWeb extends MaterialScrollBehavior { + @override + Set get dragDevices => { + PointerDeviceKind.touch, + PointerDeviceKind.mouse, + PointerDeviceKind.trackpad, + }; +} From 0ce4902ea4a7268f39b4f246a6e307f9cc2f09e0 Mon Sep 17 00:00:00 2001 From: Tatiana Sugina Date: Wed, 27 Mar 2024 14:35:33 +0300 Subject: [PATCH 60/69] feat: updated PlatformWrapper --- lib/utills/platform_wrapper.dart | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/lib/utills/platform_wrapper.dart b/lib/utills/platform_wrapper.dart index 3530af4..69bf3b6 100644 --- a/lib/utills/platform_wrapper.dart +++ b/lib/utills/platform_wrapper.dart @@ -16,9 +16,21 @@ import 'package:flutter/foundation.dart'; /// Wrapper for Platform io. class PlatformWrapper { - bool get isIOS => defaultTargetPlatform == TargetPlatform.iOS; + bool get isCupertino => _cupertino.contains(defaultTargetPlatform); - bool get isAndroid => defaultTargetPlatform == TargetPlatform.android; + bool get isMaterial => _material.contains(defaultTargetPlatform); const PlatformWrapper(); } + +const _cupertino = [ + TargetPlatform.iOS, + TargetPlatform.macOS, +]; + +const _material = [ + TargetPlatform.android, + TargetPlatform.fuchsia, + TargetPlatform.linux, + TargetPlatform.windows, +]; From 8c13225660436654ae334fd703d9064c81dd51eb Mon Sep 17 00:00:00 2001 From: Tatiana Sugina Date: Wed, 27 Mar 2024 14:37:36 +0300 Subject: [PATCH 61/69] feat: updated SwipeRefreshBase --- lib/src/swipe_refresh_base.dart | 46 +++++++++++++++++++++++---------- 1 file changed, 33 insertions(+), 13 deletions(-) diff --git a/lib/src/swipe_refresh_base.dart b/lib/src/swipe_refresh_base.dart index a7c5523..47932bb 100644 --- a/lib/src/swipe_refresh_base.dart +++ b/lib/src/swipe_refresh_base.dart @@ -14,22 +14,13 @@ import 'dart:async'; +import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:swipe_refresh/src/swipe_refresh_state.dart'; +import 'package:swipe_refresh/src/widgets/scroll_behavior_in_web.dart'; /// Base refresh indicator widget. abstract class SwipeRefreshBase extends StatefulWidget { - final List? children; - final VoidCallback onRefresh; - final SwipeRefreshState? initState; - final Stream stateStream; - final ScrollController? scrollController; - final SliverChildDelegate? childrenDelegate; - final EdgeInsets? padding; - final bool shrinkWrap; - final ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior; - final ScrollPhysics? physics; - const SwipeRefreshBase({ required this.stateStream, required this.onRefresh, @@ -46,17 +37,30 @@ abstract class SwipeRefreshBase extends StatefulWidget { (children != null || childrenDelegate != null)), super(key: key); + final List? children; + final VoidCallback onRefresh; + final SwipeRefreshState? initState; + final Stream stateStream; + final ScrollController? scrollController; + final SliverChildDelegate? childrenDelegate; + final EdgeInsets? padding; + final bool shrinkWrap; + final ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior; + final ScrollPhysics? physics; + @override @protected // ignore: no_logic_in_create_state SwipeRefreshBaseState createState(); } -abstract class SwipeRefreshBaseState - extends State { +abstract class SwipeRefreshBaseState extends State { @protected final GlobalKey refreshKey = GlobalKey(); + @protected + late final MaterialScrollBehavior? scrollBehavior; + @protected Completer? completer; @@ -75,6 +79,7 @@ abstract class SwipeRefreshBaseState } _stateSubscription = widget.stateStream.listen(_updateState); + scrollBehavior = _getScrollBehavior(); } void _updateState(SwipeRefreshState newState) { @@ -97,6 +102,21 @@ abstract class SwipeRefreshBaseState return completer!.future; } + MaterialScrollBehavior? _getScrollBehavior() { + final behaviorInWeb = ScrollBehaviorInWeb(); + + switch (defaultTargetPlatform) { + case TargetPlatform.android: + case TargetPlatform.iOS: + return null; + case TargetPlatform.fuchsia: + case TargetPlatform.linux: + case TargetPlatform.macOS: + case TargetPlatform.windows: + return behaviorInWeb; + } + } + @override void dispose() { _stateSubscription?.cancel(); From 35541e72f7b01619a8f68c99a1883524c53820ad Mon Sep 17 00:00:00 2001 From: Tatiana Sugina Date: Wed, 27 Mar 2024 14:37:54 +0300 Subject: [PATCH 62/69] feat: updated CupertinoSwipeRefresh --- lib/src/cupertino_swipe_refresh.dart | 30 ++++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/src/cupertino_swipe_refresh.dart b/lib/src/cupertino_swipe_refresh.dart index 50d6c65..3d6378d 100644 --- a/lib/src/cupertino_swipe_refresh.dart +++ b/lib/src/cupertino_swipe_refresh.dart @@ -43,13 +43,6 @@ import 'package:swipe_refresh/src/swipe_refresh_state.dart'; /// [physics] - defines the physics of the scroll(if == null it will be /// [AlwaysScrollableScrollPhysics]). class CupertinoSwipeRefresh extends SwipeRefreshBase { - static const double defaultRefreshTriggerPullDistance = 100.0; - static const double defaultRefreshIndicatorExtent = 60.0; - - final double refreshTriggerPullDistance; - final double refreshIndicatorExtent; - final RefreshControlIndicatorBuilder indicatorBuilder; - const CupertinoSwipeRefresh({ required Stream stateStream, required VoidCallback onRefresh, @@ -79,12 +72,18 @@ class CupertinoSwipeRefresh extends SwipeRefreshBase { physics: physics, ); + static const double defaultRefreshTriggerPullDistance = 100.0; + static const double defaultRefreshIndicatorExtent = 60.0; + + final double refreshTriggerPullDistance; + final double refreshIndicatorExtent; + final RefreshControlIndicatorBuilder indicatorBuilder; + @override SwipeRefreshBaseState createState() => _CupertinoSwipeRefreshState(); } -class _CupertinoSwipeRefreshState - extends SwipeRefreshBaseState { +class _CupertinoSwipeRefreshState extends SwipeRefreshBaseState { late final ScrollController _scrollController; @override @@ -102,8 +101,9 @@ class _CupertinoSwipeRefreshState return CustomScrollView( shrinkWrap: widget.shrinkWrap, controller: _scrollController, - keyboardDismissBehavior: widget.keyboardDismissBehavior ?? - ScrollViewKeyboardDismissBehavior.onDrag, + scrollBehavior: scrollBehavior, + keyboardDismissBehavior: + widget.keyboardDismissBehavior ?? ScrollViewKeyboardDismissBehavior.onDrag, physics: widget.physics == null ? const BouncingScrollPhysics( parent: AlwaysScrollableScrollPhysics(), @@ -144,10 +144,6 @@ class _CupertinoSwipeRefreshState } class _ListChildrenWidget extends StatelessWidget { - final List children; - final EdgeInsets? padding; - final SliverChildDelegate? childrenDelegate; - const _ListChildrenWidget({ required this.children, Key? key, @@ -155,6 +151,10 @@ class _ListChildrenWidget extends StatelessWidget { this.childrenDelegate, }) : super(key: key); + final List children; + final EdgeInsets? padding; + final SliverChildDelegate? childrenDelegate; + @override Widget build(BuildContext context) { if (padding != null) { From 512b70cd7b771100c60123ddf026bdfd35b17b5f Mon Sep 17 00:00:00 2001 From: Tatiana Sugina Date: Wed, 27 Mar 2024 14:38:11 +0300 Subject: [PATCH 63/69] feat: updated MaterialSwipeRefresh --- lib/src/material_swipe_refresh.dart | 55 ++++++++++++++++------------- 1 file changed, 31 insertions(+), 24 deletions(-) diff --git a/lib/src/material_swipe_refresh.dart b/lib/src/material_swipe_refresh.dart index 868f28e..99aa019 100644 --- a/lib/src/material_swipe_refresh.dart +++ b/lib/src/material_swipe_refresh.dart @@ -19,6 +19,7 @@ import 'dart:async'; import 'package:flutter/material.dart'; import 'package:swipe_refresh/src/swipe_refresh_base.dart'; import 'package:swipe_refresh/src/swipe_refresh_state.dart'; +import 'package:swipe_refresh/src/widgets/conditional_wrapper.dart'; /// Refresh indicator widget with Material Design style. /// [stateStream] - indicator state([SwipeRefreshState.loading] or @@ -46,9 +47,6 @@ import 'package:swipe_refresh/src/swipe_refresh_state.dart'; /// [physics] - defines the physics of the scroll(if == null it will be /// [AlwaysScrollableScrollPhysics]). class MaterialSwipeRefresh extends SwipeRefreshBase { - final Color? indicatorColor; - final Color backgroundColor; - const MaterialSwipeRefresh({ required Stream stateStream, required VoidCallback onRefresh, @@ -78,12 +76,14 @@ class MaterialSwipeRefresh extends SwipeRefreshBase { physics: physics, ); + final Color? indicatorColor; + final Color backgroundColor; + @override SwipeRefreshBaseState createState() => _MaterialSwipeRefreshState(); } -class _MaterialSwipeRefreshState - extends SwipeRefreshBaseState { +class _MaterialSwipeRefreshState extends SwipeRefreshBaseState { @override Widget buildRefresher( Key key, @@ -95,25 +95,32 @@ class _MaterialSwipeRefreshState onRefresh: onRefresh, color: widget.indicatorColor, backgroundColor: widget.backgroundColor, - child: widget.childrenDelegate == null - ? ListView( - shrinkWrap: widget.shrinkWrap, - padding: widget.padding, - controller: widget.scrollController ?? ScrollController(), - physics: AlwaysScrollableScrollPhysics(parent: widget.physics), - keyboardDismissBehavior: widget.keyboardDismissBehavior ?? - ScrollViewKeyboardDismissBehavior.manual, - children: children, - ) - : ListView.custom( - shrinkWrap: widget.shrinkWrap, - padding: widget.padding, - childrenDelegate: widget.childrenDelegate!, - controller: widget.scrollController ?? ScrollController(), - keyboardDismissBehavior: widget.keyboardDismissBehavior ?? - ScrollViewKeyboardDismissBehavior.manual, - physics: AlwaysScrollableScrollPhysics(parent: widget.physics), - ), + child: ConditionalWrapper( + condition: scrollBehavior != null, + wrapper: (child) => ScrollConfiguration( + behavior: scrollBehavior ?? const MaterialScrollBehavior(), + child: child, + ), + child: widget.childrenDelegate == null + ? ListView( + shrinkWrap: widget.shrinkWrap, + padding: widget.padding, + controller: widget.scrollController ?? ScrollController(), + physics: AlwaysScrollableScrollPhysics(parent: widget.physics), + keyboardDismissBehavior: + widget.keyboardDismissBehavior ?? ScrollViewKeyboardDismissBehavior.manual, + children: children, + ) + : ListView.custom( + shrinkWrap: widget.shrinkWrap, + padding: widget.padding, + childrenDelegate: widget.childrenDelegate!, + controller: widget.scrollController ?? ScrollController(), + keyboardDismissBehavior: + widget.keyboardDismissBehavior ?? ScrollViewKeyboardDismissBehavior.manual, + physics: AlwaysScrollableScrollPhysics(parent: widget.physics), + ), + ), ); } From acdb5ea54d5cef2bb6b88d709c46aee82bc6d0ae Mon Sep 17 00:00:00 2001 From: Tatiana Sugina Date: Wed, 27 Mar 2024 14:38:22 +0300 Subject: [PATCH 64/69] feat: updated SwipeRefresh --- lib/src/swipe_refresh.dart | 69 ++++++++++++++++++-------------------- 1 file changed, 33 insertions(+), 36 deletions(-) diff --git a/lib/src/swipe_refresh.dart b/lib/src/swipe_refresh.dart index 229afb0..8e491cb 100644 --- a/lib/src/swipe_refresh.dart +++ b/lib/src/swipe_refresh.dart @@ -28,24 +28,6 @@ import 'package:swipe_refresh/utills/platform_wrapper.dart'; /// [refreshTriggerPullDistance], [refreshIndicatorExtent], [indicatorBuilder] /// (more details [CupertinoSwipeRefresh]). class SwipeRefresh extends StatelessWidget { - final List? children; - final VoidCallback onRefresh; - final SwipeRefreshState? initState; - final Stream stateStream; - final Color? indicatorColor; - final Color backgroundColor; - final double refreshTriggerPullDistance; - final double refreshIndicatorExtent; - final RefreshControlIndicatorBuilder indicatorBuilder; - final SwipeRefreshStyle style; - final ScrollController? scrollController; - final SliverChildDelegate? childrenDelegate; - final EdgeInsets? padding; - final bool shrinkWrap; - final ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior; - final ScrollPhysics? physics; - final PlatformWrapper _platform; - const SwipeRefresh( this.style, { required this.stateStream, @@ -66,12 +48,11 @@ class SwipeRefresh extends StatelessWidget { RefreshControlIndicatorBuilder? indicatorBuilder, PlatformWrapper? platform, }) : backgroundColor = backgroundColor ?? const Color(0xFFFFFFFF), - refreshTriggerPullDistance = refreshTriggerPullDistance ?? - CupertinoSwipeRefresh.defaultRefreshTriggerPullDistance, - refreshIndicatorExtent = refreshIndicatorExtent ?? - CupertinoSwipeRefresh.defaultRefreshIndicatorExtent, - indicatorBuilder = indicatorBuilder ?? - CupertinoSliverRefreshControl.buildRefreshIndicator, + refreshTriggerPullDistance = + refreshTriggerPullDistance ?? CupertinoSwipeRefresh.defaultRefreshTriggerPullDistance, + refreshIndicatorExtent = + refreshIndicatorExtent ?? CupertinoSwipeRefresh.defaultRefreshIndicatorExtent, + indicatorBuilder = indicatorBuilder ?? CupertinoSliverRefreshControl.buildRefreshIndicator, _platform = platform ?? const PlatformWrapper(), super(key: key); @@ -227,6 +208,24 @@ class SwipeRefresh extends StatelessWidget { ); } + final List? children; + final VoidCallback onRefresh; + final SwipeRefreshState? initState; + final Stream stateStream; + final Color? indicatorColor; + final Color backgroundColor; + final double refreshTriggerPullDistance; + final double refreshIndicatorExtent; + final RefreshControlIndicatorBuilder indicatorBuilder; + final SwipeRefreshStyle style; + final ScrollController? scrollController; + final SliverChildDelegate? childrenDelegate; + final EdgeInsets? padding; + final bool shrinkWrap; + final ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior; + final ScrollPhysics? physics; + final PlatformWrapper _platform; + @override Widget build(BuildContext context) { switch (style) { @@ -264,41 +263,39 @@ class SwipeRefresh extends StatelessWidget { ); case SwipeRefreshStyle.builder: case SwipeRefreshStyle.adaptive: - if (_platform.isAndroid) { - return MaterialSwipeRefresh( + if (_platform.isCupertino) { + return CupertinoSwipeRefresh( key: key, childrenDelegate: childrenDelegate, stateStream: stateStream, initState: initState, onRefresh: onRefresh, scrollController: scrollController, - backgroundColor: backgroundColor, - indicatorColor: indicatorColor, + refreshIndicatorExtent: refreshIndicatorExtent, + refreshTriggerPullDistance: refreshTriggerPullDistance, + indicatorBuilder: indicatorBuilder, shrinkWrap: shrinkWrap, padding: padding, - keyboardDismissBehavior: keyboardDismissBehavior, physics: physics, children: children, ); - } else if (_platform.isIOS) { - return CupertinoSwipeRefresh( + } else { + return MaterialSwipeRefresh( key: key, childrenDelegate: childrenDelegate, stateStream: stateStream, initState: initState, onRefresh: onRefresh, scrollController: scrollController, - refreshIndicatorExtent: refreshIndicatorExtent, - refreshTriggerPullDistance: refreshTriggerPullDistance, - indicatorBuilder: indicatorBuilder, + backgroundColor: backgroundColor, + indicatorColor: indicatorColor, shrinkWrap: shrinkWrap, padding: padding, + keyboardDismissBehavior: keyboardDismissBehavior, physics: physics, children: children, ); } } - - return Container(); } } From e618ccb39f46d831a03f3d0c0bb062d587678530 Mon Sep 17 00:00:00 2001 From: Tatiana Sugina Date: Wed, 27 Mar 2024 14:38:38 +0300 Subject: [PATCH 65/69] feat: updated tests --- test/platform_wrapper_test.dart | 20 +++-- test/swipe_refresh_adaptive_test.dart | 82 ++++++------------ test/swipe_refresh_builder_test.dart | 8 +- test/swipe_refresh_cupertino_test.dart | 110 +++++++------------------ test/swipe_refresh_material_test.dart | 76 ++++++----------- 5 files changed, 98 insertions(+), 198 deletions(-) diff --git a/test/platform_wrapper_test.dart b/test/platform_wrapper_test.dart index ce3d22a..3c1b651 100644 --- a/test/platform_wrapper_test.dart +++ b/test/platform_wrapper_test.dart @@ -25,15 +25,17 @@ void main() { test( 'Method isAndroid should return true', () { - final isAndroid = platformWrapper.isAndroid; + final isAndroid = platformWrapper.isMaterial; - // because the target flutter checks the test environment - // and by default outputs the platform android - // assert(() { - // if (Platform.environment.containsKey('FLUTTER_TEST')) - // result = platform.TargetPlatform.android; - // return true; - // }()); + /// Because the target flutter checks the test environment and by default outputs + /// the platform android. + /* + assert(() { + if (Platform.environment.containsKey('FLUTTER_TEST')) + result = platform.TargetPlatform.android; + return true; + }()); + */ expect(isAndroid, true); }, ); @@ -41,7 +43,7 @@ void main() { test( 'Method isIOS should return false', () { - final isIOS = platformWrapper.isIOS; + final isIOS = platformWrapper.isCupertino; expect(isIOS, false); }, diff --git a/test/swipe_refresh_adaptive_test.dart b/test/swipe_refresh_adaptive_test.dart index 3ce3709..3b197e6 100644 --- a/test/swipe_refresh_adaptive_test.dart +++ b/test/swipe_refresh_adaptive_test.dart @@ -26,6 +26,12 @@ void main() { late StreamController controller; late Stream stream; late MockPlatformWrapper platformWrapper; + final children = _listColors + .map((e) => Container( + color: e, + height: 100, + )) + .toList(); setUp(() { controller = StreamController.broadcast(); @@ -44,59 +50,19 @@ void main() { controller.sink.add(SwipeRefreshState.hidden); } - final listColors = [ - Colors.blue, - Colors.green, - Colors.red, - Colors.amber, - ]; - - testWidgets( - 'When call SwipeRefresh.adaptive not on Android or iOS platform should build normally with one Container', - (tester) async { - when(() => platformWrapper.isAndroid).thenReturn(false); - when(() => platformWrapper.isIOS).thenReturn(false); - - final adaptiveSwipeRefresh = makeTestableWidget( - SwipeRefresh.adaptive( - stateStream: stream, - onRefresh: onRefresh, - children: listColors - .map( - (e) => Container( - color: e, - height: 100, - ), - ) - .toList(), - platform: platformWrapper, - ), - ); - - await tester.pumpWidget(adaptiveSwipeRefresh); - - expect(() => adaptiveSwipeRefresh, returnsNormally); - expect(find.byType(Container), findsOneWidget); - }, - ); - testWidgets( 'When call SwipeRefresh.adaptive on Android platform should build MaterialSwipeRefresh', (tester) async { - when(() => platformWrapper.isAndroid).thenReturn(true); + when(() => platformWrapper.isMaterial).thenReturn(true); + when(() => platformWrapper.isCupertino).thenReturn(false); final adaptiveSwipeRefresh = makeTestableWidget( SwipeRefresh.adaptive( stateStream: stream, - onRefresh: onRefresh, - children: listColors - .map( - (e) => Container( - color: e, - height: 100, - ), - ) - .toList(), + onRefresh: () { + onRefresh().ignore(); + }, + children: children, platform: platformWrapper, ), ); @@ -111,21 +77,16 @@ void main() { testWidgets( 'When call SwipeRefresh.adaptive on iOS platform should build CupertinoSwipeRefresh', (tester) async { - when(() => platformWrapper.isAndroid).thenReturn(false); - when(() => platformWrapper.isIOS).thenReturn(true); + when(() => platformWrapper.isMaterial).thenReturn(false); + when(() => platformWrapper.isCupertino).thenReturn(true); final adaptiveSwipeRefresh = makeTestableWidget( SwipeRefresh.adaptive( stateStream: stream, - onRefresh: onRefresh, - children: listColors - .map( - (e) => Container( - color: e, - height: 100, - ), - ) - .toList(), + onRefresh: () { + onRefresh().ignore(); + }, + children: children, platform: platformWrapper, ), ); @@ -139,3 +100,10 @@ void main() { } class MockPlatformWrapper extends Mock implements PlatformWrapper {} + +const _listColors = [ + Colors.blue, + Colors.green, + Colors.red, + Colors.amber, +]; diff --git a/test/swipe_refresh_builder_test.dart b/test/swipe_refresh_builder_test.dart index cf8bbee..df986d2 100644 --- a/test/swipe_refresh_builder_test.dart +++ b/test/swipe_refresh_builder_test.dart @@ -55,13 +55,15 @@ void main() { testWidgets( 'SwipeRefresh.builder with itemBuilder as argument builds normally(iOS platform as example)', (tester) async { - when(() => platformWrapper.isAndroid).thenReturn(false); - when(() => platformWrapper.isIOS).thenReturn(true); + when(() => platformWrapper.isMaterial).thenReturn(false); + when(() => platformWrapper.isCupertino).thenReturn(true); final testWidget = makeTestableWidget( SwipeRefresh.builder( stateStream: stream, - onRefresh: onRefresh, + onRefresh: () { + onRefresh().ignore(); + }, itemCount: listColors.length, itemBuilder: (_, index) => Container( color: listColors[index], diff --git a/test/swipe_refresh_cupertino_test.dart b/test/swipe_refresh_cupertino_test.dart index 9ec5d64..3c9029c 100644 --- a/test/swipe_refresh_cupertino_test.dart +++ b/test/swipe_refresh_cupertino_test.dart @@ -27,6 +27,12 @@ void main() { late Stream stream; late MockOnRefreshFunction onRefreshFunction; late ScrollPhysics scrollPhysics; + final children = _listColors + .map((e) => Container( + color: e, + height: 100, + )) + .toList(); setUp(() { streamController = StreamController.broadcast(); @@ -34,7 +40,7 @@ void main() { onRefreshFunction = MockOnRefreshFunction(); when(() => onRefreshFunction.call()).thenAnswer( - (invocation) async { + (invocation) { return streamController.sink.add(SwipeRefreshState.hidden); }, ); @@ -48,13 +54,6 @@ void main() { }, ); - final listColors = [ - Colors.blue, - Colors.green, - Colors.red, - Colors.amber, - ]; - testWidgets( 'When trying to return a CupertinoSwipeRefresh with no children or ' 'childrenDelegate passed, must be an assertion error', @@ -80,14 +79,7 @@ void main() { SwipeRefresh.cupertino( stateStream: stream, onRefresh: onRefreshFunction, - children: listColors - .map( - (e) => Container( - color: e, - height: 100, - ), - ) - .toList(), + children: children, ), ); @@ -107,14 +99,7 @@ void main() { SwipeRefresh.cupertino( stateStream: stream, onRefresh: onRefreshFunction, - children: listColors - .map( - (e) => Container( - color: e, - height: 100, - ), - ) - .toList(), + children: children, ), ); @@ -134,6 +119,7 @@ void main() { 'When drag down enough, the refresh should start and end after 3 seconds', (tester) async { const key = Key('Test key'); + final findKey = find.byKey(key); final cupertinoSwipeRefresh = makeTestableWidget( SwipeRefresh.cupertino( @@ -150,14 +136,7 @@ void main() { key: key, ); }, - children: listColors - .map( - (e) => Container( - color: e, - height: 100, - ), - ) - .toList(), + children: children, ), ); @@ -171,12 +150,12 @@ void main() { await tester.pump(); - expect(find.byKey(key), findsOneWidget); + expect(findKey, findsOneWidget); await tester.pump(const Duration(seconds: 3)); await tester.pump(); - expect(find.byKey(key), findsNothing); + expect(findKey, findsNothing); }, ); @@ -191,14 +170,7 @@ void main() { SwipeRefresh.cupertino( stateStream: stream, onRefresh: onRefreshFunction, - children: listColors - .map( - (e) => Container( - color: e, - height: 100, - ), - ) - .toList(), + children: children, ), ); @@ -217,14 +189,7 @@ void main() { final cupertinoWidget = SwipeRefresh.cupertino( stateStream: stream, onRefresh: onRefreshFunction, - children: listColors - .map( - (e) => Container( - color: e, - height: 100, - ), - ) - .toList(), + children: children, initState: SwipeRefreshState.loading, ); @@ -251,14 +216,7 @@ void main() { final cupertinoWidget = SwipeRefresh.cupertino( stateStream: stream, onRefresh: onRefreshFunction, - children: listColors - .map( - (e) => Container( - color: e, - height: 100, - ), - ) - .toList(), + children: children, initState: SwipeRefreshState.loading, physics: scrollPhysics, ); @@ -287,14 +245,7 @@ void main() { SwipeRefresh.cupertino( stateStream: stream, onRefresh: onRefreshFunction, - children: listColors - .map( - (e) => Container( - color: e, - height: 100, - ), - ) - .toList(), + children: children, ), ); @@ -302,29 +253,25 @@ void main() { SwipeRefresh.cupertino( stateStream: stream, onRefresh: onRefreshFunction, - children: listColors - .map( - (e) => Container( - color: e, - height: 100, - ), - ) - .toList(), + children: children, padding: const EdgeInsets.only(top: 16.0), ), ); + final findSliverList = find.byType(SliverList); + final findSliverPadding = find.byType(SliverPadding); + await tester.pumpWidget(cupertinoWidgetWithoutPadding); - expect(find.byType(SliverList), findsOneWidget); + expect(findSliverList, findsOneWidget); // Must find one widget create by SliverSafeArea. - expect(find.byType(SliverPadding), findsOneWidget); + expect(findSliverPadding, findsOneWidget); await tester.pumpWidget(cupertinoWidgetWithPadding); - expect(find.byType(SliverList), findsOneWidget); + expect(findSliverList, findsOneWidget); // Must find two widgets(create by SliverSafeArea and create by SwipeRefresh.cupertino). - expect(find.byType(SliverPadding), findsNWidgets(2)); + expect(findSliverPadding, findsNWidgets(2)); }, ); } @@ -332,3 +279,10 @@ void main() { class MockOnRefreshFunction extends Mock { void call(); } + +const _listColors = [ + Colors.blue, + Colors.green, + Colors.red, + Colors.amber, +]; diff --git a/test/swipe_refresh_material_test.dart b/test/swipe_refresh_material_test.dart index c04ef6f..87c37f6 100644 --- a/test/swipe_refresh_material_test.dart +++ b/test/swipe_refresh_material_test.dart @@ -27,6 +27,12 @@ void main() { late Stream stream; late MockOnRefreshFunction onRefreshFunction; late TestSliverChildListDelegate sliverChildDelegate; + final children = _listColors + .map((e) => Container( + color: e, + height: 100, + )) + .toList(); setUp(() { controller = StreamController.broadcast(); @@ -35,7 +41,7 @@ void main() { onRefreshFunction = MockOnRefreshFunction(); when(() => onRefreshFunction.call()).thenAnswer( - (invocation) async { + (invocation) { return controller.sink.add(SwipeRefreshState.hidden); }, ); @@ -45,13 +51,6 @@ void main() { await controller.close(); }); - final listColors = [ - Colors.blue, - Colors.green, - Colors.red, - Colors.amber, - ]; - testWidgets( 'When trying create MaterialSwipeRefresh without children or ' 'childrenDelegate should be assertion error', @@ -77,14 +76,7 @@ void main() { SwipeRefresh.material( stateStream: stream, onRefresh: onRefreshFunction, - children: listColors - .map( - (e) => Container( - color: e, - height: 100, - ), - ) - .toList(), + children: children, ), ); @@ -106,14 +98,7 @@ void main() { SwipeRefresh.material( stateStream: stream, onRefresh: onRefreshFunction, - children: listColors - .map( - (e) => Container( - color: e, - height: 100, - ), - ) - .toList(), + children: children, ), ); @@ -137,32 +122,28 @@ void main() { SwipeRefresh.material( stateStream: stream, onRefresh: onRefreshFunction, - children: listColors - .map( - (e) => Container( - color: e, - height: 100, - ), - ) - .toList(), + children: children, ), ); + final findSwipeRefresh = find.byType(SwipeRefresh); + final findRefreshProgressIndicator = find.byType(RefreshProgressIndicator); + await tester.pumpWidget(materialSwipeRefresh); await tester.drag( - find.byType(SwipeRefresh), + findSwipeRefresh, const Offset(0, 300), touchSlopY: 0, ); await tester.pump(); - expect(find.byType(RefreshProgressIndicator), findsOneWidget); + expect(findRefreshProgressIndicator, findsOneWidget); await tester.pump(); await tester.pump(const Duration(seconds: 1)); await tester.pump(const Duration(seconds: 2)); - expect(find.byType(RefreshProgressIndicator), findsNothing); + expect(findRefreshProgressIndicator, findsNothing); }, ); @@ -173,14 +154,7 @@ void main() { SwipeRefresh.material( stateStream: stream, onRefresh: onRefreshFunction, - children: listColors - .map( - (e) => Container( - color: e, - height: 100, - ), - ) - .toList(), + children: children, ), ); await tester.pumpWidget(materialSwipeRefresh); @@ -202,14 +176,7 @@ void main() { final materialWidget = SwipeRefresh.material( stateStream: stream, onRefresh: onRefreshFunction, - children: listColors - .map( - (e) => Container( - color: e, - height: 100, - ), - ) - .toList(), + children: children, initState: SwipeRefreshState.loading, ); final materialSwipeRefresh = makeTestableWidget(materialWidget); @@ -252,3 +219,10 @@ class MockOnRefreshFunction extends Mock { class TestSliverChildListDelegate extends SliverChildListDelegate { TestSliverChildListDelegate(List children) : super(children); } + +const _listColors = [ + Colors.blue, + Colors.green, + Colors.red, + Colors.amber, +]; From 715b4efd3aeb78f8a896c8abdd0fa2d3f80176f5 Mon Sep 17 00:00:00 2001 From: Tatiana Sugina Date: Wed, 27 Mar 2024 14:39:02 +0300 Subject: [PATCH 66/69] feat: updated changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 823703b..dd0b08a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.0.5 +* Added support for all TargetPlatform. +* SDK version is up. + ## 1.0.2 * Internal improvements. From e5b582cf6de843bc8285c0d7f1a428e1522342e6 Mon Sep 17 00:00:00 2001 From: Tatiana Sugina Date: Wed, 27 Mar 2024 14:39:22 +0300 Subject: [PATCH 67/69] feat: updated example --- example/ios/Flutter/AppFrameworkInfo.plist | 2 +- example/ios/Runner.xcodeproj/project.pbxproj | 13 +- .../contents.xcworkspacedata | 2 +- .../xcshareddata/xcschemes/Runner.xcscheme | 2 +- example/ios/Runner/Info.plist | 4 + example/lib/main.dart | 189 +----------------- example/lib/screens/main_page.dart | 180 +++++++++++++++++ example/lib/screens/my_app.dart | 17 ++ example/pubspec.yaml | 2 +- 9 files changed, 214 insertions(+), 197 deletions(-) create mode 100644 example/lib/screens/main_page.dart create mode 100644 example/lib/screens/my_app.dart diff --git a/example/ios/Flutter/AppFrameworkInfo.plist b/example/ios/Flutter/AppFrameworkInfo.plist index 6b4c0f7..8c6e561 100644 --- a/example/ios/Flutter/AppFrameworkInfo.plist +++ b/example/ios/Flutter/AppFrameworkInfo.plist @@ -21,6 +21,6 @@ CFBundleVersion 1.0 MinimumOSVersion - 8.0 + 12.0 diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj index ffec437..a0b84d0 100644 --- a/example/ios/Runner.xcodeproj/project.pbxproj +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 46; + objectVersion = 54; objects = { /* Begin PBXBuildFile section */ @@ -140,7 +140,7 @@ 97C146E61CF9000F007C117D /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 1020; + LastUpgradeCheck = 1510; ORGANIZATIONNAME = "The Chromium Authors"; TargetAttributes = { 97C146ED1CF9000F007C117D = { @@ -184,10 +184,12 @@ /* Begin PBXShellScriptBuildPhase section */ 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; buildActionMask = 2147483647; files = ( ); inputPaths = ( + "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", ); name = "Thin Binary"; outputPaths = ( @@ -198,6 +200,7 @@ }; 9740EEB61CF901F6004384FC /* Run Script */ = { isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; buildActionMask = 2147483647; files = ( ); @@ -286,7 +289,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; @@ -365,7 +368,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -414,7 +417,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; diff --git a/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata index 1d526a1..919434a 100644 --- a/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ b/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -2,6 +2,6 @@ + location = "self:"> diff --git a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index a28140c..e67b280 100644 --- a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -1,6 +1,6 @@ UIViewControllerBasedStatusBarAppearance + CADisableMinimumFrameDurationOnPhone + + UIApplicationSupportsIndirectInputEvents + diff --git a/example/lib/main.dart b/example/lib/main.dart index 949575b..2ac75ce 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -14,194 +14,7 @@ // ignore_for_file: library_private_types_in_public_api -import 'dart:async'; - +import 'package:example/screens/my_app.dart'; import 'package:flutter/material.dart'; -import 'package:swipe_refresh/swipe_refresh.dart'; void main() => runApp(const MyApp()); - -class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); - - @override - Widget build(BuildContext context) { - return MaterialApp( - title: 'Refresher Example', - theme: ThemeData( - primarySwatch: Colors.blue, - ), - home: const MainPage(), - ); - } -} - -class MainPage extends StatefulWidget { - const MainPage({Key? key}) : super(key: key); - - @override - _MainPageState createState() => _MainPageState(); -} - -class _MainPageState extends State { - final _controller = StreamController.broadcast(); - - Stream get _stream => _controller.stream; - - @override - Widget build(BuildContext context) { - return DefaultTabController( - length: 3, - child: Scaffold( - body: Padding( - padding: const EdgeInsets.only(top: 25), - child: Column( - children: [ - const TabBar( - tabs: [ - _TabWidget(style: SwipeRefreshStyle.material), - _TabWidget(style: SwipeRefreshStyle.cupertino), - _TabWidget(style: SwipeRefreshStyle.builder), - ], - ), - Expanded( - child: TabBarView( - children: [ - SwipeRefresh.material( - stateStream: _stream, - onRefresh: _refresh, - padding: const EdgeInsets.symmetric(vertical: 10), - children: const [ - _ExampleBodyWidget(style: SwipeRefreshStyle.material), - ], - ), - SwipeRefresh.cupertino( - stateStream: _stream, - onRefresh: _refresh, - padding: const EdgeInsets.symmetric(vertical: 10), - children: const [ - _ExampleBodyWidget(style: SwipeRefreshStyle.cupertino), - ], - ), - SwipeRefresh.builder( - stateStream: _stream, - onRefresh: _refresh, - padding: const EdgeInsets.symmetric(vertical: 10), - itemCount: Colors.primaries.length, - itemBuilder: (context, index) { - return Container( - color: Colors.primaries[index], - height: 100, - child: const Center( - child: Text( - 'Builder example', - style: TextStyle(color: white), - ), - ), - ); - }, - ), - ], - ), - ), - ], - ), - ), - ), - ); - } - - @override - void dispose() { - _controller.close(); - - super.dispose(); - } - - Future _refresh() async { - await Future.delayed(const Duration(seconds: 3)); - // when all needed is done change state - _controller.sink.add(SwipeRefreshState.hidden); - } -} - -class _TabWidget extends StatelessWidget { - final SwipeRefreshStyle style; - - const _TabWidget({ - required this.style, - Key? key, - }) : super(key: key); - - @override - Widget build(BuildContext context) { - return InkWell( - child: SizedBox( - height: 100, - child: Center( - child: Text( - _getText(style), - style: TextStyle(color: _getColor(style).withOpacity(0.5)), - ), - ), - ), - ); - } -} - -class _ExampleBodyWidget extends StatelessWidget { - final SwipeRefreshStyle style; - - const _ExampleBodyWidget({ - required this.style, - Key? key, - }) : super(key: key); - - @override - Widget build(BuildContext context) { - return Container( - color: _getColor(style), - height: 100, - child: Center( - child: Text( - style == SwipeRefreshStyle.material - ? 'Material example' - : 'Cupertino example', - style: const TextStyle(color: white), - ), - ), - ); - } -} - -Color _getColor(SwipeRefreshStyle style) { - switch (style) { - case SwipeRefreshStyle.material: - return red; - case SwipeRefreshStyle.cupertino: - return blue; - case SwipeRefreshStyle.builder: - return green; - default: - return black; - } -} - -String _getText(SwipeRefreshStyle style) { - switch (style) { - case SwipeRefreshStyle.material: - return 'Material'; - case SwipeRefreshStyle.cupertino: - return 'Cupertino'; - case SwipeRefreshStyle.builder: - return 'Builder'; - default: - return 'SwipeRefresh'; - } -} - -const white = Color(0xFFFFFFFF); -const black = Color(0xFF000000); -const red = Color(0xFFFF0000); -const green = Color(0xFF00FF00); -const blue = Color(0xFF0000FF); diff --git a/example/lib/screens/main_page.dart b/example/lib/screens/main_page.dart new file mode 100644 index 0000000..4a7a05a --- /dev/null +++ b/example/lib/screens/main_page.dart @@ -0,0 +1,180 @@ +import 'dart:async'; + +import 'package:flutter/material.dart'; +import 'package:swipe_refresh/swipe_refresh.dart'; + +class MainPage extends StatefulWidget { + const MainPage({Key? key}) : super(key: key); + + @override + State createState() => _MainPageState(); +} + +class _MainPageState extends State { + final _controller = StreamController.broadcast(); + + Stream get _stream => _controller.stream; + + Future _refresh() async { + await Future.delayed(const Duration(seconds: 3)); + + /// When all needed is done change state. + _controller.sink.add(SwipeRefreshState.hidden); + } + + @override + void dispose() { + _controller.close(); + + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return DefaultTabController( + length: 3, + child: Scaffold( + body: Padding( + padding: const EdgeInsets.only(top: 25), + child: Column( + children: [ + const TabBar( + tabs: [ + _TabWidget(style: SwipeRefreshStyle.material), + _TabWidget(style: SwipeRefreshStyle.cupertino), + _TabWidget(style: SwipeRefreshStyle.builder), + ], + ), + Expanded( + child: TabBarView( + children: [ + SwipeRefresh.material( + stateStream: _stream, + onRefresh: () { + _refresh().ignore(); + }, + padding: const EdgeInsets.symmetric(vertical: 10), + children: const [ + _ExampleBodyWidget(style: SwipeRefreshStyle.material), + ], + ), + SwipeRefresh.cupertino( + stateStream: _stream, + onRefresh: () { + _refresh().ignore(); + }, + padding: const EdgeInsets.symmetric(vertical: 10), + children: const [ + _ExampleBodyWidget(style: SwipeRefreshStyle.cupertino), + ], + ), + SwipeRefresh.builder( + stateStream: _stream, + onRefresh: () { + _refresh().ignore(); + }, + padding: const EdgeInsets.symmetric(vertical: 10), + itemCount: Colors.primaries.length, + itemBuilder: (context, index) { + return Container( + color: Colors.primaries[index], + height: 100, + child: const Center( + child: Text( + 'Builder example', + style: TextStyle(color: white), + ), + ), + ); + }, + ), + ], + ), + ), + ], + ), + ), + ), + ); + } +} + +class _TabWidget extends StatelessWidget { + const _TabWidget({ + required this.style, + Key? key, + }) : super(key: key); + + final SwipeRefreshStyle style; + + @override + Widget build(BuildContext context) { + return InkWell( + child: SizedBox( + height: 100, + child: Center( + child: Text( + _getText(style), + style: TextStyle(color: _getColor(style).withOpacity(0.5)), + ), + ), + ), + ); + } +} + +class _ExampleBodyWidget extends StatelessWidget { + const _ExampleBodyWidget({ + required this.style, + Key? key, + }) : super(key: key); + + final SwipeRefreshStyle style; + + + @override + Widget build(BuildContext context) { + return Container( + color: _getColor(style), + height: 100, + child: Center( + child: Text( + style == SwipeRefreshStyle.material ? 'Material example' : 'Cupertino example', + style: const TextStyle(color: white), + ), + ), + ); + } +} + +Color _getColor(SwipeRefreshStyle style) { + switch (style) { + case SwipeRefreshStyle.material: + return red; + case SwipeRefreshStyle.cupertino: + return blue; + case SwipeRefreshStyle.builder: + return green; + default: + return black; + } +} + +String _getText(SwipeRefreshStyle style) { + switch (style) { + case SwipeRefreshStyle.material: + return 'Material'; + case SwipeRefreshStyle.cupertino: + return 'Cupertino'; + case SwipeRefreshStyle.builder: + return 'Builder'; + default: + return 'SwipeRefresh'; + } +} + +const white = Color(0xFFFFFFFF); +const black = Color(0xFF000000); +const red = Color(0xFFFF0000); +const green = Color(0xFF00FF00); +const blue = Color(0xFF0000FF); diff --git a/example/lib/screens/my_app.dart b/example/lib/screens/my_app.dart new file mode 100644 index 0000000..c90e9fa --- /dev/null +++ b/example/lib/screens/my_app.dart @@ -0,0 +1,17 @@ +import 'package:example/screens/main_page.dart'; +import 'package:flutter/material.dart'; + +class MyApp extends StatelessWidget { + const MyApp({Key? key}) : super(key: key); + + @override + Widget build(BuildContext context) { + return MaterialApp( + title: 'Refresher Example', + theme: ThemeData( + primarySwatch: Colors.blue, + ), + home: const MainPage(), + ); + } +} diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 9978d26..882d289 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -4,7 +4,7 @@ version: 1.0.0+1 publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=3.0.0 <4.0.0" dependencies: flutter: From 41ec3f6cfbb7a387e6c25139b9cfecf4ba96377b Mon Sep 17 00:00:00 2001 From: Tatiana Sugina Date: Wed, 27 Mar 2024 14:49:53 +0300 Subject: [PATCH 68/69] feat: dart_dependency_validator --- dart_dependency_validator.yaml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 dart_dependency_validator.yaml diff --git a/dart_dependency_validator.yaml b/dart_dependency_validator.yaml new file mode 100644 index 0000000..8638769 --- /dev/null +++ b/dart_dependency_validator.yaml @@ -0,0 +1,5 @@ +exclude: + - "example/**" + +ignore: + - analyzer From 022036065098d3c79f75a4fe331e77dc6e236d40 Mon Sep 17 00:00:00 2001 From: Tatiana Sugina Date: Wed, 27 Mar 2024 14:53:07 +0300 Subject: [PATCH 69/69] feat: dart format --- example/lib/screens/main_page.dart | 5 +++-- lib/src/cupertino_swipe_refresh.dart | 7 ++++--- lib/src/material_swipe_refresh.dart | 11 ++++++----- lib/src/swipe_refresh.dart | 11 ++++++----- lib/src/swipe_refresh_base.dart | 5 +++-- test/swipe_refresh_builder_test.dart | 2 +- test/swipe_refresh_material_test.dart | 3 ++- 7 files changed, 25 insertions(+), 19 deletions(-) diff --git a/example/lib/screens/main_page.dart b/example/lib/screens/main_page.dart index 4a7a05a..711de08 100644 --- a/example/lib/screens/main_page.dart +++ b/example/lib/screens/main_page.dart @@ -131,7 +131,6 @@ class _ExampleBodyWidget extends StatelessWidget { final SwipeRefreshStyle style; - @override Widget build(BuildContext context) { return Container( @@ -139,7 +138,9 @@ class _ExampleBodyWidget extends StatelessWidget { height: 100, child: Center( child: Text( - style == SwipeRefreshStyle.material ? 'Material example' : 'Cupertino example', + style == SwipeRefreshStyle.material + ? 'Material example' + : 'Cupertino example', style: const TextStyle(color: white), ), ), diff --git a/lib/src/cupertino_swipe_refresh.dart b/lib/src/cupertino_swipe_refresh.dart index 3d6378d..2d843b9 100644 --- a/lib/src/cupertino_swipe_refresh.dart +++ b/lib/src/cupertino_swipe_refresh.dart @@ -83,7 +83,8 @@ class CupertinoSwipeRefresh extends SwipeRefreshBase { SwipeRefreshBaseState createState() => _CupertinoSwipeRefreshState(); } -class _CupertinoSwipeRefreshState extends SwipeRefreshBaseState { +class _CupertinoSwipeRefreshState + extends SwipeRefreshBaseState { late final ScrollController _scrollController; @override @@ -102,8 +103,8 @@ class _CupertinoSwipeRefreshState extends SwipeRefreshBaseState _MaterialSwipeRefreshState(); } -class _MaterialSwipeRefreshState extends SwipeRefreshBaseState { +class _MaterialSwipeRefreshState + extends SwipeRefreshBaseState { @override Widget buildRefresher( Key key, @@ -107,8 +108,8 @@ class _MaterialSwipeRefreshState extends SwipeRefreshBaseState extends State { +abstract class SwipeRefreshBaseState + extends State { @protected final GlobalKey refreshKey = GlobalKey(); @@ -79,7 +80,7 @@ abstract class SwipeRefreshBaseState extends State