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