✨ Post award
This commit is contained in:
		| @@ -270,6 +270,8 @@ class _PaymentContentState extends ConsumerState<_PaymentContent> { | ||||
|           } | ||||
|         } else if (err.response?.statusCode == 400) { | ||||
|           errorMessage = err.response?.data?['error'] ?? errorMessage; | ||||
|         } else { | ||||
|           rethrow; | ||||
|         } | ||||
|       } | ||||
|       throw errorMessage; | ||||
| @@ -419,42 +421,48 @@ class _PaymentContentState extends ConsumerState<_PaymentContent> { | ||||
|   } | ||||
|  | ||||
|   Widget _buildBiometricAuth() { | ||||
|     return Column( | ||||
|       mainAxisAlignment: MainAxisAlignment.center, | ||||
|       crossAxisAlignment: CrossAxisAlignment.center, | ||||
|       children: [ | ||||
|         Icon(Symbols.fingerprint, size: 48), | ||||
|         const Gap(16), | ||||
|         Text( | ||||
|           'useBiometricToConfirm'.tr(), | ||||
|           style: Theme.of( | ||||
|             context, | ||||
|           ).textTheme.titleMedium?.copyWith(fontWeight: FontWeight.w500), | ||||
|           textAlign: TextAlign.center, | ||||
|         ), | ||||
|         Text( | ||||
|           'The biometric data will only be processed on your device', | ||||
|           style: Theme.of(context).textTheme.bodyMedium?.copyWith( | ||||
|             color: Theme.of(context).colorScheme.onSurfaceVariant, | ||||
|             fontSize: 11, | ||||
|           ), | ||||
|           textAlign: TextAlign.center, | ||||
|         ).opacity(0.75), | ||||
|         const Gap(28), | ||||
|         ElevatedButton.icon( | ||||
|           onPressed: _authenticateWithBiometric, | ||||
|           icon: const Icon(Symbols.fingerprint), | ||||
|           label: Text('authenticateNow'.tr()), | ||||
|           style: ElevatedButton.styleFrom( | ||||
|             padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 12), | ||||
|           ), | ||||
|         ), | ||||
|         TextButton( | ||||
|           onPressed: () => _fallbackToPinMode(null), | ||||
|           child: Text('usePinInstead'.tr()), | ||||
|         ), | ||||
|       ], | ||||
|     ).center(); | ||||
|     return SingleChildScrollView( | ||||
|       child: | ||||
|           Column( | ||||
|             mainAxisAlignment: MainAxisAlignment.center, | ||||
|             crossAxisAlignment: CrossAxisAlignment.center, | ||||
|             children: [ | ||||
|               Icon(Symbols.fingerprint, size: 48), | ||||
|               const Gap(16), | ||||
|               Text( | ||||
|                 'useBiometricToConfirm'.tr(), | ||||
|                 style: Theme.of( | ||||
|                   context, | ||||
|                 ).textTheme.titleMedium?.copyWith(fontWeight: FontWeight.w500), | ||||
|                 textAlign: TextAlign.center, | ||||
|               ), | ||||
|               Text( | ||||
|                 'The biometric data will only be processed on your device', | ||||
|                 style: Theme.of(context).textTheme.bodyMedium?.copyWith( | ||||
|                   color: Theme.of(context).colorScheme.onSurfaceVariant, | ||||
|                   fontSize: 11, | ||||
|                 ), | ||||
|                 textAlign: TextAlign.center, | ||||
|               ).opacity(0.75), | ||||
|               const Gap(28), | ||||
|               ElevatedButton.icon( | ||||
|                 onPressed: _authenticateWithBiometric, | ||||
|                 icon: const Icon(Symbols.fingerprint), | ||||
|                 label: Text('authenticateNow'.tr()), | ||||
|                 style: ElevatedButton.styleFrom( | ||||
|                   padding: const EdgeInsets.symmetric( | ||||
|                     horizontal: 24, | ||||
|                     vertical: 12, | ||||
|                   ), | ||||
|                 ), | ||||
|               ), | ||||
|               TextButton( | ||||
|                 onPressed: () => _fallbackToPinMode(null), | ||||
|                 child: Text('usePinInstead'.tr()), | ||||
|               ), | ||||
|             ], | ||||
|           ).center(), | ||||
|     ); | ||||
|   } | ||||
|  | ||||
|   Widget _buildActionButtons() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user