feat(ui): 更新底栏图标与播放加载视觉
This commit is contained in:
1 parent
8ec6df2be5
commit
12b1a11bd3
11 files changed
+584
-70
No files matched your search
@@ -313,7 +313,7 @@ void main() {
|
||||
.first;
|
||||
expect(loadingOverlay, findsOneWidget);
|
||||
expect(tester.widget<IgnorePointer>(loadingOverlay).ignoring, isTrue);
|
||||
expect(tester.getSize(loadingOverlay), const Size(40, 40));
|
||||
expect(tester.getSize(loadingOverlay), const Size(56, 36));
|
||||
expect(
|
||||
tester
|
||||
.widget<AnimatedOpacity>(
|
||||
@@ -327,26 +327,29 @@ void main() {
|
||||
);
|
||||
expect(
|
||||
tester.getSize(find.byKey(const Key('player-loading-surface'))),
|
||||
const Size(40, 40),
|
||||
const Size(56, 36),
|
||||
);
|
||||
expect(
|
||||
tester.getSize(find.byKey(const Key('player-entry-loading'))),
|
||||
const Size(20, 20),
|
||||
const Size(48, 29),
|
||||
);
|
||||
expect(
|
||||
tester
|
||||
.widget<CircularProgressIndicator>(
|
||||
find.byKey(const Key('player-entry-loading')),
|
||||
)
|
||||
.color,
|
||||
Colors.white,
|
||||
find.descendant(
|
||||
of: loadingOverlay,
|
||||
matching: find.byType(CircularProgressIndicator),
|
||||
),
|
||||
findsNothing,
|
||||
);
|
||||
expect(find.text('Loading'), findsNothing);
|
||||
expect(find.byKey(const Key('player-entry-loading-track')), findsNothing);
|
||||
expect(
|
||||
find.byKey(const Key('player-entry-loading-highlight')),
|
||||
findsNothing,
|
||||
);
|
||||
final loadingSurface = tester.widget<Container>(
|
||||
find.byKey(const Key('player-loading-surface')),
|
||||
);
|
||||
final decoration = loadingSurface.decoration! as BoxDecoration;
|
||||
expect(decoration.color, AppColors.refreshIndicatorSurface);
|
||||
expect(decoration.borderRadius, BorderRadius.circular(20));
|
||||
expect(loadingSurface.decoration, isNull);
|
||||
expect(
|
||||
find.descendant(of: loadingOverlay, matching: find.byType(ColoredBox)),
|
||||
findsNothing,
|
||||
|
||||
Reference in new issue
Block a user