fix(flutter): 改为浅色播放页底栏
This commit is contained in:
1 parent
cc26c5472b
commit
e2162773e2
4 files changed
+26
-13
No files matched your search
@@ -11,6 +11,7 @@ import 'package:fruitshorts/core/data/models/play_ticket.dart';
|
||||
import 'package:fruitshorts/core/data/repositories/favorite_repository.dart';
|
||||
import 'package:fruitshorts/core/data/repositories/playback_repository.dart';
|
||||
import 'package:fruitshorts/core/data/repositories/watch_history_repository.dart';
|
||||
import 'package:fruitshorts/core/theme/app_colors.dart';
|
||||
import 'package:fruitshorts/pages/player/widgets/player_center_toggle.dart';
|
||||
import 'package:fruitshorts/pages/player/widgets/seek_progress_bar.dart';
|
||||
|
||||
@@ -186,6 +187,16 @@ void main() {
|
||||
final rail = tester.getRect(
|
||||
find.byKey(const Key('player-interaction-rail')),
|
||||
);
|
||||
expect(
|
||||
tester
|
||||
.widget<ColoredBox>(find.byKey(const Key('player-background')))
|
||||
.color,
|
||||
AppColors.ink,
|
||||
);
|
||||
final panel = tester.widget<Container>(
|
||||
find.byKey(const Key('player-controls-bottom')),
|
||||
);
|
||||
expect((panel.decoration! as BoxDecoration).color, AppColors.card);
|
||||
|
||||
expect(bottom.height, lessThanOrEqualTo(200));
|
||||
expect(bottom.top, greaterThanOrEqualTo(screenHeight * 0.78));
|
||||
|
||||
Reference in new issue
Block a user