Created
September 26, 2022 11:09
-
-
Save haashem/404b9bcc1329641d23cdd7bf7458d3fe to your computer and use it in GitHub Desktop.
Show dialog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void onCardPressed(SignInSecurityCardType type) { | |
showDialog( | |
context: context, | |
barrierColor: Colors.grey.withOpacity(0.8), | |
barrierDismissible: true, | |
builder: (context) { | |
switch (type) { | |
case SignInSecurityCardType.appleId: | |
break; | |
case SignInSecurityCardType.password: | |
break; | |
case SignInSecurityCardType.accountSecurity: | |
return Modal( | |
icon: Icons.security, | |
title: 'Account Security', | |
child: AccountSecurity( | |
onDevicePressed: () {}, | |
), | |
onCloseButtonPressed: () => Navigator.of(context).pop(), | |
); | |
} | |
return Container(); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment