2.13 - Custom Reusable Widgets in Flutter - Bonus Video - 2023

  Рет қаралды 11,876

Coding With T

Coding With T

Күн бұрын

In this flutter tutorial, we are going to create custom widgets in a flutter.
PLAYLIST: • Flutter Crash Course f...
Custom widgets in flutter are created to avoid code duplication, over Coding, and to avoid any wastage of time. Custom Widgets in flutter are called composition in a flutter. Custom widgets can be created using two ways either in Function or in Class.
Whereas to create a dynamic custom widget we have to create a class and pass all the variables in the constructor.
SOURCE CODE
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
🧑‍💻 CODE & RESOURCES codingwitht.com/flutter-crash...
❤️ COURSES
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
► FLUTTER CRASH COURSE • Flutter Crash Course f...
► LOGIN APP with GETX • Flutter Login App - UI...
► E-COMMERCE APP • Professional Flutter E...
❤️ SUPPORT
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Like and Subscribe @CODINGwithT for more amazing content
► Subscribe kzbin.info...
FOLLOW @CodingwithT on SOCIAL MEDIA!
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
💻 Facebook: / codingwithtea
💻 Instagram: / coding_with_tea
#flutter_crash_course_2023 #coding_with_T #flutter_course_2023
⛔ CHAPTERS
0:00 Intro
1:50 Create Layout Using Multiple Widgets
3:47 Problem with Static Layout
4:49 Solution 1: Extract Method (Function)
6:00 Solution 2: Extract Widget Method
8:02 Make Widget Dynamic
11:44 Call Dynamic Widget for Use

Пікірлер: 27
@CodingwithT
@CodingwithT 2 жыл бұрын
Watch the complete playlist of Flutter Crash Course kzbin.info/aero/PL5jb9EteFAODi35jPznP37hnR2sTHOOTU
@layagodfrey2768
@layagodfrey2768 2 жыл бұрын
I have really learnt alot from u.Thank u
@CodingwithT
@CodingwithT 2 жыл бұрын
You wrlcome dear! I'm glad it's helpful
@geraldinkaba5329
@geraldinkaba5329 Жыл бұрын
Waouh 😮😮😮 the perfect DRY
@tedluvbishop9865
@tedluvbishop9865 Жыл бұрын
you are the best.. i have learnt so much from you. more blessings
@CodingwithT
@CodingwithT Жыл бұрын
Wow, thank you
@sale7680
@sale7680 Жыл бұрын
Really best vid thanks 💙
@CodingwithT
@CodingwithT Жыл бұрын
So glad dear 😁
@levyashvin144
@levyashvin144 Жыл бұрын
great vid
@CodingwithT
@CodingwithT Жыл бұрын
Thank you 😊
@kameshvinayaka
@kameshvinayaka Жыл бұрын
Great stuff bro thanks for sharing , i have one request bro how to implement navigation service withour any context and with out getx also , i need a navigation service that can be use in some api service when it unauthroised directly need to navigate globally at one place
@CodingwithT
@CodingwithT Жыл бұрын
Thank you. You can create your own for that but I think you'll have to pass Context. To do the navigation on unauthorized I'll suggest you to read streams as when sign out or unauthorized state stream state will be change and will be unsubscribed to stream then your required action will automatically be performed. I hope it helps ☺️
@cassiomachado93
@cassiomachado93 Жыл бұрын
For what I've seen, is better to make a widget than extract a method, it enhances performance because Flutter understands more about when build things again than when you utilize the component as a method
@CodingwithT
@CodingwithT Жыл бұрын
Very right 👍
@fortechknowledge8172
@fortechknowledge8172 Жыл бұрын
thank you so much
@CodingwithT
@CodingwithT Жыл бұрын
You welcome 🤠
@ahsansyed4146
@ahsansyed4146 Жыл бұрын
Keep up the good work bhai : ) Api's integration ki series kb start kary gy ?
@CodingwithT
@CodingwithT Жыл бұрын
Thank you bhi. I've a huge list but I'm planning it as well. 🤠😃
@debendraprasadsahu9912
@debendraprasadsahu9912 2 жыл бұрын
can u give us tutorial for retrofit mysql operation btw thanks for giving such content
@CodingwithT
@CodingwithT 2 жыл бұрын
I'll try to create that as soon as possible. Added in the list. And Thank you 😊
@thenrgamingchannel
@thenrgamingchannel 2 жыл бұрын
Hi can you create a video where the app has several languages, for example I want my app to be on English when I click on English button and when I click on German language I want my text in the app to change in German language. Great work btw
@CodingwithT
@CodingwithT 2 жыл бұрын
Thank you dear and a Great suggestion. I'll definitely keep it in my list for the new upcoming E-Commerce app playlist.
@SportsChannelMadrid9
@SportsChannelMadrid9 2 жыл бұрын
@@CodingwithT if possible use JavaScript language and empty activity
@anguinan
@anguinan Жыл бұрын
it's OK when reusing common stuff but what about logic? for example handling taps? I think flutter is not doing a good job with those kinds of things, for example, you want to reuse a widget X, in some cases taping on it navigates to another place of the app, and in some cases just does anything else. It's the same list view but placed in different places of the app.
@CodingwithT
@CodingwithT Жыл бұрын
Dear you can send onPressed events uniquely for each case. So your taps can easily be handled. You can use VoidCallback onPressed; variable and receive its value in the constructor like any other value.
@dangerouscoder3455
@dangerouscoder3455 2 жыл бұрын
sir make videos in handi
@CodingwithT
@CodingwithT 2 жыл бұрын
I'll try to make course in it also
EVOLUTION OF ICE CREAM 😱 #shorts
00:11
Savage Vlogs
Рет қаралды 9 МЛН
A teacher captured the cutest moment at the nursery #shorts
00:33
Fabiosa Stories
Рет қаралды 52 МЛН
Stay on your way 🛤️✨
00:34
A4
Рет қаралды 24 МЛН
Flutter Reusable Custom Widgets | Reuse Buttons & Components
15:08
Top 70 Flutter Tips, Widgets & Packages
16:22
Flutter Mapp
Рет қаралды 126 М.
Learn Flutter Hooks and Maximize Your Code Reuse
10:36
Robert Brunhage
Рет қаралды 61 М.
Flutter Reusable Custom Widgets
8:08
Widget Wisdom
Рет қаралды 1,5 М.
Lazy Flutter performance | Session
18:30
Flutter
Рет қаралды 58 М.
Top 30 Flutter Tips and Tricks
6:50
Flutter Mapp
Рет қаралды 544 М.
2.12 - Flutter Stack and Positioned Widget 2023 - Flutter Basics
10:03
Custom Widgets | FlutterFlow University
8:37
FlutterFlow
Рет қаралды 22 М.
Kumanda İle Bilgisayarı Yönetmek #shorts
0:29
Osman Kabadayı
Рет қаралды 2,4 МЛН
Looks very comfortable. #leddisplay #ledscreen #ledwall #eagerled
0:19
LED Screen Factory-EagerLED
Рет қаралды 9 МЛН
Что делать если в телефон попала вода?
0:17
Лена Тропоцел
Рет қаралды 3,2 МЛН