feat: Temporarily disable worker list display and refine amount widget styling on the completion review page.
This commit is contained in:
@@ -1,10 +1,8 @@
|
|||||||
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_modular/flutter_modular.dart';
|
import 'package:flutter_modular/flutter_modular.dart';
|
||||||
import 'package:krow_core/core.dart';
|
|
||||||
|
|
||||||
import '../models/billing_invoice_model.dart';
|
import '../models/billing_invoice_model.dart';
|
||||||
|
|
||||||
import '../widgets/completion_review/completion_review_actions.dart';
|
import '../widgets/completion_review/completion_review_actions.dart';
|
||||||
import '../widgets/completion_review/completion_review_amount.dart';
|
import '../widgets/completion_review/completion_review_amount.dart';
|
||||||
import '../widgets/completion_review/completion_review_info.dart';
|
import '../widgets/completion_review/completion_review_info.dart';
|
||||||
@@ -61,22 +59,22 @@ class _ShiftCompletionReviewPageState extends State<ShiftCompletionReviewPage> {
|
|||||||
const SizedBox(height: UiConstants.space4),
|
const SizedBox(height: UiConstants.space4),
|
||||||
CompletionReviewAmount(invoice: invoice),
|
CompletionReviewAmount(invoice: invoice),
|
||||||
const SizedBox(height: UiConstants.space6),
|
const SizedBox(height: UiConstants.space6),
|
||||||
CompletionReviewWorkersHeader(workersCount: invoice.workersCount),
|
// CompletionReviewWorkersHeader(workersCount: invoice.workersCount),
|
||||||
const SizedBox(height: UiConstants.space4),
|
// const SizedBox(height: UiConstants.space4),
|
||||||
CompletionReviewSearchAndTabs(
|
// CompletionReviewSearchAndTabs(
|
||||||
selectedTab: selectedTab,
|
// selectedTab: selectedTab,
|
||||||
workersCount: invoice.workersCount,
|
// workersCount: invoice.workersCount,
|
||||||
onTabChanged: (int index) =>
|
// onTabChanged: (int index) =>
|
||||||
setState(() => selectedTab = index),
|
// setState(() => selectedTab = index),
|
||||||
onSearchChanged: (String val) =>
|
// onSearchChanged: (String val) =>
|
||||||
setState(() => searchQuery = val),
|
// setState(() => searchQuery = val),
|
||||||
),
|
// ),
|
||||||
const SizedBox(height: UiConstants.space4),
|
// const SizedBox(height: UiConstants.space4),
|
||||||
...filteredWorkers.map(
|
// ...filteredWorkers.map(
|
||||||
(BillingWorkerRecord worker) =>
|
// (BillingWorkerRecord worker) =>
|
||||||
CompletionReviewWorkerCard(worker: worker),
|
// CompletionReviewWorkerCard(worker: worker),
|
||||||
),
|
// ),
|
||||||
const SizedBox(height: UiConstants.space4),
|
// const SizedBox(height: UiConstants.space4),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -23,14 +23,13 @@ class CompletionReviewAmount extends StatelessWidget {
|
|||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Text(
|
Text(
|
||||||
t.client_billing.total_amount_label,
|
t.client_billing.total_amount_label,
|
||||||
style: UiTypography.body2b.copyWith(color: const Color(0xFF2563EB)),
|
style: UiTypography.body2b.textPrimary,
|
||||||
),
|
),
|
||||||
const SizedBox(height: UiConstants.space2),
|
const SizedBox(height: UiConstants.space1),
|
||||||
Text(
|
Text(
|
||||||
'\$${invoice.totalAmount.toStringAsFixed(2)}',
|
'\$${invoice.totalAmount.toStringAsFixed(2)}',
|
||||||
style: UiTypography.headline1b.textPrimary.copyWith(fontSize: 40),
|
style: UiTypography.headline1b.textPrimary.copyWith(fontSize: 40),
|
||||||
),
|
),
|
||||||
const SizedBox(height: UiConstants.space1),
|
|
||||||
Text(
|
Text(
|
||||||
'${invoice.totalHours.toStringAsFixed(1)} ${t.client_billing.hours_suffix} • \$${(invoice.totalAmount / (invoice.totalHours > 0.1 ? invoice.totalHours : 1)).toStringAsFixed(2)}${t.client_billing.avg_rate_suffix}',
|
'${invoice.totalHours.toStringAsFixed(1)} ${t.client_billing.hours_suffix} • \$${(invoice.totalAmount / (invoice.totalHours > 0.1 ? invoice.totalHours : 1)).toStringAsFixed(2)}${t.client_billing.avg_rate_suffix}',
|
||||||
style: UiTypography.footnote2b.textSecondary,
|
style: UiTypography.footnote2b.textSecondary,
|
||||||
|
|||||||
Reference in New Issue
Block a user