buildHeader method
Implementation
Widget buildHeader(BuildContext context) {
return Container(
color: AppColors.blue,
width: double.infinity, // Use full width for the header
height: 50.0,
child: Center(
child: Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.center,
children: [
AppText(
'simpliWORKS™',
alignment: Alignment.center,
style: TextStyles.medium(context, textColor: Colors.white),
),
Obx(() {
return Padding(
padding: const EdgeInsets.all(8.0),
child: AppText(
'(${loginController.appVersion})',
alignment: Alignment.centerRight,
style: TextStyles.small(context, textColor: Colors.white),
),
);
})
],
),
),
);
}