mirror of
https://github.com/koloideal/Casha.git
synced 2026-08-08 17:51:14 +03:00
step
This commit is contained in:
@@ -37,6 +37,7 @@ class BalanceCard extends ConsumerStatefulWidget {
|
||||
final GradientType? previewGradientType;
|
||||
final String? accountName;
|
||||
final CardColors? accountColors;
|
||||
final double? cardHeight;
|
||||
|
||||
const BalanceCard({
|
||||
super.key,
|
||||
@@ -48,6 +49,7 @@ class BalanceCard extends ConsumerStatefulWidget {
|
||||
this.previewGradientType,
|
||||
this.accountName,
|
||||
this.accountColors,
|
||||
this.cardHeight,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -132,7 +134,7 @@ class BalanceCardState extends ConsumerState<BalanceCard>
|
||||
..rotateY(_tiltY * 0.42),
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
height: kBalanceCardHeight,
|
||||
height: widget.cardHeight ?? kBalanceCardHeight,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(20),
|
||||
gradient: buildCardGradient(primary, secondary, gradientType),
|
||||
|
||||
Reference in New Issue
Block a user