How to build Adaptive UI with Flutter

Поділитися
Вставка
  • Опубліковано 16 чер 2024
  • Enhance your Flutter app with an Adaptive UI that works and looks great on phones, tablets, foldables, and desktops. Discover how to handle different input modes, such as mouse and keyboard, to create a seamless experience on all devices. Explore powerful adaptive widgets, new display APIs, and quick rules to help you build a highly adaptable and user-friendly Flutter app.
    Flutter adaptive design documentation → goo.gle/3QflMzJ
    Material Design layout guidelines → goo.gle/3QbViPs
    Flutter Display api → goo.gle/4aJqZIc
    Android's Large screen app quality guidelines → goo.gle/3xJWDXy
    Building an animated responsive app layout with Material 3 → goo.gle/flutter-responsive-co...
    Speakers: Reid Baker, Tyler Holland
    Watch more:
    Check out all the Mobile videos at Google I/O 2024 → goo.gle/io24-mobile-yt
    Check out all the Flutter sessions from Google I/O → goo.gle/io24-flutter-yt
    Check out all the Android & Play sessions from Google I/O → goo.gle/io24-androidplay-yt
    Subscribe to Flutter! → goo.gle/FlutterYT
    #GoogleIO
    Products Mentioned: Flutter
    Event: Google I/O 2024
  • Наука та технологія

