hide certain fields on ordinals views, change ordinal card aspect ratio

This commit is contained in:
sneurlax 2023-07-21 16:35:00 -05:00
parent f46a37d4d4
commit 5a845f8669
3 changed files with 15 additions and 15 deletions

View file

@ -191,13 +191,13 @@ class _OrdinalImageGroup extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(
"${ordinal.inscriptionId}", // Use any other property you want
style: STextStyles.w600_16(context),
),
const SizedBox(
height: _spacing,
),
// Text(
// "${ordinal.inscriptionId}", // Use any other property you want
// style: STextStyles.w600_16(context),
// ),
// const SizedBox(
// height: _spacing,
// ),
AspectRatio(
aspectRatio: 1,
child: AspectRatio(

View file

@ -41,14 +41,14 @@ class OrdinalCard extends StatelessWidget {
),
const Spacer(),
Text(
'TODO', // infer from address associated with utxoTXID
'INSC. ${ordinal.inscriptionNumber}', // infer from address associated with utxoTXID
style: STextStyles.w500_12(context),
),
const Spacer(),
Text(
"INSC. ${ordinal.inscriptionNumber} ID ${ordinal.inscriptionId}",
style: STextStyles.w500_8(context),
),
// const Spacer(),
// Text(
// "ID ${ordinal.inscriptionId}",
// style: STextStyles.w500_8(context),
// ),
],
),
);

View file

@ -33,7 +33,7 @@ class OrdinalsList extends StatelessWidget {
crossAxisSpacing: spacing as double,
mainAxisSpacing: spacing as double,
crossAxisCount: 2,
childAspectRatio: 3 / 4,
childAspectRatio: 6 / 7, // was 3/4, less data displayed now
),
itemBuilder: (_, i) => OrdinalCard(
walletId: walletId,
@ -41,7 +41,7 @@ class OrdinalsList extends StatelessWidget {
),
);
} else {
return Text('No data found.');
return const Text('No data found.');
}
},
);