Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- void main() => runApp(MaterialApp(
- home: Scaffold(
- appBar: AppBar(
- title: const Text('My First App'),
- centerTitle: true,
- backgroundColor: Colors.red[600],
- ),
- body: const Center(
- child: Text(
- 'Hello Ninjas',
- style: TextStyle(
- fontSize: 20.0,
- fontWeight: FontWeight.bold,
- letterSpacing: 2.0,
- color: Colors.grey[600],
- ),
- ),
- ),
- floatingActionButton: FloatingActionButton(
- onPressed: () {},
- child: Text('Click'),
- backgroundColor: Colors.red[600],
- ),
- ),
- ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement