Saturday, 6 June 2020

Basic Flutter Scaffolding

Flutter makes the development enjoyable and fast.


Here are some of the template for create a basic layout.

We create an app with App bar and a body.
import 'package:flutter/cupertino.dart';
import
"package:flutter/material.dart";

void
main() => runApp(MyApp());

class
MyApp extends StatelessWidget {
@override
Widget build(BuildContext context){
return MaterialApp(
title: 'My Work Timer',
theme: ThemeData(
primarySwatch: Colors.blueGrey,
),
home: Scaffold(
appBar: AppBar(
title: Text('My Killer App'),
),
body: Center(
child:
Text('My Killer APp'),
),
),
);
}
}


0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More