mirror of
https://github.com/koloideal/Casha.git
synced 2026-06-10 18:35:28 +03:00
stableee
This commit is contained in:
@@ -388,6 +388,7 @@ class _AddTransactionScreenState extends ConsumerState<AddTransactionScreen>
|
||||
AmountInput(
|
||||
controller: _amountController,
|
||||
currencySymbol: overrideCurrency,
|
||||
currencyCode: state.overrideCurrencyCode,
|
||||
showError: _showError,
|
||||
borderColorAnimation: _borderColorAnimation,
|
||||
isDark: isDark,
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import '../../../shared/widgets/byn_sign.dart';
|
||||
|
||||
class AmountInput extends StatelessWidget {
|
||||
final TextEditingController controller;
|
||||
final String currencySymbol;
|
||||
final String currencyCode;
|
||||
final bool showError;
|
||||
final Animation<Color?> borderColorAnimation;
|
||||
final bool isDark;
|
||||
@@ -12,6 +14,7 @@ class AmountInput extends StatelessWidget {
|
||||
super.key,
|
||||
required this.controller,
|
||||
required this.currencySymbol,
|
||||
required this.currencyCode,
|
||||
required this.showError,
|
||||
required this.borderColorAnimation,
|
||||
required this.isDark,
|
||||
@@ -41,15 +44,22 @@ class AmountInput extends StatelessWidget {
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 14),
|
||||
child: Text(
|
||||
currencySymbol,
|
||||
style: Theme.of(context).textTheme.bodyLarge?.copyWith(
|
||||
color: Theme.of(
|
||||
context,
|
||||
).colorScheme.onSurface.withOpacity(0.7),
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
child: currencyCode == 'BYN'
|
||||
? BynSign(
|
||||
fontSize: 18,
|
||||
color: Theme.of(
|
||||
context,
|
||||
).colorScheme.onSurface.withOpacity(0.7),
|
||||
)
|
||||
: Text(
|
||||
currencySymbol,
|
||||
style: Theme.of(context).textTheme.bodyLarge?.copyWith(
|
||||
color: Theme.of(
|
||||
context,
|
||||
).colorScheme.onSurface.withOpacity(0.7),
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
child: TextField(
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import '../../../shared/widgets/byn_sign.dart';
|
||||
|
||||
class CurrencyPicker extends StatelessWidget {
|
||||
final String selected;
|
||||
@@ -45,16 +46,23 @@ class CurrencyPicker extends StatelessWidget {
|
||||
),
|
||||
child: Column(
|
||||
children: [
|
||||
Text(
|
||||
c.$2,
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: isSelected
|
||||
? const Color(0xFF7C6DED)
|
||||
: colorScheme.onSurface,
|
||||
),
|
||||
),
|
||||
c.$1 == 'BYN'
|
||||
? BynSign(
|
||||
fontSize: 16,
|
||||
color: isSelected
|
||||
? const Color(0xFF7C6DED)
|
||||
: colorScheme.onSurface,
|
||||
)
|
||||
: Text(
|
||||
c.$2,
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: isSelected
|
||||
? const Color(0xFF7C6DED)
|
||||
: colorScheme.onSurface,
|
||||
),
|
||||
),
|
||||
Text(
|
||||
c.$1,
|
||||
style: TextStyle(
|
||||
|
||||
Reference in New Issue
Block a user