Created
October 16, 2019 18:06
-
-
Save anmolseth06/f679c17d9b7c7c9520bbe83078a1aa99 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyFirstApp()); | |
} | |
class MyFirstApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
debugShowCheckedModeBanner: false, | |
home: Scaffold( | |
appBar: AppBar( | |
shape: RoundedRectangleBorder( | |
borderRadius: BorderRadius.vertical(bottom: Radius.circular(30))), | |
elevation: 0, | |
actions: <Widget>[ | |
Padding( | |
padding: const EdgeInsets.only(left: 20), | |
child: Icon(Icons.add_circle), | |
), | |
Padding( | |
padding: const EdgeInsets.only(left: 20), | |
child: Icon(Icons.thumb_up), | |
), | |
Padding( | |
padding: const EdgeInsets.only(left: 20, right: 10), | |
child: Icon(Icons.mode_comment), | |
), | |
], | |
title: Text("Anmol Garg"), | |
), | |
drawer: Drawer(), | |
body: Center( | |
child: Text( | |
"hello world", | |
style: TextStyle( | |
color: Colors.blue, | |
fontWeight: FontWeight.bold, | |
fontStyle: FontStyle.italic, | |
fontSize: 60), | |
)), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment