This commit is contained in:
@@ -61,9 +61,23 @@ void main() {
|
||||
|
||||
expect(chipTheme.backgroundColor, equals(Colors.black.withAlpha(0x1f)));
|
||||
expect(chipTheme.selectedColor, equals(Colors.black.withAlpha(0x3d)));
|
||||
expect(chipTheme.secondarySelectedColor, equals(Colors.red.withAlpha(0x3d)));
|
||||
expect(chipTheme.deleteIconColor, equals(Colors.black.withAlpha(0xde)));
|
||||
});
|
||||
|
||||
testWidgets('Chip theme is built by ThemeData with dark mode enabled', (WidgetTester tester) async {
|
||||
final ThemeData theme = ThemeData(
|
||||
platform: TargetPlatform.android,
|
||||
brightness: Brightness.dark,
|
||||
);
|
||||
final ChipThemeData chipTheme = theme.chipTheme;
|
||||
|
||||
expect(chipTheme.backgroundColor, equals(Colors.white.withAlpha(0x1f)));
|
||||
expect(chipTheme.selectedColor, equals(Colors.white.withAlpha(0x3d)));
|
||||
expect(chipTheme.secondarySelectedColor, equals(Colors.tealAccent[200]!.withAlpha(0x3d)));
|
||||
expect(chipTheme.deleteIconColor, equals(Colors.white.withAlpha(0xde)));
|
||||
});
|
||||
|
||||
testWidgets('Chip uses ThemeData chip theme if present', (WidgetTester tester) async {
|
||||
final ThemeData theme = ThemeData(
|
||||
platform: TargetPlatform.android,
|
||||
|
||||
Reference in New Issue
Block a user