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(
|
||||
color: UiColors.white,
|
||||
borderRadius: UiConstants.radiusLg,
|
||||
border: Border.all(color: UiColors.border),
|
||||
boxShadow: <BoxShadow>[
|
||||
BoxShadow(
|
||||
color: UiColors.black.withValues(alpha: 0.04),
|
||||
blurRadius: 8,
|
||||
offset: const Offset(0, 2),
|
||||
),
|
||||
],
|
||||
border: Border.all(color: UiColors.border, width: 0.5),
|
||||
),
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
@@ -249,9 +242,12 @@ class _ViewOrderCardState extends State<ViewOrderCard> {
|
||||
size: 14,
|
||||
color: UiColors.iconSecondary,
|
||||
),
|
||||
Text(
|
||||
order.eventName,
|
||||
style: UiTypography.headline5m.textSecondary,
|
||||
Expanded(
|
||||
child: Text(
|
||||
order.eventName,
|
||||
style: UiTypography.headline5m.textSecondary,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -313,7 +309,8 @@ class _ViewOrderCardState extends State<ViewOrderCard> {
|
||||
Expanded(
|
||||
child: Text(
|
||||
order.hubManagerName!,
|
||||
style: UiTypography.footnote2r.textSecondary,
|
||||
style:
|
||||
UiTypography.footnote2r.textSecondary,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
@@ -335,7 +332,8 @@ class _ViewOrderCardState extends State<ViewOrderCard> {
|
||||
bgColor: UiColors.primary.withValues(alpha: 0.08),
|
||||
onTap: () => _openEditSheet(order: order),
|
||||
),
|
||||
if (_canEditOrder(order)) const SizedBox(width: UiConstants.space2),
|
||||
if (_canEditOrder(order))
|
||||
const SizedBox(width: UiConstants.space2),
|
||||
if (order.confirmedApps.isNotEmpty)
|
||||
_buildHeaderIconButton(
|
||||
icon: _expanded
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
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 'daily_ops_event.dart';
|
||||
import 'daily_ops_state.dart';
|
||||
|
||||
Reference in New Issue
Block a user