mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
unfocus fields when tapping button
Minor cleanup [skip ci]
This commit is contained in:
@@ -91,7 +91,10 @@ class LoadingPrimaryButton extends StatelessWidget {
|
||||
width: double.infinity,
|
||||
height: 52.0,
|
||||
child: TextButton(
|
||||
onPressed: (isLoading || isDisabled) ? null : onPressed,
|
||||
onPressed: (isLoading || isDisabled) ? null : () {
|
||||
FocusScope.of(context).unfocus();
|
||||
onPressed.call();
|
||||
},
|
||||
style: ButtonStyle(
|
||||
backgroundColor:
|
||||
MaterialStateProperty.all(isDisabled ? color.withOpacity(0.5) : color),
|
||||
|
||||
Reference in New Issue
Block a user