Upgrade to Pro — share decks privately, control downloads, hide ads and more …

What's New in Flutter (By: Adil Soomro) - DevFe...

What's New in Flutter (By: Adil Soomro) - DevFest Lahore 2024

Talk by Adil Soomro (https://www.linkedin.com/in/adilsoomro/) at DevFest Lahore 2024 by GDG Lahore.

GDG Lahore

December 15, 2024
Tweet

More Decks by GDG Lahore

Other Decks in Programming

Transcript

  1. Pick a platform 01 Build your app 02 Pick another

    platform 03 Build your app 04 Pick another platform 05 Build your app… 06 Traditional development
  2. 02 Pick a platform 01 Build your app 05 And

    another 04 And another 03 Pick another platform With Flutter
  3. Source: JetBrains 2023 State of Developer Ecosystem survey The most

    popular cross-platform framework in the world*
  4. Easily integrate generative AI features Tap into Google's most capable

    and general family of models Build cross-platform AI-powered apps Google AI Dart SDK
  5. import 'package:google_generative_ai/google_generative_ai.dart'; final apiKey = Platform.environment['GOOGLE_API_KEY']!; void main() async {

    final model = GenerativeModel(model: 'gemini-pro', apiKey: apiKey); final content = [ Content.text("Write a short story about Flutter and Dart"), ]; final response = await model.generateContent(content); print(response.text); }
  6. final model = FirebaseVertexAI.instance.generativeModel( model: 'gemini-pro' ); final content =

    [ Content.text("Write a short story about Flutter and Dart"), ]; final response = await model.generateContent(content); print(response.text);