mirror of
https://github.com/mirarr-app/mirarr.git
synced 2025-08-23 06:16:31 +08:00
28 lines
667 B
Dart
28 lines
667 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
void showErrorDialog(String title, String content, BuildContext context) {
|
|
showDialog(
|
|
context: context,
|
|
builder: (BuildContext context) {
|
|
return AlertDialog(
|
|
title: Text(
|
|
title,
|
|
style: TextStyle(color: Theme.of(context).secondaryHeaderColor),
|
|
),
|
|
content: Text(
|
|
content,
|
|
style: const TextStyle(color: Colors.white),
|
|
),
|
|
actions: <Widget>[
|
|
TextButton(
|
|
onPressed: () {
|
|
Navigator.of(context).pop();
|
|
},
|
|
child: const Text('OK'),
|
|
),
|
|
],
|
|
);
|
|
},
|
|
);
|
|
}
|