refactor: Clean up imports and comment out unused button in CoverageShiftList widget
This commit is contained in:
@@ -1,14 +1,13 @@
|
|||||||
|
import 'package:core_localization/core_localization.dart';
|
||||||
import 'package:design_system/design_system.dart';
|
import 'package:design_system/design_system.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||||
import 'package:flutter_modular/flutter_modular.dart';
|
import 'package:flutter_modular/flutter_modular.dart';
|
||||||
import 'package:intl/intl.dart';
|
import 'package:intl/intl.dart';
|
||||||
import 'package:krow_core/core.dart';
|
|
||||||
import 'package:core_localization/core_localization.dart';
|
|
||||||
import '../blocs/coverage_bloc.dart';
|
import '../blocs/coverage_bloc.dart';
|
||||||
import '../blocs/coverage_event.dart';
|
import '../blocs/coverage_event.dart';
|
||||||
import '../blocs/coverage_state.dart';
|
import '../blocs/coverage_state.dart';
|
||||||
|
|
||||||
import '../widgets/coverage_calendar_selector.dart';
|
import '../widgets/coverage_calendar_selector.dart';
|
||||||
import '../widgets/coverage_quick_stats.dart';
|
import '../widgets/coverage_quick_stats.dart';
|
||||||
import '../widgets/coverage_shift_list.dart';
|
import '../widgets/coverage_shift_list.dart';
|
||||||
@@ -78,21 +77,6 @@ class _CoveragePageState extends State<CoveragePage> {
|
|||||||
pinned: true,
|
pinned: true,
|
||||||
expandedHeight: 300.0,
|
expandedHeight: 300.0,
|
||||||
backgroundColor: UiColors.primary,
|
backgroundColor: UiColors.primary,
|
||||||
leading: IconButton(
|
|
||||||
onPressed: () => Modular.to.toClientHome(),
|
|
||||||
icon: Container(
|
|
||||||
padding: const EdgeInsets.all(UiConstants.space2),
|
|
||||||
decoration: BoxDecoration(
|
|
||||||
color: UiColors.primaryForeground.withOpacity(0.2),
|
|
||||||
shape: BoxShape.circle,
|
|
||||||
),
|
|
||||||
child: const Icon(
|
|
||||||
UiIcons.arrowLeft,
|
|
||||||
color: UiColors.primaryForeground,
|
|
||||||
size: UiConstants.space4,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
title: AnimatedSwitcher(
|
title: AnimatedSwitcher(
|
||||||
duration: const Duration(milliseconds: 200),
|
duration: const Duration(milliseconds: 200),
|
||||||
child: Text(
|
child: Text(
|
||||||
|
|||||||
@@ -506,21 +506,21 @@ class _WorkerRow extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (worker.status == CoverageWorkerStatus.checkedIn)
|
// if (worker.status == CoverageWorkerStatus.checkedIn)
|
||||||
UiButton.primary(
|
// UiButton.primary(
|
||||||
text: context.t.client_coverage.worker_row.verify,
|
// text: context.t.client_coverage.worker_row.verify,
|
||||||
size: UiButtonSize.small,
|
// size: UiButtonSize.small,
|
||||||
onPressed: () {
|
// onPressed: () {
|
||||||
UiSnackbar.show(
|
// UiSnackbar.show(
|
||||||
context,
|
// context,
|
||||||
message:
|
// message:
|
||||||
context.t.client_coverage.worker_row.verified_message(
|
// context.t.client_coverage.worker_row.verified_message(
|
||||||
name: worker.name,
|
// name: worker.name,
|
||||||
),
|
// ),
|
||||||
type: UiSnackbarType.success,
|
// type: UiSnackbarType.success,
|
||||||
);
|
// );
|
||||||
},
|
// },
|
||||||
),
|
// ),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user