ThemeExtensions | Decoding Flutter

Sdílet
Vložit
  • čas přidán 2. 05. 2022
  • Find out how to get the most value out of your Flutter app's theme, including how to use the new ThemeExtensions feature, arriving in Flutter in May, 2022. To see it in action, check out the DartPad below!
    DartPad → goo.gle/3ycoi1G
    Watch more Decoding Flutter episodes → goo.gle/DecodingFlutter
    Don’t miss an episode, subscribe to Flutter → goo.gle/FlutterYT
    #DecodingFlutter #Flutter #Developer
    product: Flutter - Development - User interface;
  • Věda a technologie

Komentáře • 73

  • @d.winkler
    @d.winkler Před 2 lety +70

    Finally something about styling and themes. What I still miss is a really good Documentation for each widget and parameter and the usage with image examples that would be perfect. Good job, like your Videos 👍

    • @flutterdev
      @flutterdev  Před 2 lety +5

      Hi D. Winkler, you'll find tons of documentation on all our widgets on our site. Check it out here: docs.flutter.dev/development/ui/widgets

    • @d.winkler
      @d.winkler Před 2 lety +2

      @@flutterdev that's only half of what I would like.

    • @flutterdev
      @flutterdev  Před 2 lety +7

      @@d.winkler Thank you for replying! Image examples of Theme classes is a really interesting idea. We will pass this on to our team!

    • @monisashraf1647
      @monisashraf1647 Před rokem +4

      I would second the D. Winkler thought here.. Flutter is amazing but seems for new bees documentation is bit harder

  • @MikeNugget
    @MikeNugget Před 2 lety +28

    Flutter team at the beginning - lets hardcode everything in the semantics, yeah! Yeah, lets do this! Yohoo! Nice idea!
    Flutter team now - oh, crap.

  • @joranmulderij
    @joranmulderij Před 2 lety +2

    Yes I have been waiting for this! Thanks Flutter!

  • @LucaFang
    @LucaFang Před 2 lety +28

    App theming is one of the few things that in Flutter really sucks, especially for someone that came from web development. Nice work, Flutter Team!

  • @RodyDavis
    @RodyDavis Před rokem +2

    Super excited about the upcoming extensions 🔥

    • @flutterdev
      @flutterdev  Před rokem +1

      We're excited that you're excited, Rody!
      If you enjoyed this video, be sure to check out more episodes of Decoding Flutter here:
      goo.gle/DecodingFlutter
      Happy Fluttering 😎

  • @jajasaria
    @jajasaria Před 2 lety +1

    awesome video as ever. thanks

  • @realjohnny
    @realjohnny Před 2 lety +4

    This man definitely has a great acting career ahead of him

    • @gregsullivan7408
      @gregsullivan7408 Před 6 měsíci

      LOL!!! Very well said. 🤣 Move over Jim Carrey 🤣

  • @amirgamil
    @amirgamil Před 2 lety +12

    I'll be honest Craig. When Filip left and you arrived, I was disappointed. But I gotta say, I've come to like your style and your humour. And most importantly, you're clear as well. You're good man! Keep it up! 👍

    • @craiglabenz9147
      @craiglabenz9147 Před 2 lety +1

      Well shucks - thanks! You wouldn't believe how big Filip's feet are, so I was a little intimidated myself 😂

    • @amirgamil
      @amirgamil Před 2 lety

      @@craiglabenz9147 You're doing a fine job of filling them my friend. Keep up the great work! 👍👏

  • @yehorh
    @yehorh Před 2 lety +1

    Wow! finally 🤩🥳! thx!

  • @rydmike
    @rydmike Před 2 lety +1

    Been waiting for this! This is great, hope it lands at in new version released at Google IO

    • @craiglabenz9147
      @craiglabenz9147 Před 2 lety +1

      It's in the beta channel today and will hit stable at the next release!

  • @timgo2345
    @timgo2345 Před 2 lety

    This will be very useful

  • @redsun9594
    @redsun9594 Před 2 lety +4

    This guy is hilarious, great video

  • @TheRRJShow
    @TheRRJShow Před 2 lety +12

    😂😂 expressions are on point...👌

  • @akkay5
    @akkay5 Před 2 lety +9

    Which stable version will this feature come out?

    • @craiglabenz9147
      @craiglabenz9147 Před 2 lety +5

      This feature is currently in the beta channel and will appear in the next stable release.

  • @nathanmersha5295
    @nathanmersha5295 Před 2 lety +2

    use double dimond bracket like (extensions: [
    ...])

    • @StrikerTVFang
      @StrikerTVFang Před 9 měsíci

      Thank you! I was wondering why it wasn't working for me.

  • @ahmadalyaghshi
    @ahmadalyaghshi Před 2 lety +6

    That "You shall not pass" was EPIC, i thought it really was Gandalf for a sec, lol.

    • @hojdog
      @hojdog Před 3 měsíci +1

      Easily amused

  • @farahrayis5928
    @farahrayis5928 Před 2 lety +13

    This guy is so entertaining, it was a really fun and informative lesson. Thank you very much flutter.

    • @flutterdev
      @flutterdev  Před 2 lety +2

      We appreciate your feedback and you're very welcome!

    • @craiglabenz9147
      @craiglabenz9147 Před 2 lety +4

      Thanks! I really appreciate that :)

    • @hojdog
      @hojdog Před 2 lety +3

      Yes really entertaining for toddlers

  • @joaquinleimeter1816
    @joaquinleimeter1816 Před rokem

    Where can I find some docs on what lerp (linear interpolation I guess) is in the context of flutter or material design or themes haha. Thanks!

  • @agyieus777
    @agyieus777 Před 2 lety +2

    I am glad to see something about styling but it is so much boilerplate for just custom styling, it should be as simple as creating a StyleSheet for react native, I hope the Flutter team also thinks that this should be simplified in the future.

    • @craiglabenz9147
      @craiglabenz9147 Před 2 lety +1

      In theory, Flutter's version of a stylesheet is the separated theme. What made this quite painful in the past was the lack of complete extensibility, like CSS obviously offers natively. ThemeExtensions should go a long way toward bridging that gap!

    • @agyieus777
      @agyieus777 Před 2 lety

      @@craiglabenz9147 of course, I am not saying that this is not a very good step, the extensibility definitely needed some love, what I meant was more on the side of the trouble a dev needs to go through to extend a simple theme.

  • @JohnDoe-fv5cu
    @JohnDoe-fv5cu Před 2 lety

    We'll use it. In a couple of years when all those millions of packages in our pubspecs support this new version of Flutter. Looking forward to it

    • @craiglabenz9147
      @craiglabenz9147 Před 2 lety

      This is in beta now, will be in the next stable, and isn't a feature you need to wait for any external packages to support before you can start using it. The second you're ready to define a ThemeExtension, there's nothing that can stop you!

  • @Hasan-wf7wb
    @Hasan-wf7wb Před 2 lety

    Nice

  • @orghaniian
    @orghaniian Před 2 lety +6

    nice, since which version of Flutter is it available ?

    • @rivella99
      @rivella99 Před 2 lety +1

      In the DartPad mentioned Flutter version 2.13 is used.

    • @craiglabenz9147
      @craiglabenz9147 Před 2 lety

      @@rivella99 That's correct - this feature is currently in the beta channel and will appear in the next stable release.

  • @RiwenX
    @RiwenX Před 2 lety +1

    The API looks a bit awkward tbh, but it's a step in the right direction

  • @hyacinthenjimbong6310
    @hyacinthenjimbong6310 Před 2 lety

    Great

  • @degroria
    @degroria Před 2 lety +1

    Flutter dev should please consider making the text font adapt to device selected fonts. It's hard doing the native thing.

    • @flutterdev
      @flutterdev  Před 2 lety +3

      Hey there - The team is aware of this feature request, but unfortunately there's no solution yet. That's being tracked on this issue here: github.com/flutter/flutter/issues/48381

    • @degroria
      @degroria Před 2 lety

      @@flutterdev I'm glad you are aware of this issue. I was hoping to see this in flutter 3, but a little disappointed. I love flutter tho

  • @ivanyoed
    @ivanyoed Před 2 lety +2

    Amazing speaker, to be honest.

  • @wolfgangschneider3743
    @wolfgangschneider3743 Před 2 lety +2

    😁 I was just watching Lord of the Rings the other day

  • @aouadicharaf1038
    @aouadicharaf1038 Před 10 měsíci

    ❤❤❤

  • @merthyr1831
    @merthyr1831 Před 2 lety +3

    Just a request to Flutter team: can we get some Flutter plugin addition to auto-write copyWith methods? takes a long time to do it manually and could be easily automated!

    • @a7md0_
      @a7md0_ Před 2 lety +3

      Freezed package does that, also support toJson & fromJson when combined with json_serializable

    • @Pedro5antos_
      @Pedro5antos_ Před 2 lety +2

      Normally your IDE has plugins/extensions to do that and more

  • @fredgotpub871
    @fredgotpub871 Před 2 lety +1

    Does anybody understand "class MyClass extends ThemeExtension" with the nested class inside ? How can it work ?

    • @HungNguyen-pu1dv
      @HungNguyen-pu1dv Před 2 lety +2

      It's quite similar to class AbcState extends State when you write stateful widget code

    • @craiglabenz9147
      @craiglabenz9147 Před 2 lety +1

      Trippy, I know.

    • @fredgotpub871
      @fredgotpub871 Před 2 lety +1

      @@HungNguyen-pu1dv you mean ThemeExtension is an abstract class and we override lerp+copyWith function and then we 're good to go ? Seems logical now, thanks.

  • @rakeshgowda762
    @rakeshgowda762 Před 2 lety +1

    Hi flutter team i m just wanted to know that is there hard code push or dynamic update the app without uploading to app/play store is available in flutter

  • @rivella99
    @rivella99 Před 2 lety

    Will there also be support for extending TextTheme?

  • @_chappie_
    @_chappie_ Před 2 lety

    I use Flutter Flex Scheme

  • @Ainigma
    @Ainigma Před 2 lety +3

    The code snippet at 4:42 does not work, use this instead:
    extensions: [
    HeroCardStyle(),
    ],

  • @tanzeelrehman1513
    @tanzeelrehman1513 Před 2 lety

    When a human teach VS when a cartoon teach

  • @scottgreen3703
    @scottgreen3703 Před 2 lety +5

    0:29 i didn't understand what you said? Please keep this lessons normal talking and simple and clear as much as you can so everyone can understand 🙏

    • @richardjecooke8036
      @richardjecooke8036 Před 2 lety +3

      Yes. Please stop doing impressions. They just make your videos worse.

  • @algeriennesaffaires7017

    Why just not making a normal video without the un funny comedy

  • @scottgreen3703
    @scottgreen3703 Před 2 lety +8

    I didn't understand 😕 please go straight to the example and avoid all the unnecessary stories and funny reactions, go straight to the problem then show an example explain it and that's it, keep it professional please

  • @NoJerry
    @NoJerry Před 2 lety +1

    Funny eyes, exaggerated words, I don't like this host, I don't think he is a technical guy. Hope Emily be back

    • @larsien85
      @larsien85 Před 2 lety

      but it is more effective to understand. Everything has relative