Turn Your Vehicle Into a Smart Earning Asset

While you’re not driving your car or bike, it can still be working for you. MOTOSHARE helps you earn passive income by connecting your vehicle with trusted renters in your city.

πŸš— You set the rental price
πŸ” Secure bookings with verified renters
πŸ“ Track your vehicle with GPS integration
πŸ’° Start earning within 48 hours

Join as a Partner Today

It’s simple, safe, and rewarding. Your vehicle. Your rules. Your earnings.

How To Create Your Own Widget In Flutter.

To Create your Own Widget in Flutter, Just Follow the Below Steps.

Step 1 :- First of all, create a new file in lib directory named home.dart (you can write any name but extension should be .dart). See the below image for help :-

own_widget_in_flutter

Step 2 :- Now, in home.dart file we first import flutter package library named material.dart and create a stateless widget named home and return Centre widget in which we take child as Text Widget, and in text widget lets pass a Welcome Message My Own Widget and also add Direction to our Text Widget otherwise it returns error. See the below code.

Step 3 :- Now, in main.dart file, import material.dart package library and home.dart package library which is created by us, and call our main method.

Step 4 :- Under main() we call runApp() in which we use our own Widget Home to perform operations. See the below code :-

Thats All. We are Ready to Run our Project.

To Run your Project There are Two Methods.

Method 1 :- Go to Terminal and write flutter run and run the command. See the ScreenShot Below.

Method 2 :- Click on Run and Debug option and click on Green Button to run the Project. See the Below image :-

See Output Below

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.