Creating Mason Brick Templates in Flutter Using ChatGPT

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone in this video we will see how to create Mason brick with AI first of all you have to install break and like by doing this command artbob Global activate my as CLI you can just give it and then it will install it for you next step what you have to do is create a brick for that you can do some something like this I will say clean clean architecture feature so that has created a clean architecture feature here and the next step what I have to do is edit brick. Amo fire so in chat GPD what I did was I asked the chat GPD to create a Mason brick for the following files with folder structure of feature first clean architecture in flutter with freeze blog freeze models example feature leaderboard given below I've given the example feature daily blog. block I've given the code that I've written and I've given uh everything similar to that I've given uh the second one daily thought event and I've given every every file that I want to convert to a Mason brick I just gave all that and now the test has created a brick with da thought feature brick data data layer here domain presentation and core so it's created something like this for me and all I have to do now is copy all these things and create files accordingly so I have already copied uh and created files accordingly in uh in this folder I'll show you right now here I've already created a clean architecture feature with all these things so I copy that folder copy it and I paste it over here ping is not available all right what I'm going to do is I'm going to drag it here and I'm going to copy the folder and replace everything all right so now we can see that we have the brick. ammo file clean architecture feature everything is given here with the variable of feature name it's a little bit different from here so what you can do is you can copy this and create file names and you have to comment this thing right out here and and you have to make one like this and then uh you can go to all these folders and you can see that everything is laid out perfectly all right so we have our clean architecture feature so now we have to do the next command so what we're going to do now is we are going to say mason add [Music] clean architecture feature and give it the path okay by the way we have to do Mason in it first we didn't do that so we can just do Mason in it that will create the mason. yo file right over here and then we say mason add clean architecture feature and give it the path as we edit it and you can see it has given here and what we do now is say Mason make [Music] clean architecture feature it will ask for a feature name let's say we want a feature called leaderboard and it is is created in lip folder the leaderboard it creat a common utils data source leaderboard model leaderboard repository entities failures repository Implement repository use case and block as SP so this is how you can see the names have been created for us so if you run a build Runner most of these errors will go away so this is how you can do create uh brick Ma and templates with chat GP see you in another video
Info
Channel: Flutter Explained
Views: 713
Rating: undefined out of 5
Keywords:
Id: D7dfT4hfDi0
Channel Id: undefined
Length: 5min 39sec (339 seconds)
Published: Mon May 27 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.