fix(home): 优化二级标签选中样式
This commit is contained in:
1 parent
5da836dded
commit
1adcc16727
4 files changed
+29
-11
No files matched your search
@@ -362,7 +362,7 @@ class HomeGridHeader extends StatelessWidget {
|
||||
style: TextStyle(
|
||||
color: selected ? AppColors.navSelected : AppColors.textTertiary,
|
||||
fontSize: AppDimens.homeSecondaryTagFont,
|
||||
fontWeight: selected ? FontWeight.w700 : FontWeight.w400,
|
||||
fontWeight: selected ? FontWeight.w600 : FontWeight.w400,
|
||||
letterSpacing: 0,
|
||||
),
|
||||
);
|
||||
@@ -372,19 +372,22 @@ class HomeGridHeader extends StatelessWidget {
|
||||
onTap: () => onTagSelected(selected ? null : tag.id),
|
||||
child: selected
|
||||
? Container(
|
||||
height: AppDimens.homeSecondaryTagHeight,
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: AppDimens.spaceMd,
|
||||
vertical: AppDimens.spaceSm,
|
||||
horizontal: AppDimens.homeSecondaryTagHorizontalPadding,
|
||||
),
|
||||
alignment: Alignment.center,
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.contentSurface,
|
||||
borderRadius: BorderRadius.circular(AppDimens.pillRadius),
|
||||
borderRadius: BorderRadius.circular(
|
||||
AppDimens.homeSecondaryTagRadius,
|
||||
),
|
||||
),
|
||||
child: label,
|
||||
)
|
||||
: Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: AppDimens.spaceSm),
|
||||
child: label,
|
||||
: SizedBox(
|
||||
height: AppDimens.homeSecondaryTagHeight,
|
||||
child: Align(alignment: Alignment.centerLeft, child: label),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user