getPrimaryBackAppbar static method
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");
},
),
]
);
}