This commit is contained in:
2026-03-26 14:24:39 +03:00
parent 2d5eb92cba
commit 139abad52f
2 changed files with 58 additions and 28 deletions
@@ -90,6 +90,7 @@ class _AccountEditorOverlayState extends State<AccountEditorOverlay> {
final editorPanelTop = cardTop + cardHeight + 20; final editorPanelTop = cardTop + cardHeight + 20;
final colorPanelTop = editorPanelTop + editorPanelHeight + 12; final colorPanelTop = editorPanelTop + editorPanelHeight + 12;
const colorPanelHeight = 410.0; const colorPanelHeight = 410.0;
// Preview card in overlay should match BalanceCardCarousel sizing.
return Consumer( return Consumer(
builder: (context, ref, _) { builder: (context, ref, _) {
@@ -120,6 +121,7 @@ class _AccountEditorOverlayState extends State<AccountEditorOverlay> {
return Material( return Material(
color: Colors.transparent, color: Colors.transparent,
child: Stack( child: Stack(
clipBehavior: Clip.none,
children: [ children: [
Positioned.fill( Positioned.fill(
child: BackdropFilter( child: BackdropFilter(
@@ -194,22 +196,36 @@ class _AccountEditorOverlayState extends State<AccountEditorOverlay> {
), ),
Positioned( Positioned(
top: cardTop, top: cardTop,
left: 20, left: 0,
right: 20, right: 0,
child: BalanceCard( child: FractionallySizedBox(
balance: previewBalance, widthFactor: 0.92,
currencyInfo: CurrencyInfo( child: SizedBox(
currencyMap[dash.tempAccountCurrency]?.symbol ?? '\$', height: cardHeight,
dash.tempAccountCurrency, child: Align(
alignment: Alignment.topCenter,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8),
child: BalanceCard(
balance: previewBalance,
currencyInfo: CurrencyInfo(
currencyMap[dash.tempAccountCurrency]?.symbol ??
'\$',
dash.tempAccountCurrency,
),
onLongPress: null,
accountName: dash.tempAccountName,
previewPrimary: dash.tempPrimary,
previewSecondary: dash.tempSecondary,
previewGradientType:
Theme.of(widget.context).brightness ==
Brightness.dark
? dash.tempDarkGradientType
: dash.tempLightGradientType,
),
),
),
), ),
onLongPress: null,
accountName: dash.tempAccountName,
previewPrimary: dash.tempPrimary,
previewSecondary: dash.tempSecondary,
previewGradientType:
Theme.of(widget.context).brightness == Brightness.dark
? dash.tempDarkGradientType
: dash.tempLightGradientType,
), ),
), ),
Positioned( Positioned(
@@ -42,6 +42,7 @@ class _FullScreenBlurOverlayState extends State<FullScreenBlurOverlay> {
return Material( return Material(
color: Colors.transparent, color: Colors.transparent,
child: Stack( child: Stack(
clipBehavior: Clip.none,
children: [ children: [
Positioned.fill( Positioned.fill(
child: BackdropFilter( child: BackdropFilter(
@@ -58,19 +59,32 @@ class _FullScreenBlurOverlayState extends State<FullScreenBlurOverlay> {
), ),
Positioned( Positioned(
top: cardTop, top: cardTop,
left: 20, left: 0,
right: 20, right: 0,
child: Consumer( child: FractionallySizedBox(
builder: (ctx, ref, _) => BalanceCard( widthFactor: 0.92,
balance: ref.read(totalBalanceProvider), child: SizedBox(
currencyInfo: ref.read(currencyProvider), height: cardHeight,
onLongPress: null, child: Align(
previewPrimary: dash.tempPrimary, alignment: Alignment.topCenter,
previewSecondary: dash.tempSecondary, child: Padding(
previewGradientType: Theme.of(widget.context).brightness == padding: const EdgeInsets.symmetric(horizontal: 8),
Brightness.dark child: Consumer(
? dash.tempDarkGradientType builder: (ctx, ref, _) => BalanceCard(
: dash.tempLightGradientType, balance: ref.read(totalBalanceProvider),
currencyInfo: ref.read(currencyProvider),
onLongPress: null,
previewPrimary: dash.tempPrimary,
previewSecondary: dash.tempSecondary,
previewGradientType: Theme.of(widget.context)
.brightness ==
Brightness.dark
? dash.tempDarkGradientType
: dash.tempLightGradientType,
),
),
),
),
), ),
), ),
), ),