redirect to item list menu

This commit is contained in:
2024-07-30 23:46:15 +02:00
parent cadd3ef2bf
commit c3937a3e30
2 changed files with 34 additions and 44 deletions

View File

@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';
import '../main.dart';
import '../pages/ListItemMenu.dart';
mixin ShowEventDialog<T extends StatefulWidget> on State<T> {
void showEventDialog(BuildContext context, String text) {
@@ -16,7 +16,10 @@ mixin ShowEventDialog<T extends StatefulWidget> on State<T> {
textStyle:
TextStyle(fontSize: 15, fontWeight: FontWeight.normal)),
onPressed: () {
Navigator.of(context).pop("Yes, Of course!"); // Return value
Navigator.push(
context,
MaterialPageRoute(
builder: (_) => ListItemMenu())); // Return value
}),
],
);