fix(flutter): 修复导航白线与观看记录错误透传
This commit is contained in:
1 parent
ac706a42a5
commit
732483465c
8 files changed
+85
-3
No files matched your search
@@ -40,6 +40,18 @@ void main() {
|
||||
}
|
||||
});
|
||||
|
||||
test('should_define_non_white_outline_tokens_in_both_themes', () {
|
||||
final light = AppTheme.light().colorScheme;
|
||||
final dark = AppTheme.dark().colorScheme;
|
||||
|
||||
expect(light.outline, AppColors.outlineLight);
|
||||
expect(light.outlineVariant, AppColors.outlineVariantLight);
|
||||
expect(dark.outline, AppColors.outlineDark);
|
||||
expect(dark.outlineVariant, AppColors.outlineVariantDark);
|
||||
expect(dark.outlineVariant.computeLuminance(), lessThan(0.2));
|
||||
expect(light.outlineVariant.computeLuminance(), lessThan(0.92));
|
||||
});
|
||||
|
||||
testWidgets('should_expose_klein_blue_through_widget_theme', (tester) async {
|
||||
late ThemeData applied;
|
||||
await tester.pumpWidget(
|
||||
|
||||
Reference in new issue
Block a user