CustomAppBar function
Implementation
Widget CustomAppBar({required String label, required BuildContext context}) =>
Container(
height: 96,
width: double.infinity,
decoration: const BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(24), bottomRight: Radius.circular(24)),
boxShadow: [
BoxShadow(
color: Color.fromRGBO(145, 158, 171, 0.24),
blurRadius: 9,
spreadRadius: 4,
offset: Offset(2, 0),
),
],
),
child: Row(
children: [
InkWell(
onTap: () {
Navigator.of(context).pop();
},
child: Container(
height: 60,
margin: const EdgeInsets.only(top: 42, left: 16),
child: const Icon(
Icons.arrow_back_ios_new_rounded,
size: 25,
color: primaryMain,
),
),
),
Container(
height: 28,
margin: const EdgeInsets.only(top: 48, left: 16),
child: Center(
child: Text(
label,
style: subtitleStyle(primaryText),
)),
),
],
),
);