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.

Everything about Text Widget in Flutter.

The first thing you need to know is that creating an app is all about creating small widgets, and compile them in one.

As if you know a bit about flutter then it’s usually known that everything in flutter is a widget, From a single line text to a dynamically changing content page everything considered as a widget,

import ‘package:flutter/material.dart’;

So the first thing we all need to do is import the material package on top of our .dart file, Then the main function that hold our app function. After that using a class extends the StatelessWidget which is defined in our material.dart package.

after that we call a Widget build function that is also defined in our package that takes two-parameter and return a widget where you can make many small widgets and work on them, We fist need to define the title and theme that accept a function called primarySwatch that is responsible for the theme color of the application.

flutter title
Flutter Title

After that, we add a home Scaffold widget that is responsible for the app bar or the top of the application that the content app bar and title on the app bar.

home scaffold
Flutter Title

Then after we create a body widget that accepts some parameters which are responsible for the body part of the application, where you need to create a child widget. then we will create a mainAxisAlignment and padding widget that helps your content to place in your screen resulution.

text widget
text widget

That’s it at the end you need to Write some text in double quote and run the app.

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.