Erweiterungen

This commit is contained in:
Sven committed 2024-02-08 18:03:04 +01:00
1 parent efb55331d2
commit 20a1309946
1 file changed
+6 -17
+6 -17
View File
@@ -93,9 +93,7 @@ class _TourListPageState extends State<TourListPage> {
Image.asset("assets/${mapVehicleTypeToImageName(widget.job.vhtId)}", width: 60, height: 60), Image.asset("assets/${mapVehicleTypeToImageName(widget.job.vhtId)}", width: 60, height: 60),
const SizedBox(width: 10), const SizedBox(width: 10),
Expanded( Expanded(
child: Text( child: Text(mapVehicleTypeToText(widget.job.vhtId)),
mapVehicleTypeToText(widget.job.vhtId)
),
), ),
const SizedBox(width: 10), const SizedBox(width: 10),
SizedBox( SizedBox(
@@ -119,12 +117,8 @@ class _TourListPageState extends State<TourListPage> {
], ],
), ),
Expanded( Expanded(
child: ListView( child: ListView(padding: const EdgeInsets.all(0), children: jobWidgets),
padding: const EdgeInsets.all(0),
children: jobWidgets
),
) )
], ],
), ),
); );
@@ -157,10 +151,7 @@ class _TourListPageState extends State<TourListPage> {
}, },
title: Container( title: Container(
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border.all(color: Colors.grey, width: 0.5), border: Border.all(color: Colors.grey, width: 0.5), color: color, borderRadius: const BorderRadius.all(Radius.circular(13))),
color: color,
borderRadius: const BorderRadius.all(Radius.circular(13))
),
padding: const EdgeInsets.all(5.0), padding: const EdgeInsets.all(5.0),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch, crossAxisAlignment: CrossAxisAlignment.stretch,
@@ -184,8 +175,7 @@ class _TourListPageState extends State<TourListPage> {
), ),
], ],
), ),
) )),
),
); );
} }
@@ -193,8 +183,7 @@ class _TourListPageState extends State<TourListPage> {
} }
void _clicked(JobTour tour) { void _clicked(JobTour tour) {
if (tour.state == 0) { MessageService().publish<ContentViewWidget>(Constants.messageTopicPushContentView,
MessageService().publish<ContentViewWidget>(Constants.messageTopicPushContentView, arguments: TourDetailsPage(job: widget.job, tour: tour, readOnly: widget.readOnly)); arguments: TourDetailsPage(job: widget.job, tour: tour, readOnly: tour.state != 0));
}
} }
} }