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:flutter/material.dart';
|
||||
import 'package:flutter_modular/flutter_modular.dart';
|
||||
import 'package:krow_core/core.dart';
|
||||
|
||||
import '../models/billing_invoice_model.dart';
|
||||
|
||||
import '../widgets/completion_review/completion_review_actions.dart';
|
||||
import '../widgets/completion_review/completion_review_amount.dart';
|
||||
import '../widgets/completion_review/completion_review_info.dart';
|
||||
@@ -61,22 +59,22 @@ class _ShiftCompletionReviewPageState extends State<ShiftCompletionReviewPage> {
|
||||
const SizedBox(height: UiConstants.space4),
|
||||
CompletionReviewAmount(invoice: invoice),
|
||||
const SizedBox(height: UiConstants.space6),
|
||||
CompletionReviewWorkersHeader(workersCount: invoice.workersCount),
|
||||
const SizedBox(height: UiConstants.space4),
|
||||
CompletionReviewSearchAndTabs(
|
||||
selectedTab: selectedTab,
|
||||
workersCount: invoice.workersCount,
|
||||
onTabChanged: (int index) =>
|
||||
setState(() => selectedTab = index),
|
||||
onSearchChanged: (String val) =>
|
||||
setState(() => searchQuery = val),
|
||||
),
|
||||
const SizedBox(height: UiConstants.space4),
|
||||
...filteredWorkers.map(
|
||||
(BillingWorkerRecord worker) =>
|
||||
CompletionReviewWorkerCard(worker: worker),
|
||||
),
|
||||
const SizedBox(height: UiConstants.space4),
|
||||
// CompletionReviewWorkersHeader(workersCount: invoice.workersCount),
|
||||
// const SizedBox(height: UiConstants.space4),
|
||||
// CompletionReviewSearchAndTabs(
|
||||
// selectedTab: selectedTab,
|
||||
// workersCount: invoice.workersCount,
|
||||
// onTabChanged: (int index) =>
|
||||
// setState(() => selectedTab = index),
|
||||
// onSearchChanged: (String val) =>
|
||||
// setState(() => searchQuery = val),
|
||||
// ),
|
||||
// const SizedBox(height: UiConstants.space4),
|
||||
// ...filteredWorkers.map(
|
||||
// (BillingWorkerRecord worker) =>
|
||||
// CompletionReviewWorkerCard(worker: worker),
|
||||
// ),
|
||||
// const SizedBox(height: UiConstants.space4),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -23,14 +23,13 @@ class CompletionReviewAmount extends StatelessWidget {
|
||||
children: <Widget>[
|
||||
Text(
|
||||
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(
|
||||
'\$${invoice.totalAmount.toStringAsFixed(2)}',
|
||||
style: UiTypography.headline1b.textPrimary.copyWith(fontSize: 40),
|
||||
),
|
||||
const SizedBox(height: UiConstants.space1),
|
||||
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}',
|
||||
style: UiTypography.footnote2b.textSecondary,
|
||||
|
||||
Reference in New Issue
Block a user