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 'package:fruitshorts/core/data/services/auth_controller.dart';
|
||||
import 'package:fruitshorts/core/data/services/auth_session_store.dart';
|
||||
import 'package:fruitshorts/core/platform/haptics.dart';
|
||||
import 'package:fruitshorts/core/theme/app_colors.dart';
|
||||
import 'package:fruitshorts/core/widgets/app_pull_to_refresh.dart';
|
||||
import 'package:fruitshorts/core/widgets/empty_state.dart';
|
||||
import 'package:fruitshorts/l10n/app_localizations.dart';
|
||||
import 'package:fruitshorts/pages/watch_records/watch_records_page.dart';
|
||||
@@ -77,15 +78,10 @@ void main() {
|
||||
find.byKey(const Key('watch-record-episode-the-signal-demo')),
|
||||
findsOneWidget,
|
||||
);
|
||||
final refresh = tester.widget<RefreshIndicator>(
|
||||
find.byType(RefreshIndicator),
|
||||
);
|
||||
expect(refresh.color, AppColors.blue);
|
||||
expect(refresh.backgroundColor, AppColors.card);
|
||||
expect(refresh.strokeWidth, 2);
|
||||
expect(find.byType(AppPullToRefresh), findsOneWidget);
|
||||
final list = tester.widget<ListView>(
|
||||
find.descendant(
|
||||
of: find.byType(RefreshIndicator),
|
||||
of: find.byType(AppPullToRefresh),
|
||||
matching: find.byType(ListView),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user