No cache mod for web and other platforms

This commit is contained in:
Sewmina
2022-03-17 04:55:25 +05:30
parent 03cb6b81c4
commit 68c9d1a280
6 changed files with 676 additions and 315 deletions

View File

@@ -4,6 +4,36 @@ import 'package:flutter_spinkit/flutter_spinkit.dart';
import 'main.dart';
class Dialogs{
static showAlertDialog(BuildContext context, String title, String message) {
// set up the button
Widget okButton = TextButton(
child: Text("OK"),
onPressed: () {
Navigator.of(context).pop();
},
);
// set up the AlertDialog
AlertDialog alert = AlertDialog(
backgroundColor: Color(0xFF1F1F1F),
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20)),
title: Text(title),
content: Text(message),
actions: [
okButton,
],
);
// show the dialog
showDialog(
context: context,
builder: (BuildContext context) {
return alert;
},
);
}
static bool showing = false;
static BuildContext? context;
static List<Widget> popupsOpened=[];