changed color theme to be black and added the ability to enter the amount in the recipient’s currency

This commit is contained in:
Arseni
2026-03-02 17:41:41 +03:00
parent 17e08ff26f
commit 6bb3ab5063
41 changed files with 618 additions and 239 deletions

View File

@@ -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: (_) {},
),
),
);
}
}