Erweiterungen
This commit is contained in:
1 parent
70a8c04516
commit
b7d45efecc
5 files changed
+117
-40
No files matched your search
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user