Flutter: Platform Aware Widgets and Dialogs

preview_player
Показать описание


In this video I'll talk about platform aware widgets, as a way to tailor the look and feel of our apps on iOS and Android.

HIGHLIGHTS:
00:00 - Intro
00:47 - How to switch between Material and Cupertino widgets
01:43 - Building a platform-aware widget base class
03:18 - Platform-aware switch widget
04:36 - Platform-aware dialogs and their differences
06:36 - Composing platform-aware widgets
07:15 - Showing and dismissing dialogs
09:05 - Summary

This code was tested with Flutter 1.0.0.

Want more? Check out all my Flutter courses: 👇👇

Thanks for watching!
Рекомендации по теме
Комментарии
Автор

more than 2 years old and still an awesome solution by Andrea – the best flutter teacher for advanced topics!

ASAS-znhp
Автор

Hey Andrea! Again this was great. I love it. Thank you. Looking forward to buy your flutter course.

Cvtap_Pros
Автор

Thank you. It was really helpful. Please keep more videos coming.

shoaibahmad
Автор

you have worked hard on this...good work👍🏻

urvashisharma
Автор

very useful video hey its request to make video on two topics
1. Make video on which KISS approach is best and which is trending now a days.
2. How to improve performance of application with example.


Thank you,
Your subscriber.

adnankazi
Автор

I'm thinking this pattern could be used to create an abstraction for widgets that depend on some api response. Something like:
abstract class AsyncWidget<...> {
A buildInitialWidget
B buildLoadingWidget
C buildSuccessWidget
D buildErrorWidget

}

rumble
Автор

Thanks! Im currently thinking about learning Flutter for my new App. What is your opinion about Flutter? Do you think it is already Production ready?

JFkingW
Автор

Is this still relevant in 2022 or there is a new approach?

anggoran
Автор

Too much code for maintaining ui component for both platforms. Or i am missing something. 😞

tashi