КОМЕНТАРІ • 52

  • @flutterdev
    @flutterdev  Місяць тому +26

    Check out all the Flutter sessions from Google I/O → goo.gle/io24-flutter-yt

  • @JesusMartinoza
    @JesusMartinoza Місяць тому +121

    Please keep Flutter alive

    • @Apenschi
      @Apenschi Місяць тому +6

      What do you mean? Is there any doubt that they will? I would recommend to watch the Flutter/Dart talk on WASM I/O 2024... if in doubt!

    • @symys6738
      @symys6738 Місяць тому +23

      @@Apenschi Google has a history of abandoning projects so people are asking them not to abandon this one :)

    • @kyriakos098
      @kyriakos098 Місяць тому +22

      Toyota uses flutter for the infontainment system on their new cars, other big brands use flutter too, even google used it for google earth recently. I don't think they'd drop all this. They only kill what they don't consider successful enough or if they've built something they consider better. Flutter doesn't fall in either category.

    • @miguelandres1620
      @miguelandres1620 Місяць тому +3

      @@kyriakos098 WELCOME KOTLIN MULTIPLATFOR

    • @reynoldclare7981
      @reynoldclare7981 Місяць тому

      I hope and wish the same too 🥹

  • @ZeelaxJr
    @ZeelaxJr 24 дні тому +14

    Safe area: 1:07
    Grid view: 4:41
    Foldables (Screen Orientations): 9:18
    Adaptive Widgets: 12:32
    Media Query: 13:04
    Layout builder: 14:22
    Dialogs (Example 1): 15:26
    Navigation UI (Example 2): 18:54
    Custom Layout (Example 3): 21:48
    Adaptive Inputs: 24:26
    Things to keep in mind: 28:11
    Recap: 32:57

  • @nikitapatel6820
    @nikitapatel6820 Місяць тому +38

    Flutter is best

  • @bartekpacia
    @bartekpacia Місяць тому +6

    Great job Reid and Tyler!

  • @ReynirOrnBachmannGudmundsson
    @ReynirOrnBachmannGudmundsson Місяць тому +3

    Wicket cool pointers, keep up the good work 👍

  • @dexterfury538
    @dexterfury538 Місяць тому +5

    Awesome Thanks alot to the Flutter team

  • @roninspect4357
    @roninspect4357 Місяць тому +8

    very cool! Flutter ftw

  • @jurassa9588
    @jurassa9588 Місяць тому +8

    If I was calling the shots at Google, I'd ditch Compose, KMP, and Compose Multiplatform altogether and go all-in on Flutter/Dart, just like my competitor's got it figured out with Swift/SwiftUI.

    • @ahmedbathily7013
      @ahmedbathily7013 Місяць тому +1

      Google is some time very weird instead of focusing on flutter but good comes with compose which not much mature ,google would just focus on flutter only Flutter

    • @muddi900
      @muddi900 27 днів тому

      Kotlin is more performant and would remain so for the foreseeable future.

    • @ahmedbathily7013
      @ahmedbathily7013 26 днів тому +1

      @@muddi900 now no much different between flutter and native , flutter is mature now so performance is not a argument

  • @nialegu
    @nialegu 18 днів тому +1

    Flutter is the best UI framework, it is true

  • @kennyfully88
    @kennyfully88 Місяць тому +3

    Flutter flies fluently fast for frameworks!

  • @MixVidz-wr9tu
    @MixVidz-wr9tu Місяць тому +1

    Flutter is interesting 😍😍

  • @shaysframe1472
    @shaysframe1472 29 днів тому

    Anyway to get the Presentation file? is it opensource?

  • @skzulka
    @skzulka 29 днів тому

    Wah, anjir ini yang gua tunggu tunggu. keren!!!

  • @srhanzd3022
    @srhanzd3022 Місяць тому

    🔥🔥🔥

  • @johanordenes1557
    @johanordenes1557 29 днів тому

    Is there any difference between using isMoreTallerThanWide in LayoutBuilder, and using OrientationBuilder? It seems like I can achieve the same result with both widgets. And about performance, which one is better to use?

    • @tylerhollandgoog
      @tylerhollandgoog 27 днів тому +2

      Good question! There is a key difference, and it's for reasons like the ones we reference at 7:13.
      If the app is running in a non-fullscreen mode, OrientationBuilder wouldn't actually tell you if the window your app is running in is more tall than wide. Let's use a tablet as an example, it could be in landscape mode, but the app could be running on 1/3rd of the display with another app taking up the other 2/3rds, in which case your app would actually be taller than it is wide, even though you're in landscape orientation.
      Another difference is that LayoutBuilder allows you to move your widget to different places in your app, and it will always behave as expected because it gets the local min and max height and width. Let's say the widget was originally taking up the entire screen, but you want to move it to a side bar or underneath some other widget. The available space for the widget might change such that while the app window as a whole is more tall than wide, the space the widget has is actually wider than it is tall.
      Performance wise, there's essentially no difference between the two. If your screen size isn't actively being changed, both OrientationBuilder and LayoutBuilder would do some quick calculations to grab the current orientation or available space (respectively), and then build the child widget. All of that is extremely fast.
      If you're changing the size of the app window or the space your widget is given to render, LayoutBuilder would end up rebuilding your widgets every time that size changes (with a max of once per frame refresh). This isn't really a "performance" implication, it just means the UI would respond correctly while the resizing is happening. Flutter can rebuild widgets extremely quickly.

    • @johanordenes1557
      @johanordenes1557 27 днів тому

      @@tylerhollandgoog Amazing!! Thanks

  • @tomaselke3670
    @tomaselke3670 24 дні тому +2

    The cheering is a bit much, guys.

  • @faheemahmadofficial7701
    @faheemahmadofficial7701 Місяць тому

    Finally

  • @heshansandeepa9471
    @heshansandeepa9471 11 днів тому

    nice

  • @kwesikayofficial3078
    @kwesikayofficial3078 Місяць тому

    Whiles react conf is going

  • @srhanzd3022
    @srhanzd3022 Місяць тому

    😍😍😍

  • @srhanzd3022
    @srhanzd3022 Місяць тому

    💪💪💪🔥🔥🔥😍😍😍

  • @koustav2008
    @koustav2008 28 днів тому

    EXCELLENT !!!

  • @user-kh6rp6yx1j
    @user-kh6rp6yx1j 14 днів тому

    Hey, good.

  • @srhanzd3022
    @srhanzd3022 Місяць тому

    😎😎😎

  • @Alisuhari
    @Alisuhari Місяць тому +2

    Please google never bin flutter

  • @meyeti5422
    @meyeti5422 28 днів тому

    rangeeeeeeeeeeee

  • @isaccorossi6700
    @isaccorossi6700 Місяць тому +1

    Flutter is awesome, but the it's logo not so much..

  • @jeeva3984
    @jeeva3984 Місяць тому

    Finally flutter team exists in Google 😌😌

  • @miguelandres1620
    @miguelandres1620 Місяць тому

    WELCOME KOTLIN MULTIPLATFOR

  • @duckydude20
    @duckydude20 29 днів тому

    refactor refactor refactor. but more than half the people don't give a sh8t. i don't like those people... refactoring is the only way to good code. thanks for covering that... small widgets is the way to go...

  • @kwesikayofficial3078
    @kwesikayofficial3078 Місяць тому

    Lol

  • @NarendraRajput-yc6wc
    @NarendraRajput-yc6wc 8 днів тому

    Is add Mein Bakri Ki Tarah faltu Mein bakbak Waqt Lage rahte ho Hindustan mein koi hai jo English Jaanta hun

  • @jakechakola
    @jakechakola Місяць тому +4

    Please keep Flutter alive

    • @miguelandres1620
      @miguelandres1620 Місяць тому

      NO , THEY LEAVE FLUTTER , WELCOME KOTLIN MULTIPLATFOR