This commit is contained in:
2026-08-06 21:35:22 +03:00
parent 861a9abd02
commit c4ac692019
2 changed files with 14 additions and 6 deletions
@@ -29,7 +29,7 @@ String _smartBalance(double amount, AmountFormat fmt, String symbol) {
return symbol.isEmpty ? formatted : '$symbol$formatted';
}
class BalanceCard extends ConsumerStatefulWidget {
class BalanceCard extends StatefulWidget {
final double balance;
final CurrencyInfo currencyInfo;
final VoidCallback? onLongPress;
@@ -56,10 +56,10 @@ class BalanceCard extends ConsumerStatefulWidget {
});
@override
ConsumerState<BalanceCard> createState() => BalanceCardState();
State<BalanceCard> createState() => BalanceCardState();
}
class BalanceCardState extends ConsumerState<BalanceCard>
class BalanceCardState extends State<BalanceCard>
with SingleTickerProviderStateMixin {
late final AnimationController _controller;
double _tiltX = 0.0, _tiltY = 0.0;
@@ -92,6 +92,8 @@ class BalanceCardState extends ConsumerState<BalanceCard>
@override
Widget build(BuildContext context) {
return Consumer(
builder: (context, ref, _) {
final s = ref.watch(stringsProvider);
final rates = ref.read(exchangeRateServiceProvider);
final fmt = ref.watch(amountFormatProvider);
@@ -357,5 +359,7 @@ class BalanceCardState extends ConsumerState<BalanceCard>
},
),
);
},
);
}
}
@@ -5,15 +5,15 @@ import '../../core/l10n/locale_provider.dart';
import '../../core/services/haptic_service.dart';
import '../providers/premium_provider.dart';
class ProSubscriptionCard extends ConsumerStatefulWidget {
class ProSubscriptionCard extends StatefulWidget {
const ProSubscriptionCard({super.key});
@override
ConsumerState<ProSubscriptionCard> createState() =>
State<ProSubscriptionCard> createState() =>
_ProSubscriptionCardState();
}
class _ProSubscriptionCardState extends ConsumerState<ProSubscriptionCard>
class _ProSubscriptionCardState extends State<ProSubscriptionCard>
with SingleTickerProviderStateMixin {
late final AnimationController _shimmerController;
@@ -40,6 +40,8 @@ class _ProSubscriptionCardState extends ConsumerState<ProSubscriptionCard>
@override
Widget build(BuildContext context) {
return Consumer(
builder: (context, ref, _) {
final s = ref.watch(stringsProvider);
final isPremium = ref.watch(isPremiumProvider);
@@ -207,6 +209,8 @@ class _ProSubscriptionCardState extends ConsumerState<ProSubscriptionCard>
],
),
);
},
);
}
}