ThemeExtensions | Decoding Flutter
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
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 👍
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
@@flutterdev that's only half of what I would like.
@@d.winkler Thank you for replying! Image examples of Theme classes is a really interesting idea. We will pass this on to our team!
I would second the D. Winkler thought here.. Flutter is amazing but seems for new bees documentation is bit harder
Flutter team at the beginning - lets hardcode everything in the semantics, yeah! Yeah, lets do this! Yohoo! Nice idea!
Flutter team now - oh, crap.
Same observation
Haha, this is more or less 100% correct
It was just a terrible idea.
Yes I have been waiting for this! Thanks Flutter!
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!
Super excited about the upcoming extensions 🔥
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 😎
awesome video as ever. thanks
This man definitely has a great acting career ahead of him
LOL!!! Very well said. 🤣 Move over Jim Carrey 🤣
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! 👍
Well shucks - thanks! You wouldn't believe how big Filip's feet are, so I was a little intimidated myself 😂
@@craiglabenz9147 You're doing a fine job of filling them my friend. Keep up the great work! 👍👏
Wow! finally 🤩🥳! thx!
Been waiting for this! This is great, hope it lands at in new version released at Google IO
It's in the beta channel today and will hit stable at the next release!
This will be very useful
This guy is hilarious, great video
😂😂 expressions are on point...👌
Which stable version will this feature come out?
This feature is currently in the beta channel and will appear in the next stable release.
use double dimond bracket like (extensions: [
...])
Thank you! I was wondering why it wasn't working for me.
That "You shall not pass" was EPIC, i thought it really was Gandalf for a sec, lol.
Easily amused
This guy is so entertaining, it was a really fun and informative lesson. Thank you very much flutter.
We appreciate your feedback and you're very welcome!
Thanks! I really appreciate that :)
Yes really entertaining for toddlers
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!
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.
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!
@@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.
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
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!
Nice
nice, since which version of Flutter is it available ?
In the DartPad mentioned Flutter version 2.13 is used.
@@rivella99 That's correct - this feature is currently in the beta channel and will appear in the next stable release.
The API looks a bit awkward tbh, but it's a step in the right direction
Great
Flutter dev should please consider making the text font adapt to device selected fonts. It's hard doing the native thing.
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
@@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
Amazing speaker, to be honest.
😁 I was just watching Lord of the Rings the other day
❤❤❤
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!
Freezed package does that, also support toJson & fromJson when combined with json_serializable
Normally your IDE has plugins/extensions to do that and more
Does anybody understand "class MyClass extends ThemeExtension" with the nested class inside ? How can it work ?
It's quite similar to class AbcState extends State when you write stateful widget code
Trippy, I know.
@@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.
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
Will there also be support for extending TextTheme?
You can put anything in extensions, colors, text styles, and text themes!
I use Flutter Flex Scheme
The code snippet at 4:42 does not work, use this instead:
extensions: [
HeroCardStyle(),
],
When a human teach VS when a cartoon teach
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 🙏
Yes. Please stop doing impressions. They just make your videos worse.
Why just not making a normal video without the un funny comedy
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
Same opinion
Funny eyes, exaggerated words, I don't like this host, I don't think he is a technical guy. Hope Emily be back
but it is more effective to understand. Everything has relative