Skip to content

Instantly share code, notes, and snippets.

@siumhossain
Created February 13, 2021 16:02
Show Gist options
  • Save siumhossain/126e190702eaa9966fd5509d73b83dad to your computer and use it in GitHub Desktop.
Save siumhossain/126e190702eaa9966fd5509d73b83dad to your computer and use it in GitHub Desktop.
flutter startup
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