feat(flutter): 统一文字下拉刷新

This commit is contained in:
Zhou Weidong committed 2026-10-20 16:47:13 +08:00
1 parent 0ad2cd5e95
commit 5bdcb989bb
19 files changed
+320 -38

No files matched your search

+3 -1
View File
@@ -12,6 +12,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 '../store/recharge_page.dart';
@@ -116,9 +117,10 @@ class _WalletPageState extends State<WalletPage> {
onAction: () => unawaited(wallet.load()),
);
}
return RefreshIndicator(
return AppPullToRefresh(
onRefresh: wallet.load,
child: ListView(
physics: const AlwaysScrollableScrollPhysics(),
padding: const EdgeInsets.fromLTRB(16, 8, 16, 28),
children: [
_BalanceHero(wallet: snapshot.wallet),