feat(ui): Fix inconsistent image size
This commit is contained in:
parent
182a257fdd
commit
8b17f68eed
@ -14,7 +14,7 @@ class AnimeCoverImage extends StatelessWidget {
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
child: SizedBox(
|
||||
height: 100 * (16 / 9),
|
||||
width: 100,
|
||||
width: 120,
|
||||
child: DecoratedBox(
|
||||
decoration: BoxDecoration(
|
||||
image: DecorationImage(
|
||||
|
@ -1,4 +1,5 @@
|
||||
import 'package:anitrack/src/data/anime.dart';
|
||||
import 'package:anitrack/src/ui/widgets/image.dart';
|
||||
import 'package:anitrack/src/ui/widgets/swipe_icon.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:swipeable_tile/swipeable_tile.dart';
|
||||
@ -67,14 +68,8 @@ class ListItem extends StatelessWidget {
|
||||
child: Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
ClipRRect(
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
child: SizedBox(
|
||||
width: 100,
|
||||
child: Image.network(
|
||||
thumbnailUrl,
|
||||
),
|
||||
),
|
||||
AnimeCoverImage(
|
||||
url: thumbnailUrl,
|
||||
),
|
||||
|
||||
Expanded(
|
||||
|
Loading…
Reference in New Issue
Block a user