getPrimaryAppbarLight static method

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

Implementation

static Widget getPrimaryAppbarLight(BuildContext context, String title){
  return AppBar(
    backgroundColor: Colors.white,
    systemOverlayStyle: SystemUiOverlayStyle(
statusBarBrightness: Brightness.dark
),
    iconTheme: IconThemeData(color: MyColors.grey_60),
    titleSpacing: 0,
    title: Text(title, style: MyText.title(context)!.copyWith(
        color: MyColors.grey_60
    )),
    leading: IconButton(
      icon: Icon(Icons.menu),
      onPressed: () {Navigator.pop(context);},
    ),
    actions: <Widget>[
      IconButton(
        icon: Icon(Icons.search),
        onPressed: () {
          showToastClicked(context, "Search");
        },
      ),
    ]
  );
}