Created
February 13, 2021 16:02
-
-
Save siumhossain/126e190702eaa9966fd5509d73b83dad to your computer and use it in GitHub Desktop.
flutter startup
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(MaterialApp( | |
| home: Home(), | |
| )); | |
| class Home extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return Scaffold( | |
| appBar: AppBar( | |
| title: Text('my first app'), | |
| centerTitle: true, | |
| backgroundColor: Colors.red[600] | |
| ), | |
| body: Center( | |
| child: Text( | |
| 'hello again, ninjas!', | |
| style: TextStyle( | |
| fontSize: 20.0, | |
| fontWeight: FontWeight.bold, | |
| letterSpacing: 2.0, | |
| color: Colors.grey[600], | |
| fontFamily: 'IndieFlower', | |
| ), | |
| ), | |
| ), | |
| floatingActionButton: FloatingActionButton( | |
| backgroundColor: Colors.red[600], | |
| child: Text('click'), | |
| ), | |
| ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment