26 lines
682 B
Dart
26 lines
682 B
Dart
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"))],
|
|
);
|
|
}
|
|
}
|