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,12 +196,21 @@ class _AccountEditorOverlayState extends State<AccountEditorOverlay> {
), ),
Positioned( Positioned(
top: cardTop, top: cardTop,
left: 20, left: 0,
right: 20, right: 0,
child: FractionallySizedBox(
widthFactor: 0.92,
child: SizedBox(
height: cardHeight,
child: Align(
alignment: Alignment.topCenter,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8),
child: BalanceCard( child: BalanceCard(
balance: previewBalance, balance: previewBalance,
currencyInfo: CurrencyInfo( currencyInfo: CurrencyInfo(
currencyMap[dash.tempAccountCurrency]?.symbol ?? '\$', currencyMap[dash.tempAccountCurrency]?.symbol ??
'\$',
dash.tempAccountCurrency, dash.tempAccountCurrency,
), ),
onLongPress: null, onLongPress: null,
@@ -207,11 +218,16 @@ class _AccountEditorOverlayState extends State<AccountEditorOverlay> {
previewPrimary: dash.tempPrimary, previewPrimary: dash.tempPrimary,
previewSecondary: dash.tempSecondary, previewSecondary: dash.tempSecondary,
previewGradientType: previewGradientType:
Theme.of(widget.context).brightness == Brightness.dark Theme.of(widget.context).brightness ==
Brightness.dark
? dash.tempDarkGradientType ? dash.tempDarkGradientType
: dash.tempLightGradientType, : dash.tempLightGradientType,
), ),
), ),
),
),
),
),
Positioned( Positioned(
top: editorPanelTop, top: editorPanelTop,
left: 20, left: 20,
@@ -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,8 +59,16 @@ class _FullScreenBlurOverlayState extends State<FullScreenBlurOverlay> {
), ),
Positioned( Positioned(
top: cardTop, top: cardTop,
left: 20, left: 0,
right: 20, right: 0,
child: FractionallySizedBox(
widthFactor: 0.92,
child: SizedBox(
height: cardHeight,
child: Align(
alignment: Alignment.topCenter,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8),
child: Consumer( child: Consumer(
builder: (ctx, ref, _) => BalanceCard( builder: (ctx, ref, _) => BalanceCard(
balance: ref.read(totalBalanceProvider), balance: ref.read(totalBalanceProvider),
@@ -67,13 +76,18 @@ class _FullScreenBlurOverlayState extends State<FullScreenBlurOverlay> {
onLongPress: null, onLongPress: null,
previewPrimary: dash.tempPrimary, previewPrimary: dash.tempPrimary,
previewSecondary: dash.tempSecondary, previewSecondary: dash.tempSecondary,
previewGradientType: Theme.of(widget.context).brightness == previewGradientType: Theme.of(widget.context)
.brightness ==
Brightness.dark Brightness.dark
? dash.tempDarkGradientType ? dash.tempDarkGradientType
: dash.tempLightGradientType, : dash.tempLightGradientType,
), ),
), ),
), ),
),
),
),
),
Positioned( Positioned(
top: panelTop, top: panelTop,
left: 20, left: 20,