babakcode / flutter_gemini

Flutter Google Gemini SDK
https://pub.dev/packages/flutter_gemini
BSD 3-Clause "New" or "Revised" License
176 stars 53 forks source link

Enhance the main example by removing the useMaterial3 flag, which is … #22

Closed gerfalcon closed 7 months ago

gerfalcon commented 7 months ago

Problem

Fix Example contains the default useMaterial3 = true #21

Reason

As of version v3.16, ThemeData.useMaterial3 is set true by default.

Changed file

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(), ); } } ```