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
Pleased the disabled person! #shorts
00:43
Dimon Markov
Рет қаралды 29 МЛН
Пранк пошел не по плану…🥲
00:59
Саша Квашеная
Рет қаралды 6 МЛН
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 20 МЛН
Я обещал подарить ему самокат!
01:00
Vlad Samokatchik
Рет қаралды 9 МЛН
The Best Learning Tool in History - 400 years ahead of its time!
11:04
Python Programmer
Рет қаралды 86 М.
Custom, Reusable Widgets in Flutter
8:38
Bleyl Dev
Рет қаралды 17 М.
Flutter Reusable Custom Widgets | Reuse Buttons & Components
15:08
Learn Flutter Hooks and Maximize Your Code Reuse
10:36
Robert Brunhage
Рет қаралды 61 М.
Lazy Flutter performance | Session
18:30
Flutter
Рет қаралды 58 М.
Flutter: Creating Custom Reusable Widgets
7:40
Paul Halliday
Рет қаралды 44 М.
PrimaryScrollController | Decoding Flutter
8:07
Flutter
Рет қаралды 49 М.
Creating a Custom Widget in Flutter - Complete Tutorial
26:08
WsCube Tech
Рет қаралды 38 М.
Flutter Custom AppBar | Reusable Widget
13:33
dbestech
Рет қаралды 19 М.
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 63 МЛН
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 6 МЛН
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 7 МЛН
НОВЫЕ ФЕЙК iPHONE 🤯 #iphone
0:37
ALSER kz
Рет қаралды 357 М.
Лучший браузер!
0:27
Honey Montana
Рет қаралды 977 М.