fix(ui): 打磨推荐追剧我的设置页间距与图标
This commit is contained in:
1 parent
de7da64886
commit
5346be40a9
33 files changed
+1408
-811
No files matched your search
@@ -24,16 +24,17 @@ class LegalLinksCard extends StatelessWidget {
|
||||
key: const Key('settings-terms'),
|
||||
title: l10n.legalTerms,
|
||||
path: legalTermsPath,
|
||||
icon: Icons.article_outlined,
|
||||
),
|
||||
_LegalRow(
|
||||
key: const Key('settings-privacy'),
|
||||
title: l10n.legalPrivacy,
|
||||
path: legalPrivacyPath,
|
||||
icon: Icons.shield_outlined,
|
||||
),
|
||||
];
|
||||
return Material(
|
||||
color: AppColors.card,
|
||||
borderRadius: BorderRadius.circular(AppDimens.cardRadius),
|
||||
color: AppColors.contentSurface,
|
||||
clipBehavior: Clip.antiAlias,
|
||||
child: Column(
|
||||
children: [
|
||||
@@ -42,7 +43,7 @@ class LegalLinksCard extends StatelessWidget {
|
||||
const Divider(
|
||||
height: AppDimens.mineGridDividerWidth,
|
||||
thickness: AppDimens.mineGridDividerWidth,
|
||||
color: AppColors.outlineVariantDark,
|
||||
color: AppColors.contentBorder,
|
||||
),
|
||||
_tile(context, rows[index]),
|
||||
],
|
||||
@@ -61,6 +62,12 @@ class LegalLinksCard extends StatelessWidget {
|
||||
padding: const EdgeInsets.symmetric(horizontal: AppDimens.spaceLg),
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(
|
||||
row.icon,
|
||||
color: AppColors.textSecondary,
|
||||
size: 20,
|
||||
),
|
||||
const SizedBox(width: 10),
|
||||
Expanded(
|
||||
child: Text(
|
||||
row.title,
|
||||
@@ -96,9 +103,15 @@ class LegalLinksCard extends StatelessWidget {
|
||||
}
|
||||
|
||||
class _LegalRow {
|
||||
const _LegalRow({required this.key, required this.title, required this.path});
|
||||
const _LegalRow({
|
||||
required this.key,
|
||||
required this.title,
|
||||
required this.path,
|
||||
required this.icon,
|
||||
});
|
||||
|
||||
final Key key;
|
||||
final String title;
|
||||
final String path;
|
||||
final IconData icon;
|
||||
}
|
||||
Reference in new issue
Block a user