KonectarApp/lib/contacts_module/custom_widget/show_alert.dart

26 lines
682 B
Dart
Raw Permalink Normal View History

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