Anyone pls help me to create a program in flutter. I have installed Android Studio, Flutter and Dart Plugins. Iam familiar with object-oriented code and basic programming concepts such as loops conditions etc.
Delete all the contents of lib/main.dart. Replace with the following code, which displays a message in the center of the screen.
import 'package:flutter/material.dart'; void main() { runApp(MaterialApp( title: 'This is a testing Title', theme: ThemeData( primarySwatch: Colors.yellow ), home: Scaffold( appBar: AppBar( title:Text( 'Your App Bar Title' ) ), body: Center(child: Text( 'This is for testing', )), ), )); }0 0
A sample flutter program to print Hello World
import 'package:flutter/material.dart'; void main() { runApp(MaterialApp( title: 'Hello World', home: Scaffold( body: Container( child: Center( child:Text("Hello World"), ), ), ), )); }
Please Login to Post the answer