appBarWidget function

AppBar appBarWidget(
  1. String title, {
  2. List<Widget>? actions,
  3. double ele = 10,
  4. bool center = true,
  5. Color? color,
})

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))),
  );
}