I have installed the get_cli for my flutter development. As the docs say, I use the command get create page:home
to create a home module with bindings, view and controller. It is created in the lib/app/modules/home folder by default. How to create this under a differnet folder, say lib/app2/modules/home or lib/modules/home.
Asked
Active
Viewed 2,576 times
5

Abhijith Konnayil
- 4,067
- 6
- 23
- 49
2 Answers
0
with command below, get cli automatically creates new pages in /lib/module
directory
get create page:mypage
So if I want to create a subdirectory in home/bedroom so it's
get create page:bedroom on home
For more details visit --> get_cli

M E S A B O
- 783
- 1
- 11
- 15
-
What's the difference between this suggestion and [@Abdelrahman Tareq's answer](https://stackoverflow.com/a/66929718/3025856) from April? – Jeremy Caney Dec 17 '21 at 00:33
-
The difference is that I'm specifying here that it's not just the home directory. You can create your page in the folder of your choice. A little self-explanatory ! – M E S A B O Dec 28 '21 at 22:54
-
That seems implicit in @Abdelrahman's answer, given that they used the OP's proposed `lib/modules/home` directory (which _is_ the folder of the OP's choice). – Jeremy Caney Dec 28 '21 at 23:02