babakcode / flutter_gemini

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

Example contains the default useMaterial3 = true #21

Closed gerfalcon closed 6 months ago

gerfalcon commented 6 months ago

Problem

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

"We may not need this anymore" - @khanhnwin at the Observable Flutter #38 Google AI Dart SDK session

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(), ); } } ```
Doctor output ```console Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.19.2, on macOS 12.6.2 21G320 darwin-arm64, locale en-AE) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [!] Xcode - develop for iOS and macOS (Xcode 13.4.1) ✗ Flutter requires Xcode 14 or higher. Download the latest version or update via the Mac App Store. ! CocoaPods 1.11.3 out of date (1.13.0 is recommended). CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side. Without CocoaPods, plugins will not work on iOS or macOS. For more info, see https://flutter.dev/platform-plugins To upgrade see https://guides.cocoapods.org/using/getting-started.html#updating-cocoapods for instructions. [✓] Chrome - develop for the web [✓] Android Studio (version 2022.3) [✓] IntelliJ IDEA Ultimate Edition (version 2023.3.4) [✓] Connected device (2 available) [✓] Network resources ! Doctor found issues in 1 category. ```