feat(flutter): 统一文字下拉刷新
This commit is contained in:
1 parent
0ad2cd5e95
commit
5bdcb989bb
19 files changed
+320
-38
No files matched your search
@@ -13,6 +13,7 @@ import '../../core/formatting/localized_date_time.dart';
|
||||
import '../../core/theme/app_colors.dart';
|
||||
import '../../core/theme/app_dimens.dart';
|
||||
import '../../core/theme/app_theme.dart';
|
||||
import '../../core/widgets/app_pull_to_refresh.dart';
|
||||
import '../../core/widgets/empty_state.dart';
|
||||
import '../../core/widgets/plain_page_scaffold.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
@@ -65,7 +66,7 @@ class _NoticesPageState extends State<NoticesPage> {
|
||||
);
|
||||
}
|
||||
if (_controller.error != null && _controller.notices.isEmpty) {
|
||||
return RefreshIndicator(
|
||||
return AppPullToRefresh(
|
||||
onRefresh: _controller.refresh,
|
||||
child: ListView(
|
||||
physics: const AlwaysScrollableScrollPhysics(),
|
||||
@@ -90,7 +91,7 @@ class _NoticesPageState extends State<NoticesPage> {
|
||||
);
|
||||
}
|
||||
if (_controller.notices.isEmpty) {
|
||||
return RefreshIndicator(
|
||||
return AppPullToRefresh(
|
||||
onRefresh: _controller.refresh,
|
||||
child: ListView(
|
||||
physics: const AlwaysScrollableScrollPhysics(),
|
||||
@@ -108,7 +109,7 @@ class _NoticesPageState extends State<NoticesPage> {
|
||||
),
|
||||
);
|
||||
}
|
||||
return RefreshIndicator(
|
||||
return AppPullToRefresh(
|
||||
onRefresh: _controller.refresh,
|
||||
child: ListView.separated(
|
||||
key: const Key('notices-list'),
|
||||
|
||||
Reference in new issue
Block a user