2024-05-20 10:29:02 +00:00
|
|
|
import 'package:discover_module/custom_widget/text.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
2024-06-12 09:29:51 +00:00
|
|
|
import 'package:http_mock_adapter/http_mock_adapter.dart';
|
2024-05-20 10:29:02 +00:00
|
|
|
|
2024-06-12 09:29:51 +00:00
|
|
|
class Alert extends StatelessWidget {
|
|
|
|
Alert({super.key, required this.data, required this.onPressed});
|
2024-05-21 08:40:44 +00:00
|
|
|
String? data;
|
2024-06-12 09:29:51 +00:00
|
|
|
VoidCallbackAction? oidCallbackAction;
|
|
|
|
final void Function() onPressed;
|
2024-05-20 10:29:02 +00:00
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return AlertDialog(
|
|
|
|
title: Text1(
|
|
|
|
title: "Alert",
|
|
|
|
txtfont: 22.0,
|
|
|
|
),
|
|
|
|
content: Text1(
|
2024-06-12 09:29:51 +00:00
|
|
|
title: data!,
|
2024-05-20 10:29:02 +00:00
|
|
|
txtfont: 18.0,
|
|
|
|
),
|
2024-06-12 09:29:51 +00:00
|
|
|
actions: [TextButton(onPressed: onPressed, child: Text("Ok"))],
|
2024-05-20 10:29:02 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|