-
Notifications
You must be signed in to change notification settings - Fork 0
/
appbar.dart
37 lines (35 loc) · 1012 Bytes
/
appbar.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
import 'package:flutter/material.dart';
class AppBarWidget extends StatelessWidget {
const AppBarWidget({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('AppBar Widget'),
centerTitle: true,
actions: [
IconButton(
onPressed: () {},
icon: const Icon(Icons.refresh),
)
],
leading: IconButton(
onPressed: () {
Navigator.of(context).pop();
},
icon: const Icon(Icons.home),
),
backgroundColor: Colors.grey,
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(25),
bottomRight: Radius.circular(25))),
),
body: const Center(
child: Text(
'Body',
style: TextStyle(fontSize: 24),
),
));
}
}