show ordinal image

This commit is contained in:
sneurlax 2023-07-21 10:49:30 -05:00
parent 65e8c34e34
commit ddba1c54f7
2 changed files with 15 additions and 6 deletions

View file

@ -200,8 +200,16 @@ class _OrdinalImageGroup extends StatelessWidget {
),
AspectRatio(
aspectRatio: 1,
child: Container(
color: Colors.red,
child: AspectRatio(
aspectRatio: 1,
child: Container(
color: Colors.red,
child: Image.network(
inscriptionData.content, // Use the preview URL as the image source
fit: BoxFit.cover,
filterQuality: FilterQuality.none, // Set the filter mode to nearest
),
),
),
),
const SizedBox(

View file

@ -28,13 +28,14 @@ class OrdinalCard extends StatelessWidget {
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
AspectRatio(
aspectRatio: 1,
child: Container(
AspectRatio(
aspectRatio: 1,
child: Container(
color: Colors.red,
child: Image.network(
inscriptionData.preview, // Use the preview URL as the image source
inscriptionData.content, // Use the preview URL as the image source
fit: BoxFit.cover,
filterQuality: FilterQuality.none, // Set the filter mode to nearest
),
),
),