* UI fixes for ionia.

* Fixes for display card item on gift cards screen.
This commit is contained in:
mkyq 2022-07-20 13:28:22 +01:00 committed by GitHub
parent c1fbd744b7
commit 8b4fa5a12d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,9 @@ class CardItem extends StatelessWidget {
SizedBox(width: 5),
],
Column(
crossAxisAlignment: CrossAxisAlignment.start,
crossAxisAlignment: (subTitle?.isEmpty ?? false)
? CrossAxisAlignment.center
: CrossAxisAlignment.start,
children: [
SizedBox(
width: 200,
@ -76,14 +78,15 @@ class CardItem extends StatelessWidget {
),
),
),
SizedBox(height: 5),
Text(
subTitle,
style: TextStyle(
color: subtitleColor,
fontWeight: FontWeight.w500,
fontFamily: 'Lato',
),
if (subTitle?.isNotEmpty ?? false)
Padding(
padding: EdgeInsets.only(top: 5),
child: Text(
subTitle,
style: TextStyle(
color: subtitleColor,
fontWeight: FontWeight.w500,
fontFamily: 'Lato')),
)
],
),