appBar method
Implementation
Widget appBar(title) {
return AppBar(
iconTheme: IconThemeData(color: Colors.black),
elevation: 0.0,
centerTitle: true,
leading: IconButton(icon: Icon(Icons.arrow_back_ios), onPressed: ()=> Navigator.pop(context)),
backgroundColor: Colors.white,
title: Text(
title,
style: TextStyle(
fontSize: 18.0,
color: Colors.black,
fontWeight: FontWeight.w600),
),
);
}