refactor: Clean up view order card layout and improve text overflow handling
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -161,14 +161,7 @@ class _ViewOrderCardState extends State<ViewOrderCard> {
|
|||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: UiColors.white,
|
color: UiColors.white,
|
||||||
borderRadius: UiConstants.radiusLg,
|
borderRadius: UiConstants.radiusLg,
|
||||||
border: Border.all(color: UiColors.border),
|
border: Border.all(color: UiColors.border, width: 0.5),
|
||||||
boxShadow: <BoxShadow>[
|
|
||||||
BoxShadow(
|
|
||||||
color: UiColors.black.withValues(alpha: 0.04),
|
|
||||||
blurRadius: 8,
|
|
||||||
offset: const Offset(0, 2),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
@@ -249,9 +242,12 @@ class _ViewOrderCardState extends State<ViewOrderCard> {
|
|||||||
size: 14,
|
size: 14,
|
||||||
color: UiColors.iconSecondary,
|
color: UiColors.iconSecondary,
|
||||||
),
|
),
|
||||||
Text(
|
Expanded(
|
||||||
order.eventName,
|
child: Text(
|
||||||
style: UiTypography.headline5m.textSecondary,
|
order.eventName,
|
||||||
|
style: UiTypography.headline5m.textSecondary,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -313,7 +309,8 @@ class _ViewOrderCardState extends State<ViewOrderCard> {
|
|||||||
Expanded(
|
Expanded(
|
||||||
child: Text(
|
child: Text(
|
||||||
order.hubManagerName!,
|
order.hubManagerName!,
|
||||||
style: UiTypography.footnote2r.textSecondary,
|
style:
|
||||||
|
UiTypography.footnote2r.textSecondary,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
@@ -335,7 +332,8 @@ class _ViewOrderCardState extends State<ViewOrderCard> {
|
|||||||
bgColor: UiColors.primary.withValues(alpha: 0.08),
|
bgColor: UiColors.primary.withValues(alpha: 0.08),
|
||||||
onTap: () => _openEditSheet(order: order),
|
onTap: () => _openEditSheet(order: order),
|
||||||
),
|
),
|
||||||
if (_canEditOrder(order)) const SizedBox(width: UiConstants.space2),
|
if (_canEditOrder(order))
|
||||||
|
const SizedBox(width: UiConstants.space2),
|
||||||
if (order.confirmedApps.isNotEmpty)
|
if (order.confirmedApps.isNotEmpty)
|
||||||
_buildHeaderIconButton(
|
_buildHeaderIconButton(
|
||||||
icon: _expanded
|
icon: _expanded
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||||
import 'package:krow_domain/src/entities/reports/daily_ops_report.dart';
|
import 'package:krow_domain/krow_domain.dart';
|
||||||
|
|
||||||
import '../../../domain/repositories/reports_repository.dart';
|
import '../../../domain/repositories/reports_repository.dart';
|
||||||
import 'daily_ops_event.dart';
|
import 'daily_ops_event.dart';
|
||||||
import 'daily_ops_state.dart';
|
import 'daily_ops_state.dart';
|
||||||
|
|||||||
Reference in New Issue
Block a user