mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-20 06:08:34 +02:00
CWA-207 | applied new design to pin code page; added pin alert dialog; added barrier dismissible property to base alert page
This commit is contained in:
@@ -9,6 +9,7 @@ class BaseAlertDialog extends StatelessWidget {
|
||||
String get rightActionButtonText => '';
|
||||
VoidCallback get actionLeft => () {};
|
||||
VoidCallback get actionRight => () {};
|
||||
bool get barrierDismissible => true;
|
||||
|
||||
Widget title(BuildContext context) {
|
||||
return Text(
|
||||
@@ -113,7 +114,9 @@ class BaseAlertDialog extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return GestureDetector(
|
||||
onTap: () => Navigator.of(context).pop(),
|
||||
onTap: () => barrierDismissible
|
||||
? Navigator.of(context).pop()
|
||||
: null,
|
||||
child: Container(
|
||||
color: Colors.transparent,
|
||||
child: BackdropFilter(
|
||||
|
||||
Reference in New Issue
Block a user