Skip to content

Commit 1c1134d

Browse files
committed
- Example AppTheme updated to useMaterial3
1 parent 97bea94 commit 1c1134d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

example/lib/app/theme.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import 'package:flutter/material.dart';
44
class AppTheme {
55
static final light = ThemeData(
66
brightness: Brightness.light,
7+
useMaterial3: true,
78
colorScheme: const ColorScheme.light(secondary: Colors.red),
89
disabledColor: Colors.grey.shade400,
910
visualDensity: VisualDensity.adaptivePlatformDensity,
@@ -13,6 +14,7 @@ class AppTheme {
1314
brightness: Brightness.dark,
1415
colorScheme: const ColorScheme.dark(secondary: Colors.red),
1516
disabledColor: Colors.grey.shade400,
17+
useMaterial3: true,
1618
visualDensity: VisualDensity.adaptivePlatformDensity,
1719
);
1820
}

0 commit comments

Comments
 (0)