MOTOSHARE ๐Ÿš—๐Ÿ๏ธ
Turning Idle Vehicles into Shared Rides & Earnings

From Idle to Income. From Parked to Purpose.
Earn by Sharing, Ride by Renting.
Where Owners Earn, Riders Move.
Owners Earn. Riders Move. Motoshare Connects.

With Motoshare, every parked vehicle finds a purpose. Owners earn. Renters ride.
๐Ÿš€ Everyone wins.

Start Your Journey with Motoshare

How to create your Flutter project in VS Code

Launch Visual Studio Code and open the command palette (withย F1ย orย Ctrl+Shift+Pย orย Shift+Cmd+P). Start typing “flutter new”. Select theย Flutter: New Projectย command.

Next, selectย Applicationย and then a folder in which to create your project. This could be your home directory, or something likeย C:\src\. Finally, name your project. Something likeย name_app

Flutter now creates your project folder and VS Code opens it. You’ll now overwrite the contents of 3 files with a basic scaffold of the app. Copy & Paste the initial app

In the left pane of VS Code, make sure thatย Explorerย is selected, and open theย pubspec.yamlย file.

Replace the contents of this file with the following:

In pubspec.yaml

name: namer_app
description: A new Flutter project.

publish_to: 'none' # Remove this line if you wish to publish to pub.dev

version: 0.0.1+1

environment:
  sdk: '>=2.19.4 <4.0.0'

dependencies:
  flutter:
    sdk: flutter

  english_words: ^4.0.0
  provider: ^6.0.0

dev_dependencies:
  flutter_test:
    sdk: flutter

  flutter_lints: ^2.0.0

flutter:
  uses-material-design: true

Theย pubspec.yamlย file specifies basic information about your app, such as its current version, its dependencies, and the assets with which it will ship.

Next, open another configuration file in the project,ย analysis_options.yaml.

Replace its contents with the following:

analysis_options.yaml

include: package:flutter_lints/flutter.yaml

linter:
  rules:
    prefer_const_constructors: false
    prefer_final_fields: false
    use_key_in_widget_constructors: false
    prefer_const_literals_to_create_immutables: false
    prefer_const_constructors_in_immutables: false
    avoid_print: false

This file determines how strict Flutter should be when analyzing your code. Since this is your first foray into Flutter, you’re telling the analyzer to take it easy. You can always tune this later. In fact, as you get closer to publishing an actual production app, you will almost certainly want to make the analyzer stricter than this. Finally, open theย main.dartย file under theย lib/ย directory.

Replace the contents of this file with the following:

lib/main.dart

import 'package:english_words/english_words.dart';import 'package:flutter/material.dart';import 'package:provider/provider.dart';void main() {  runApp(MyApp());}class MyApp extends StatelessWidget {  const MyApp({super.key});  @override  Widget build(BuildContext context) {    return ChangeNotifierProvider(      create: (context) => MyAppState(),      child: MaterialApp(        title: 'Namer App',        theme: ThemeData(          useMaterial3: true,          colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepOrange),        ),        home: MyHomePage(),      ),    );  }}class MyAppState extends ChangeNotifier {  var current = WordPair.random();}class MyHomePage extends StatelessWidget {  @override  Widget build(BuildContext context) {    var appState = context.watch<MyAppState>();    return Scaffold(      body: Column(        children: [          Text('A random idea:'),          Text(appState.current.asLowerCase),        ],      ),    );  }}

Related Posts

Canada PR CRS Calculator: Check Your Express Entry Score & Immigration Eligibility

Introduction Moving to Canada is a goal shared by professionals, students, and families across the globe. Whether you are driven by the promise of better career opportunities,…

Read More

The Essential Guide to the Austria Red-White-Red Card Scoring System

Introduction Moving to a new country is a life-changing decision. Over the last few years, Austria has quietly emerged as one of the most attractive, stable, and…

Read More

Mastering DevOps Principles for Career Growth and System Reliability

Introduction The landscape of software development has shifted dramatically over the last two decades. We have moved away from the slow, fragmented cycles of the past, where…

Read More

A Comprehensive Guide to Choosing the Best DevOps Training Programs

Introduction The modern IT landscape has shifted dramatically toward cloud-native architectures, making DevOps an essential discipline for organizations aiming to deliver software at speed and scale. As…

Read More

Complete Blueprint to DevOps Architecture Cloud Integration and System Reliability

Introduction Imagine working in a traditional software company where developers spend three months building an amazing new feature. They wrap up the code, package it, and toss…

Read More

PR Points Calculator โ€” The Guide to Immigration Eligibility Around the World

Have you ever looked at a map and wondered, “Where could I truly build a better life?” For millions of people, the dream of moving to a…

Read More
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x