Skip to content

Latest commit

 

History

History
 
 

project01

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.