ฝัง
- เผยแพร่เมื่อ 10 ก.พ. 2025
- Learn about Reusing Widgets in Flutter.
We will be learning about how to reuse widgets and create custom reusable AppBars in this article.
It's so easy in flutter. Composing widgets and making it a more powerful and reusable one is so much easy in flutter.
Visit coderzheaven.com for more tutorials.
Please don't forget to LIKE, SUBSCRIBE & SHARE.
Please leave your valuable comments in the comment section below.
Thanks for watching.
Article & Source Code:
www.coderzheave...
Medium Article Link:
/ reusable-widgets-reusa...
Source Code link:
bitbucket.org/...
Make sure to switch to "ReUsableWidgets" branch for the source code for this demo.
Follow me on facebook
/ mobile-tutor-299932940...
More tutorials
coderzheaven.com
#flutterreusablewidgets #flutterwidgets #fluttertutorials
Awesome Video. Great information
I love the way you create the tutorials, fast and yet it is so clear and easy to understand.
Thanks
WOW ....Super
Thanks for the video lots of people don't do this and it's still very important 😁
Thanks for the video! I like to know why not did you extends TextField or FlatButton class instead of StatelessWidget? Thanks
You can do that as well if you have more customizations over the default one
You know he's confident when you see him replacing the built-in appBar.
@mobile programmer: Send me a magnet link to your Flutter and Dart knowledge. haha.
can u make second part of this video by saving these settings in local db.
Nice Tutorial.
Many many thanks
Excellent content in your channel. really useful in real life projects
Super demo Nipin and thank you.
Flutter 2.0 does not allow checking for NULL any more :-(
Could you recommend how to set these checks differently now as they are no longer allowed?
eg:
suffix: null == suffixIcon ? null : Icon(suffixIcon),
enabled: null == enabled ? true : false,
Thank you for teaching awesome content!!
You are welcome
Thanks for the video. so if I want to create a reusable custom widgets the inputs and the buttons I need to pass all the default widget's properties one by one? is not possible to extend or spread the default properties defined in the material widget?
It’s possible
EXCELLENT !!!
Very good tutorial, could you please make a video on how to handel validations
What kind of validations?
@@MobileProgrammer Textfield validation (errortext)
did you find any work around for validations?
amezing
love your videos always
Thanks
I have a question: Why do you create a class TF? Why not just make a: Widget TF( hintText, titleText...) { return Container}..? Seems much more simplified to make a Widget rather than using class and Build widget.
This is the standard way of doing it. That’s what I am explaining in the whole video.
how to add validation in the email/pwd text field?
You can pass a validator function and set as validator callback in the textfield
Thanku Sir
You are welcome