This commit is contained in:
1 parent
3ae2aa4432
commit
64ea72de89
3 files changed
+19
-14
No files matched your search
@@ -162,7 +162,9 @@ class _TourListPageState extends State<TourListPage> {
|
||||
contentPadding: const EdgeInsets.all(0),
|
||||
onTap: () {
|
||||
if (tourActive) {
|
||||
_clicked(tour);
|
||||
_clicked(tour, false);
|
||||
} else {
|
||||
_clicked(tour, true);
|
||||
}
|
||||
},
|
||||
title: Container(
|
||||
@@ -198,8 +200,7 @@ class _TourListPageState extends State<TourListPage> {
|
||||
return tourWidgets;
|
||||
}
|
||||
|
||||
void _clicked(JobTour tour) {
|
||||
MessageService().publish<ContentViewWidget>(Constants.messageTopicPushContentView,
|
||||
arguments: TourDetailsPage(job: widget.job, tour: tour, readOnly: tour.state != 0));
|
||||
void _clicked(JobTour tour, bool readOnly) {
|
||||
MessageService().publish<ContentViewWidget>(Constants.messageTopicPushContentView, arguments: TourDetailsPage(job: widget.job, tour: tour, readOnly: readOnly));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user