You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
832 B

import 'alert_interface.dart';
import 'package:flutter_platform_alert/flutter_platform_alert.dart';
class AlertImpl implements Alert {
@override
Future<CustomButton> showAlert({
required String windowTitle,
required String text,
String? positiveButtonTitle,
}) =>
FlutterPlatformAlert.showCustomAlert(
windowTitle: windowTitle,
text: text,
positiveButtonTitle: positiveButtonTitle,
);
@override
Future<CustomButton> showConfirm({
required String windowTitle,
required String text,
String? positiveButtonTitle,
String? negativeButtonTitle,
}) =>
FlutterPlatformAlert.showCustomAlert(
windowTitle: windowTitle,
text: text,
positiveButtonTitle: positiveButtonTitle,
negativeButtonTitle: negativeButtonTitle,
);
}