fix(home): 调整封面播放量图标与位置
This commit is contained in:
1 parent
f20e7ba7c5
commit
0e7dcf4739
9 files changed
+13
-12
No files matched your search
@@ -88,8 +88,9 @@ abstract final class AppDimens {
|
||||
static const double cardViewsFont = 11;
|
||||
static const double cardViewsIcon = 11;
|
||||
static const double cardPlayCountFont = 12;
|
||||
static const double cardPlayCountGap = 2;
|
||||
static const double cardPlayCountBottom = 6;
|
||||
static const double cardPlayCountGap = 4;
|
||||
static const double cardPlayCountBottom = 2;
|
||||
static const double cardPlayCountRight = 6;
|
||||
static const double cardPlayCountScrimHeight = 32;
|
||||
static const double cardGenreRibbonHeight = 16;
|
||||
static const double cardGenreRibbonLeftInset = 4;
|
||||
|
||||
@@ -18,7 +18,7 @@ class CoverPlayCount extends StatelessWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
const Icon(
|
||||
Icons.auto_awesome_rounded,
|
||||
Icons.local_fire_department_rounded,
|
||||
color: AppColors.textPrimary,
|
||||
size: AppDimens.cardViewsIcon,
|
||||
),
|
||||
|
||||
@@ -87,7 +87,7 @@ class FollowingGridCard extends StatelessWidget {
|
||||
child: CoverBottomScrim(),
|
||||
),
|
||||
Positioned(
|
||||
right: 0,
|
||||
right: AppDimens.cardPlayCountRight,
|
||||
bottom: AppDimens.cardPlayCountBottom,
|
||||
child: CoverPlayCount(
|
||||
key: Key('following-views-$dramaId'),
|
||||
|
||||
@@ -109,7 +109,7 @@ class HomeFeedCard extends StatelessWidget {
|
||||
child: CoverBottomScrim(),
|
||||
),
|
||||
Positioned(
|
||||
right: 0,
|
||||
right: AppDimens.cardPlayCountRight,
|
||||
bottom: AppDimens.cardPlayCountBottom,
|
||||
child: CoverPlayCount(
|
||||
key: Key('home-feed-views-${drama.id}'),
|
||||
|
||||
@@ -69,7 +69,7 @@ class RecommendSectionCard extends StatelessWidget {
|
||||
child: CoverBottomScrim(),
|
||||
),
|
||||
Positioned(
|
||||
right: 0,
|
||||
right: AppDimens.cardPlayCountRight,
|
||||
bottom: AppDimens.cardPlayCountBottom,
|
||||
child: CoverPlayCount(
|
||||
key: Key('recommend-views-$sectionKey-${drama.id}'),
|
||||
|
||||
Reference in new issue
Block a user