changed color theme to be black and added the ability to enter the amount in the recipient’s currency
This commit is contained in:
@@ -9,7 +9,10 @@ class TwoFactorCodeInput extends StatelessWidget {
|
||||
const TwoFactorCodeInput({super.key, required this.onCompleted});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => Center(
|
||||
Widget build(BuildContext context){
|
||||
final theme = Theme.of(context).colorScheme;
|
||||
|
||||
return Center(
|
||||
child: ConstrainedBox(
|
||||
constraints: const BoxConstraints(maxWidth: 300),
|
||||
child: MaterialPinField(
|
||||
@@ -21,13 +24,18 @@ class TwoFactorCodeInput extends StatelessWidget {
|
||||
shape: MaterialPinShape.outlined,
|
||||
borderRadius: BorderRadius.circular(4),
|
||||
cellSize: Size(40, 48),
|
||||
borderColor: Theme.of(context).colorScheme.primaryContainer,
|
||||
focusedBorderColor: Theme.of(context).colorScheme.primary,
|
||||
cursorColor: Theme.of(context).colorScheme.primary,
|
||||
borderColor: theme.primaryContainer.withValues(alpha: 0.2),
|
||||
focusedBorderColor: theme.primary,
|
||||
filledBorderColor: theme.primary,
|
||||
cursorColor: theme.primary,
|
||||
focusedFillColor: theme.onSecondary,
|
||||
filledFillColor: theme.onSecondary,
|
||||
fillColor: theme.onSecondary,
|
||||
),
|
||||
onCompleted: onCompleted,
|
||||
onChanged: (_) {},
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user