AppbarWidget.normal constructor
AppbarWidget.normal(
- BuildContext context, {
- Key? key,
- String? title,
Implementation
AppbarWidget.normal(
BuildContext context, {
super.key,
String? title,
}) : super(
backgroundColor: Theme.of(context).colorScheme.surface,
leading: IconButton(
icon: Icon(
Icons.arrow_back_ios,
color: Theme.of(context).colorScheme.secondary,
size: 24,
),
onPressed: () {
Navigator.pop(context);
},
),
title: Text(
title ?? ' ',
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.w600,
color: Theme.of(context).colorScheme.secondary,
),
),
actions: <Widget>[
Padding(
padding: const EdgeInsets.only(right: 20.0),
child: IconButton(
onPressed: () {
// showMessage();
},
icon: const Icon(
Icons.delete_forever,
color: Colors.red,
),
),
),
],
);