Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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(
- 'App bar',
- style: TextStyle(color: Colors.white),
- ),
- centerTitle: true,
- backgroundColor: Colors.red,
- ),
- body: Center(
- child: ElevatedButton(
- onPressed : () {},
- child : Text('Click me'),
- style : ElevatedButton.styleFrom(
- primary : Colors.purple,
- padding: EdgeInsets.symmetric(horizontal: 50, vertical: 20),
- textStyle: TextStyle(
- fontSize: 20,
- fontWeight: FontWeight.bold
- ),
- ),
- ),
- ),
- floatingActionButton: FloatingActionButton(
- child: Text('click me'),
- onPressed: null,
- backgroundColor: Colors.red,
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement