-
Notifications
You must be signed in to change notification settings - Fork 0
/
AppBar_code.dart
38 lines (36 loc) · 959 Bytes
/
AppBar_code.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import 'package:flutter/material.dart';
//Center Widget
void main() {
runApp(
MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
appBar:AppBar(
title: Text("Here goes my title", style:TextStyle(color:Colors.white,)),
backgroundColor:Colors.blueGrey[900],
centerTitle:true,
titleSpacing: 3.0,
toolbarHeight: 70.0,
//toolbarOpacity:2.0,
//shadowColor:Colors.white,
),
body: SafeArea(
child: Center(
child: Text("Test App",
style:TextStyle(
fontSize:40,
fontWeight:FontWeight.bold,
color: Colors.black.withOpacity(0.8),
fontStyle:FontStyle.italic,
fontFamily: "Roboto",
backgroundColor:Colors.amber,
height:5.0,
letterSpacing:3.0,
wordSpacing:5.0,
),)
)
),
)
)
);
}