feat: Align app bar elements and adjust padding in attendance and employee screens

This commit is contained in:
Vaibhav Surve 2025-06-12 22:51:44 +05:30
parent 8e47d28005
commit c7600e8e26
4 changed files with 52 additions and 32 deletions

View File

@ -76,15 +76,19 @@ class _AttendanceScreenState extends State<AttendanceScreen> with UIMixin {
elevation: 0.5, elevation: 0.5,
foregroundColor: Colors.black, foregroundColor: Colors.black,
titleSpacing: 0, titleSpacing: 0,
leading: IconButton( centerTitle: false,
leading: Padding(
padding: const EdgeInsets.only(top: 15.0), // Aligns with title
child: IconButton(
icon: const Icon(Icons.arrow_back_ios_new, icon: const Icon(Icons.arrow_back_ios_new,
color: Colors.black, size: 20), color: Colors.black, size: 20),
onPressed: () { onPressed: () {
Get.offNamed('/dashboard'); Get.offNamed('/dashboard');
}, },
), ),
),
title: Padding( title: Padding(
padding: const EdgeInsets.only(top: 12.0), padding: const EdgeInsets.only(top: 15.0),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
@ -94,7 +98,7 @@ class _AttendanceScreenState extends State<AttendanceScreen> with UIMixin {
fontWeight: 700, fontWeight: 700,
color: Colors.black, color: Colors.black,
), ),
const SizedBox(height: 4), const SizedBox(height: 2),
GetBuilder<ProjectController>( GetBuilder<ProjectController>(
builder: (projectController) { builder: (projectController) {
final projectName = final projectName =

View File

@ -80,14 +80,19 @@ class _EmployeesScreenState extends State<EmployeesScreen> with UIMixin {
elevation: 0.5, elevation: 0.5,
foregroundColor: Colors.black, foregroundColor: Colors.black,
titleSpacing: 0, titleSpacing: 0,
leading: IconButton( centerTitle: false,
icon: const Icon(Icons.arrow_back_ios_new), leading: Padding(
padding: const EdgeInsets.only(top: 15.0), // Aligns with title
child: IconButton(
icon: const Icon(Icons.arrow_back_ios_new,
color: Colors.black, size: 20),
onPressed: () { onPressed: () {
Get.offNamed('/dashboard'); Get.offNamed('/dashboard');
}, },
), ),
),
title: Padding( title: Padding(
padding: const EdgeInsets.only(top: 12.0), padding: const EdgeInsets.only(top: 15.0),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
@ -97,7 +102,7 @@ class _EmployeesScreenState extends State<EmployeesScreen> with UIMixin {
fontWeight: 700, fontWeight: 700,
color: Colors.black, color: Colors.black,
), ),
const SizedBox(height: 4), const SizedBox(height: 2),
GetBuilder<ProjectController>( GetBuilder<ProjectController>(
builder: (projectController) { builder: (projectController) {
final projectName = final projectName =

View File

@ -79,23 +79,29 @@ class _DailyProgressReportScreenState extends State<DailyProgressReportScreen>
elevation: 0.5, elevation: 0.5,
foregroundColor: Colors.black, foregroundColor: Colors.black,
titleSpacing: 0, titleSpacing: 0,
leading: IconButton( centerTitle: false,
icon: const Icon(Icons.arrow_back_ios_new), leading: Padding(
padding: const EdgeInsets.only(top: 15.0), // Aligns with title
child: IconButton(
icon: const Icon(Icons.arrow_back_ios_new,
color: Colors.black, size: 20),
onPressed: () { onPressed: () {
Get.offNamed('/dashboard'); Get.offNamed('/dashboard');
}, },
), ),
),
title: Padding( title: Padding(
padding: const EdgeInsets.only(top: 12.0), padding: const EdgeInsets.only(top: 15.0),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
MyText.titleLarge( MyText.titleLarge(
'Daily Task Progress Report', 'Daily Task Progress',
fontWeight: 700, fontWeight: 700,
color: Colors.black, color: Colors.black,
), ),
const SizedBox(height: 4), const SizedBox(height: 2),
GetBuilder<ProjectController>( GetBuilder<ProjectController>(
builder: (projectController) { builder: (projectController) {
final projectName = final projectName =

View File

@ -61,14 +61,19 @@ class _DailyTaskPlaningScreenState extends State<DailyTaskPlaningScreen>
elevation: 0.5, elevation: 0.5,
foregroundColor: Colors.black, foregroundColor: Colors.black,
titleSpacing: 0, titleSpacing: 0,
leading: IconButton( centerTitle: false,
icon: const Icon(Icons.arrow_back_ios_new), leading: Padding(
padding: const EdgeInsets.only(top: 15.0), // Aligns with title
child: IconButton(
icon: const Icon(Icons.arrow_back_ios_new,
color: Colors.black, size: 20),
onPressed: () { onPressed: () {
Get.offNamed('/dashboard'); Get.offNamed('/dashboard');
}, },
), ),
),
title: Padding( title: Padding(
padding: const EdgeInsets.only(top: 12.0), padding: const EdgeInsets.only(top: 15.0),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
@ -78,7 +83,7 @@ class _DailyTaskPlaningScreenState extends State<DailyTaskPlaningScreen>
fontWeight: 700, fontWeight: 700,
color: Colors.black, color: Colors.black,
), ),
const SizedBox(height: 4), const SizedBox(height: 2),
GetBuilder<ProjectController>( GetBuilder<ProjectController>(
builder: (projectController) { builder: (projectController) {
final projectName = final projectName =