refactor: update generated file timestamp and clean up imports in various files

This commit is contained in:
Achintha Isuru
2026-01-30 14:28:52 -05:00
parent 1202210df2
commit a17736e5b9
5 changed files with 9 additions and 114 deletions

View File

@@ -1,24 +1,19 @@
import 'package:core_localization/core_localization.dart';
import 'package:design_system/design_system.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_modular/flutter_modular.dart';
import 'package:lucide_icons/lucide_icons.dart';
import 'package:core_localization/core_localization.dart';
import 'package:design_system/design_system.dart';
import 'package:staff_home/src/presentation/blocs/home_cubit.dart';
import 'package:staff_home/src/presentation/navigation/home_navigator.dart';
import 'package:staff_home/src/presentation/widgets/home_page/empty_state_widget.dart';
import 'package:staff_home/src/presentation/widgets/home_page/home_header.dart';
import 'package:staff_home/src/presentation/widgets/home_page/pending_payment_card.dart';
import 'package:staff_home/src/presentation/widgets/home_page/placeholder_banner.dart';
import 'package:staff_home/src/presentation/widgets/home_page/quick_action_item.dart';
import 'package:staff_home/src/presentation/widgets/home_page/recommended_shift_card.dart';
import 'package:staff_home/src/presentation/widgets/home_page/section_header.dart';
import 'package:staff_home/src/presentation/widgets/shift_card.dart';
import 'package:staff_home/src/presentation/widgets/worker/auto_match_toggle.dart';
import 'package:staff_home/src/presentation/widgets/worker/benefits_widget.dart';
import 'package:staff_home/src/presentation/widgets/worker/improve_yourself_widget.dart';
import 'package:staff_home/src/presentation/widgets/worker/more_ways_widget.dart';
/// The home page for the staff worker application.
///
@@ -75,31 +70,7 @@ class WorkerHomePage extends StatelessWidget {
);
},
),
const SizedBox(height: UiConstants.space6),
PlaceholderBanner(
title: bannersI18n.availability_title,
subtitle: bannersI18n.availability_subtitle,
bg: UiColors.accent.withOpacity(0.1),
accent: UiColors.accent,
onTap: () => Modular.to.pushAvailability(),
),
const SizedBox(height: UiConstants.space6),
// Auto Match Toggle
BlocBuilder<HomeCubit, HomeState>(
buildWhen: (previous, current) =>
previous.autoMatchEnabled !=
current.autoMatchEnabled,
builder: (context, state) {
return AutoMatchToggle(
enabled: state.autoMatchEnabled,
onToggle: (val) => BlocProvider.of<HomeCubit>(
context,
listen: false,
).toggleAutoMatch(val),
);
},
),
const SizedBox(height: UiConstants.space6),
// Quick Actions
@@ -120,13 +91,6 @@ class WorkerHomePage extends StatelessWidget {
onTap: () => Modular.to.pushAvailability(),
),
),
Expanded(
child: QuickActionItem(
icon: LucideIcons.messageSquare,
label: quickI18n.messages,
onTap: () => Modular.to.pushMessages(),
),
),
Expanded(
child: QuickActionItem(
icon: LucideIcons.dollarSign,
@@ -212,10 +176,6 @@ class WorkerHomePage extends StatelessWidget {
),
const SizedBox(height: 24),
// Pending Payment Card
const PendingPaymentCard(),
const SizedBox(height: 24),
// Recommended Shifts
SectionHeader(
title: sectionsI18n.recommended_for_you,
@@ -246,14 +206,6 @@ class WorkerHomePage extends StatelessWidget {
},
),
const SizedBox(height: 24),
const BenefitsWidget(),
const SizedBox(height: 24),
const ImproveYourselfWidget(),
const SizedBox(height: 24),
const MoreWaysToUseKrowWidget(),
],
),
),