change alert message

This commit is contained in:
2024-12-30 22:34:17 +01:00
parent 938b677b6e
commit 43d77f778b
7 changed files with 55 additions and 45 deletions

View File

@@ -1,10 +1,10 @@
import 'package:flutter/material.dart';
mixin ShowErrorDialog<T extends StatefulWidget> on State<T> {
void showErrorDialog(BuildContext context, String text) {
mixin ShowAlertDialog<T extends StatefulWidget> on State<T> {
void showAlertDialog(BuildContext context, String title, String text) {
// Create AlertDialog
AlertDialog dialog = AlertDialog(
title: Text("Error"),
title: Text(title),
content: Text(text),
actions: [
ElevatedButton(