DiscoverModule/lib/contacts_module/custom_widget/show_alert.dart

26 lines
682 B
Dart
Raw Normal View History

2024-10-07 12:41:28 +00:00
import 'package:discover_module/contacts_module/custom_widget/text.dart';
2024-05-20 10:29:02 +00:00
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
);
}
}