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

+5 -2
View File
@@ -11,11 +11,14 @@ import '../tools/constants.dart';
import '../tools/util.dart';
class TourDetailsPage extends ContentViewWidget {
const TourDetailsPage({super.key, required this.job, required this.tour});
const TourDetailsPage({super.key, required this.job, required this.tour, this.readOnly = false});
final Job job;
final JobTour tour;
final bool readOnly;
@override
State<TourDetailsPage> createState() => _TourDetailsPageState();
@@ -139,7 +142,7 @@ class _TourDetailsPageState extends State<TourDetailsPage> {
const SizedBox(height: 10),
getDefaultButton('Weiter', () =>
{
BroadcastReceiver().publish<ContentViewWidget>(Constants.messageTopicPushContentView, arguments: TaskListPage(tour: widget.tour))
BroadcastReceiver().publish<ContentViewWidget>(Constants.messageTopicPushContentView, arguments: TaskListPage(tour: widget.tour, readOnly: widget.readOnly))
}),
],
),