Closed gerfalcon closed 7 months ago
Fix Example contains the default useMaterial3 = true #21
As of version v3.16, ThemeData.useMaterial3 is set true by default.
v3.16
true
example/lib/main.dart
Problem
Fix Example contains the default useMaterial3 = true #21
Reason
As of version
v3.16
, ThemeData.useMaterial3 is settrue
by default.Changed file
example/lib/main.dart
Code sample
``` dart class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Gemini', themeMode: ThemeMode.dark, debugShowCheckedModeBanner: false, darkTheme: ThemeData.dark( useMaterial3: true, /// TODO: We can remove it ).copyWith( colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue), cardTheme: CardTheme(color: Colors.blue.shade900)), home: const MyHomePage(), ); } } ```