cake_wallet/lib/src/widgets/alert_with_no_action.dart.dart
Serhii cf1e8a306c
Some checks are pending
Cache Dependencies / test (push) Waiting to run
Qr code passphrase restoration flow fix (#1694)
* add passphrase to credentials

* prevent double restoring

* fix conflict, simplify restricting user from tapping restore multiple times

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-09-24 06:40:33 +03:00

30 lines
715 B
Dart

import 'package:flutter/material.dart';
import 'package:cake_wallet/src/widgets/base_alert_dialog.dart';
class AlertWithNoAction extends BaseAlertDialog {
AlertWithNoAction({
required this.alertTitle,
required this.alertContent,
this.alertBarrierDismissible = true,
Key? key,
});
final String alertTitle;
final String alertContent;
final bool alertBarrierDismissible;
@override
String get titleText => alertTitle;
@override
String get contentText => alertContent;
@override
bool get barrierDismissible => alertBarrierDismissible;
@override
bool get isBottomDividerExists => false;
@override
Widget actionButtons(BuildContext context) => Container(height: 60);
}