buildTopBar method
Implementation
Widget buildTopBar(VoidCallback onTap) {
if (widget.isFullScreen)
return Align(
alignment: Alignment.topLeft,
child: CupertinoButton(
padding: EdgeInsets.zero,
onPressed: onTap,
child: Container(
height: 44,
width: 44,
margin: const EdgeInsets.symmetric(horizontal: 12),
child: const Icon(
Icons.arrow_back,
color: Colors.white,
),
),
),
);
else
return SizedBox();
}