100x faster with GET_CLI || flutter setup tutorial
Vložit
- čas přidán 10. 04. 2022
- In this video, I have discussed some common commands of get_cli to setup the project, page and views quickly with Flutter.
get_cli helps to setup feature first folder for all the pages with bindings, controllers, pages and route entry.
Install package globally:
pub global activate get_cli
Site:
pub.dev/packages/get_cli
If you like my work
Support Me on Ko-Fi : ko-fi.com/afzalali15
Join this channel to get access to perks:
czcams.com/users/CodeXDevjoin
Gears ========
Camera 📸 || Canon 250D : amzn.to/34isdKr
Mic 🎤 || Maono AU-04 : amzn.to/341g9wS
#CodeX
Connect with me on social media:
FB: / codexdevs
Twitter: / afzalali_dev
LinkedIn: / afzalali15
Discord: / discord
I worked with get cli in a lot of my production apps and it’s so cool
In fact, I tried it in one of my project and loving it 🥰
I want to fork this repo and add alot of features. Thanks for providing an awesome base :)
Will be using for my freelance projects for sure
Amazing content like always!
thank you for the explanation!!! Appreciate your work
It's better to have videos explaining MVC structure with provider or Bloc in flutter (without get_cli and after with get_cli). Because what i miss here is the understanding on how it's structure (if they were drawing or schemas, it will be fantastic)
Bro, I just wanna say you are amazing. Thanks for uploading such a nice content. I like the way speak, and presentation and also you don't request for subscribing the channel and you are not wasting time, just come to the main point and explain practically.
Thank you Afzal 😊 It looks promising 😉
Hope you will use it your next project 🎉👍🏼
Always unique content
Sir you are doing awesome job.
Thanks a ton
I'm going to use these tricks now
That's so useful!
Glad you think so!
Ow. I loved it man.
Same here 😉
Great video sir
Sprb. 🔥
Great!
I subscribed and you cannot stop me, because I loved your content!
Ohhh, I can't even remove from subscription list 😉 welcome mate!
Thanks
Thanks for the tutorial. Can you Please explain what is the difference between the following executable
$ get
$ getx
💯🤗
😍
Can I know, what is that binding class? Is it same like a modal class?
wow
When i'm creating project, it's showing like this -> No active package get_cli. What's the solution for this ?
What is the use of extending the GetView? in earlier lessons I saw, LoginView was extended using a StatelessWidget.
With GetView your view is directly associated with Controller and you don’t need to reference it explicitly.
You can access controller with ‘controller’ keyword anywhere inside View
@@CodeXdev oh ok ok , thanks, So if I need to access any other controllers, need to declare again inside right?
Yes, if you need other controllers as well in same page you can reference it, but one with GetView is already referenced
Could you make a video on get_server please?
A video request on graphql and refresh token implementation in flutter 🙏🙏🙏
Not sure about Graphql but refresh token I can consider as part of API tutorial 😊
how to generate model with DateTime not just string
Hello how are you, I have been using get cli for some time but since the last update I am having problems creating the project because it stops at the part where you create the company name and from there it does not continue. Greetings
Go to .pub-cache folder inside your home directory and delete get_cli instance.
Reinstall again and see if that helps
@@CodeXdev thanks i will try ir.
I'm also getting the same issue and did not get any solution. :(
@@CodeXdev doesnt work for me. Thanks
Did you got any Solutions?
when i create the app, i can go only upto providing the package name. After i provide the package name the terminal stops working. Help me
There’s something wrong, I got the same feedback from 3-4 viewers till now! Hopefully there should be solution to this.. can you put this question in Getx discord
Hi, i have followed your vid. I was able to install get, but i am stuck at What is your company's domain? once i hit enter, it wont go down to the next question
Try deactivating and activate again
dart pub global deactivate get_cli
dart pub global activate get_cli
@@CodeXdev did the above command, and when doing get create page:test it gave me this error "File not found in pubspec.yaml"
You cannot run this command outside your project, first you need to jump to project directory.. simply you can open VS Code and run this command in terminal
hello
Please give us a tutorial for image, Button.... like u do on textfield detailedthe.
❤❤❤❤
Noted!
can you go over an example with googlemaps and getx?
Hey.. to be honest its the same as I have explained in my GoogleMap tutorial. Only thing that your map controller will be inside the GetXcontroller class.
@@CodeXdev I will look. But I’m having a problem with setstate and changing to a stateless widget
Cli generated file for routing but how can we edit it for /product/:id ?
*Just add it like this:*
static const PRODUCT = '/product/:slug';
*For routing to this route you can simply use:*
Get.toNamed('/product/my-product-slug');
@@Sukhcha_in yes but in the rout path they wrote do not edit this file? So what can i do?
@@mohamdjamal6266 no need to worry about that, you can edit paths without any issue.
Does it work on Windows OS?
Absolutely! It works everywhere. Just run below command in cmd
dart pub global activate get_cli
I'm stuck on the domain name, how I solve this problem?
try "dart pub global activate get_cli"
ctrl+z then enter worked for me
After enter "What is your company's domain" my terminal is stacked,
you have to write company domain in reverse, eg. com.google
Can someone explain how we can extend a statefull or stateless widget class with basecontroller which already extends get controller
Why should you do that? your widget should be separate than controller.
You need to reference controller inside the Stf/Stl widget, either using GetView or var controller = Get.put(ControllerClass());
is this the new concept in getx or what???
Nope, it’s template generation tool that helps you setup your project faster.. yes, it’s part of get ecosystem
I think I prefer Riverpod
That's awesome!
get is not recognised as internal or external command, after activating get cli
If you restarted terminal then it might happen, you need to add '/Users/afzal/.pub-cache/bin' to your PATH.
This is for mac, you can replace with your folder name.. for windows also there should be some pub-cache directory, so add it to PATH and you are good to go after restart as well.
flutter cli
I think you should start talking about other state management getx wont be here long
Well, if it happens then surely we all need to find better alternatives
It will be bro. The docs says it will be maintained as far as flutter lives
I mistakenly hit the subscribe button, sorry😩
Welcome to CodeX 😃
Who knows about installing get cli to Windows? Actually this way is not working on Windows.
have you tried "dart pub global activate get_cli"
I think so many unnecessary automation there. we will have to take care of code.
Time to move on from getx stuffs, they are no longer maintained
Thats not true, check the pre-release version of Get package -> pub.dev/packages/get/versions/5.0.0-beta.51
Again with this GET shit? Unsubscribed, thanks
Best of luck 👍🏼
Fine, you can leave. Some folks don't just know what the heck their problem is.
brother please make some videos on API interation with getx specially post methode....with complex nested json datya
Will upload soon, thank you for the feedback