Erweiterungen

This commit is contained in:
Sven committed 2024-02-03 11:42:48 +01:00
1 parent 70a8c04516
commit b7d45efecc
5 files changed
+117 -40

No files matched your search

+4 -2
View File
@@ -11,10 +11,12 @@ import '../tools/constants.dart';
import '../tools/util.dart';
class TourListPage extends ContentViewWidget {
const TourListPage({super.key, required this.job});
const TourListPage({super.key, required this.job, this.readOnly = false});
final Job job;
final bool readOnly;
@override
State<TourListPage> createState() => _TourListPageState();
@@ -192,7 +194,7 @@ class _TourListPageState extends State<TourListPage> {
void _clicked(JobTour tour) {
if (tour.state == 0) {
BroadcastReceiver().publish<ContentViewWidget>(Constants.messageTopicPushContentView, arguments: TourDetailsPage(job: widget.job, tour: tour));
BroadcastReceiver().publish<ContentViewWidget>(Constants.messageTopicPushContentView, arguments: TourDetailsPage(job: widget.job, tour: tour, readOnly: widget.readOnly));
}
}
}