Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
android
ios
lib
test
README.md
pubspec.lock
pubspec.yaml

README.md

project01 - The first knockdown 👊

The most basic Flutter project displaying a simple text

This app focuses on printing out the text "Hi there, Vaibhav" by following these steps:

project01 > lib > main.dart

  1. import 'package:flutter/material.dart'; Importing the Material Dart library to implement Material Design in our app.
  2. void main() Creating the main() method which will be our entry point of the app. It returns void i.e no return value.
  3. var app = MaterialApp(home: Text('Hi there, Vaibhav')); Create a Text widget with a MaterialApp widget class and pass in 'Hi there, Vaibhav' as the output text to be displayed. All of this is stored in the app variable.
  4. runApp(app); Call the runApp function and pass in the app variable created in the previous step.