Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- void main() => runApp(MyApp());
- class MyApp extends StatelessWidget{
- @override
- Widget build(BuildContext context){
- return MaterialApp(
- // theme : ThemeData(
- // brightness: Brightness.dark,
- // primaryColor: Colors.black
- // ),
- home : Scaffold(
- appBar: AppBar(
- title: const Text('Home'),
- centerTitle: true,
- actions: <Widget>[
- IconButton(
- icon: Icon(Icons.comment),
- tooltip: 'Comment icon',
- onPressed: () {},
- ),
- IconButton(
- icon: Icon(Icons.settings),
- tooltip: 'Settings icon',
- onPressed: (){},
- ),
- ],
- elevation : 50.0,
- leading: IconButton(
- icon : Icon(Icons.menu),
- tooltip: 'Menu icon',
- onPressed: (){},
- ),
- //brightness: Brightness.dark, //Not sure what this did, it didn't change much
- //backgroundColor: Colors.red,
- //shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(360)),
- ),
- body: const Center(
- child: Text(
- "Rajath",
- style: TextStyle(fontSize: 24),
- ),
- ),
- ),
- debugShowCheckedModeBanner: false,
- );
- }
- }
Add Comment
Please, Sign In to add comment