appBarWidget function
Implementation
AppBar appBarWidget(String title,
{List<Widget>? actions,
double ele = 10,
bool center = true,
Color? color}) {
return AppBar(
title: Text(title),
elevation: ele,
centerTitle: center,
backgroundColor: color,
actions: actions,
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(20.0),
bottomRight: Radius.circular(20.0))),
);
}