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
import 'package:flutter/material.dart';Importing the Material Dart library to implement Material Design in our app.
void main()Creating the
main()method which will be our entry point of the app. It returns void i.e no
var app = MaterialApp(home: Text('Hi there, Vaibhav'));Create a
Textwidget with a
MaterialAppwidget class and pass in 'Hi there, Vaibhav' as the output text to be displayed. All of this is stored in the
runAppfunction and pass in the
appvariable created in the previous step.