Feasy is a humble CLI, whose purpose is to assist Flutter developers in creating widgets and screens without the boilerplate. It can easily generate templates for Flutter Stateful and Stateless widgets and screens
๐ Extremely easy to pick up and use in Flutter projects.
๐ Flexible - feasy create widget in lib/wigdets
folder and screens in lib/screens
folder.
โ๏ธ Configurable - feasy create stateful and stateless widget and screens with just sample options.
npm install -g feasy
# Or:
yarn global add feasy
Alterntively, use:
npx feasy [...]
# e.g.
npx feasy screen "hello world"
using npx
, the latest version is always used.
Feasy consists of two commands: screen
(or s
, --screen
) and widget
(or w
, --widget
):
feasy screen "name" [options]
This command generates a new Flutter screen, based on the name
and options
passed to it
feasy s
is an alias of feasy --screen
is an alias of feasy screen
.
stateful
(or f
, full
) Create Stateful screen
feasy screen "hello world" stateful # Create Stateful screen in lib/screens with routename
stateless
(or l
, less
) Create Stateless screen
feasy screen "hello world" stateless # Create Stateless screen in lib/screens with routename
appbar
(or a
, --appbar
) Add App Bar to your screen
feasy screen "hello world" stateless appbar # Create Stateless screen in lib/screens with routename and App Bar
bottomnavigationbar
(or b
, --bottomnavigationbar
) Add Bottom Navigation Bar to your screen
feasy screen "hello world" stateless bottomnavigationbar # Create Stateless screen in lib/screens with routename and Bottom Navigation Bar
PS: you can combine appbar
and bottomnavigationbar
options
feasy widget "name" [options]
This command generates a new Flutter widget, based on the name
and options
passed to it
feasy w
is an alias of feasy --widget
is an alias of feasy widget
.
stateful
(or f
, full
) Create Stateful widget
feasy widget "hello world" stateful # Create Stateful widget in lib/widgets
stateless
(or l
, less
) Create Stateless widget
feasy widget "hello world" stateless # Create Stateless widget in lib/widgets
- screens is created in
lib/screens
folder - widgets is created in
lib/widgets
folder - Be sure to run feasy in your
flutter root directory
discord-clone is licensed under MIT license. View license. LICENSE
[I am very ๐ about every coffee!]