Remove unnecessary attribute

This commit is contained in:
Vishnu Mohandas 2021-03-30 13:25:29 +05:30
parent 737e9742c1
commit f32b65aa32
2 changed files with 2 additions and 4 deletions

View file

@ -217,7 +217,7 @@ class _PasswordEntryPageState extends State<PasswordEntryPage> {
showDialog(
context: context,
builder: (BuildContext context) {
return RecoveryKeyDialog(result, widget.isUpdatePassword, onDone);
return RecoveryKeyDialog(result, onDone);
},
barrierColor: Colors.black.withOpacity(0.85),
barrierDismissible: false,

View file

@ -11,11 +11,9 @@ import 'dart:io' as io;
class RecoveryKeyDialog extends StatefulWidget {
final KeyGenResult result;
final bool isUpdatePassword;
final Function() onDone;
RecoveryKeyDialog(this.result, this.isUpdatePassword, this.onDone, {Key key})
: super(key: key);
RecoveryKeyDialog(this.result, this.onDone, {Key key}) : super(key: key);
@override
_RecoveryKeyDialogState createState() => _RecoveryKeyDialogState();