Flutter Reusable Custom Widgets | Reuse Buttons & Components
Vložit
- čas přidán 14. 11. 2021
- You will learn how to build flutter reusable custom buttons, components and style. It also works as reusable functions.
Find the complete tutorial here with the ui and network request
• Flutter Master Class T... - Věda a technologie
Get a food delivery e-commerce app
www.dbestech.com/tutorials/flutter-food-delivery-app-e-commerce-for-ios-and-android
Not sure seems incomplete, what about general theme variables, default button styles, paddings, margins, scaling to different devices. There must be a general theme defined somewhere and you should default to that so the consumer of these buttons defines minimum properties
The variables that I have instantiated are not being recognized as variables in my code.
Assalamu Aleikum, you can use a getter to check whether the icon is not null instead of adding an extra param. I think better to make the text string nullable and add a check so one of them should have value and throw exception if not.
Good explanation, keep going!
Thanks for the tip!
thank you so much for all you provide , Allah award you more ameen!
Thank you too
how can i create custom container..... i mean i have an input field and user put what ever the number..... lets user put 5....and then 5 container automatically create
Always useful tutorials..! Thanks..
Glad you like them!
Thanks a lot bro, I think the tutorial is most useful.
You are welcome
Thank you so much for good understanding.
Welcome
Walikumassalam war wab . Very useful tutorial. Ma sha ALLAH.
Thank you brother.
You forgot the necessary thing which I need badly, the thing is that each button must have onPressed event. In my case, each button should navigate to a different page. Please tell me how to do it?
Inside the forloop you can do MaterialPageRoute and pass the id inside it. and go to a new page with the id.
@@dbestech Make a video on this.
hello, have you resolved the problem?
Awesome need some crash course to start out flutterrr ,
I do have
Alaykum Al Salam, Great Tutorial 👏🏻
Most welcome
Your explanations are ,even not natives in english, understandable easily.
You mean you can understand easily?
Yes, for not natives in English, everyone can understand easily 🙂
W salam.. Great tutorials always..Thanks
Thank you too
Dose this make any impact on performance in case of many custom widgets??
No, it won't.
thanks so much useful tutorial
You're welcome!
What about individual functions when button is pressed? That's the actual interesting part
Hi Azmo, when the buttons are pressed, you can go to a different route.
I know but how to implement it? Give the function as a parameter like background color? Something to consider or just like I said
@@azmo_ Yes, you can. Just add a new parameter in the class.
Wa ʿalaykumu s-salam (وَعَلَيْكُم ٱلسَّلَامُ)
وعليكم السلام
You are awsome
Thank you Rayan
I did like because u are Muslim bro 🌸🌸
Wa'alaykumsalam Warrohmatullohi Wabarokatuh my brother..
Allah bless you
@@dbestech Aamiin.. you too brother
Thanks,
Welcome
most of the popular tutorials share the code link on GitHub so we don't have to scrub through the video to search for what we want