getPrimaryBackAppbar static method

Widget getPrimaryBackAppbar(
  1. BuildContext context,
  2. String title
)

Implementation

static Widget getPrimaryBackAppbar(BuildContext context, String title){
  return AppBar(
    backgroundColor: MyColors.primary, systemOverlayStyle: SystemUiOverlayStyle(
statusBarBrightness: Brightness.dark
),
    title: Text(title,),
    leading: IconButton(
      icon: Icon(Icons.arrow_back),
      onPressed: () {
        Navigator.pop(context);
      },
    ),
    actions: <Widget>[
      IconButton(
        icon: Icon(Icons.search),
        onPressed: () {
          showToastClicked(context, "Search");
        },
    ),
  ]
  );
}