Introduction

As a flutter developer you might have come across this situation where you have to write almost the same line of code again and again for some widgets such as TextField, Button, CustomCard, etc, which is time taking and boring.

What we can do is write the code once and use it any numbers of time across the app production period.

Project folder structure

It’s very important to have a proper structure of the folder for the project we are working on, which helps us to analyze and easily navigate to our **CustomWidget **while making the app.

Here how I prefer to have my Folder structure

Here is how I prefer to have my folder structure.

_widgets __folder will have all the __reusable_widgets _that I will create so that I can use it anywhere whiteout writing the same line of code again.

#mobile-apps #mobile-app-development #flutter-widget #flutter

Building Reusable Widgets in Flutter
9.70 GEEK