mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-01 18:07:44 +00:00
38 lines
1.1 KiB
Dart
38 lines
1.1 KiB
Dart
|
import 'dart:ui';
|
||
|
import 'package:cake_wallet/src/widgets/base_alert_dialog.dart';
|
||
|
import 'package:flutter/cupertino.dart';
|
||
|
|
||
|
class AlertWithTwoActions extends BaseAlertDialog {
|
||
|
AlertWithTwoActions({
|
||
|
@required this.alertTitle,
|
||
|
@required this.alertContent,
|
||
|
@required this.leftButtonText,
|
||
|
@required this.rightButtonText,
|
||
|
@required this.actionLeftButton,
|
||
|
@required this.actionRightButton,
|
||
|
this.alertBarrierDismissible = true
|
||
|
});
|
||
|
|
||
|
final String alertTitle;
|
||
|
final String alertContent;
|
||
|
final String leftButtonText;
|
||
|
final String rightButtonText;
|
||
|
final VoidCallback actionLeftButton;
|
||
|
final VoidCallback actionRightButton;
|
||
|
final bool alertBarrierDismissible;
|
||
|
|
||
|
@override
|
||
|
String get titleText => alertTitle;
|
||
|
@override
|
||
|
String get contentText => alertContent;
|
||
|
@override
|
||
|
String get leftActionButtonText => leftButtonText;
|
||
|
@override
|
||
|
String get rightActionButtonText => rightButtonText;
|
||
|
@override
|
||
|
VoidCallback get actionLeft => actionLeftButton;
|
||
|
@override
|
||
|
VoidCallback get actionRight => actionRightButton;
|
||
|
@override
|
||
|
bool get barrierDismissible => alertBarrierDismissible;
|
||
|
}
|