From f4b858397a65956024b92e599b3db63eea0bc1fb Mon Sep 17 00:00:00 2001 From: KangkangInfinite <32859126+ManInTheWind@users.noreply.github.com> Date: Tue, 14 Mar 2023 18:04:55 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8F=F0=9F=8F=BBupdate=20demo=20and=20d?= =?UTF-8?q?ependencies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit update demo from RefreshIndicatorMode to PullToRefreshIndicatorMode, and update visibility_detector version from 0.3.3 to 0.4.0+2(latest) --- example/lib/common/push_to_refresh_header.dart | 12 ++++++------ pubspec.yaml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/example/lib/common/push_to_refresh_header.dart b/example/lib/common/push_to_refresh_header.dart index 84c539f..eaf6721 100644 --- a/example/lib/common/push_to_refresh_header.dart +++ b/example/lib/common/push_to_refresh_header.dart @@ -28,16 +28,16 @@ class PullToRefreshHeader extends StatelessWidget { return Container(); } String text = ''; - if (_info.mode == RefreshIndicatorMode.armed) { + if (_info.mode == PullToRefreshIndicatorMode.armed) { text = 'Release to refresh'; - } else if (_info.mode == RefreshIndicatorMode.refresh || - _info.mode == RefreshIndicatorMode.snap) { + } else if (_info.mode == PullToRefreshIndicatorMode.refresh || + _info.mode == PullToRefreshIndicatorMode.snap) { text = 'Loading...'; - } else if (_info.mode == RefreshIndicatorMode.done) { + } else if (_info.mode == PullToRefreshIndicatorMode.done) { text = 'Refresh completed.'; - } else if (_info.mode == RefreshIndicatorMode.drag) { + } else if (_info.mode == PullToRefreshIndicatorMode.drag) { text = 'Pull to refresh'; - } else if (_info.mode == RefreshIndicatorMode.canceled) { + } else if (_info.mode == PullToRefreshIndicatorMode.canceled) { text = 'Cancel refresh'; } diff --git a/pubspec.yaml b/pubspec.yaml index e54544f..1e4904d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -10,6 +10,6 @@ environment: dependencies: flutter: sdk: flutter - visibility_detector: ^0.3.3 + visibility_detector: ^0.4.0+2