From 91c851b365e6f49aad2c40f09324eeadf7064be6 Mon Sep 17 00:00:00 2001 From: shashan Ram K Bhat Date: Wed, 16 Oct 2019 22:48:11 +0530 Subject: [PATCH] Hello word in flutter --- main.dart | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/main.dart b/main.dart index 83deff6..19bcea6 100644 --- a/main.dart +++ b/main.dart @@ -1,20 +1,20 @@ import 'package:flutter/material.dart'; -void main() => runApp(MyApp()); +void main() => runApp(new MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { - return MaterialApp( - title: 'Welcome to Flutter', - home: Scaffold( - appBar: AppBar( - title: Text('Welcome to Flutter'), - ), - body: Center( - child: Text('Hello World'), - ), + return Scaffold( + appBar: new AppBar( + title: Text("Hello World App"), + elevation: 0.0, ), + body: new Center( + child: new Text( + "Hello World", + style: TextStyle(color: Colors.black, fontSize: 50), + )), ); } -} \ No newline at end of file +}