146 lines
5.5 KiB
Dart
146 lines
5.5 KiB
Dart
// Author: fruit.com.cn
|
|
|
|
/// 跨页面复用的间距、字号、圆角和控件尺寸。
|
|
abstract final class AppDimens {
|
|
static const double spaceXs = 4;
|
|
static const double spaceSm = 8;
|
|
static const double spaceMd = 12;
|
|
static const double spaceLg = 16;
|
|
static const double spaceXl = 24;
|
|
|
|
static const double pageHorizontal = 16;
|
|
static const double cardRadius = 12;
|
|
static const double authCardRadius = 12;
|
|
static const double cardPadding = 16;
|
|
static const double innerRadius = 10;
|
|
static const double innerPadding = 12;
|
|
static const double pillRadius = 999;
|
|
static const double glassSmallRadius = 12;
|
|
static const double glassRadius = 12;
|
|
static const double glassCardRadius = 12;
|
|
static const double buttonRadius = 10;
|
|
static const double inputRadius = 10;
|
|
static const double chipRadius = 6;
|
|
static const double coverRadius = 12;
|
|
static const double sheetRadius = 12;
|
|
|
|
static const double caption = 12;
|
|
static const double emptyStateSubtitle = 12.5;
|
|
static const double emptyStateAction = 13;
|
|
static const double body = 14;
|
|
static const double listTitle = 15;
|
|
static const double sectionTitle = 16;
|
|
static const double pageTitle = 20;
|
|
static const double detailHeadline = 24;
|
|
static const double detailHeadlineSmall = 18;
|
|
static const double previewCardTitle = 13;
|
|
static const double previewSectionTitle = 14;
|
|
static const double chipFont = 10;
|
|
static const double navLabel = 11;
|
|
static const double navLabelGap = 4;
|
|
|
|
static const double buttonHeight = 48;
|
|
static const double primaryButtonHeight = 52;
|
|
static const double buttonCompact = 32;
|
|
static const double buttonSmall = 34;
|
|
static const double buttonMedium = 40;
|
|
static const double buttonLarge = 44;
|
|
static const double tapTarget = 44;
|
|
static const double contentHeaderHeight = 46;
|
|
|
|
static const double navHeight = 56;
|
|
static const double navIcon = 26;
|
|
static const double progressHeight = 3;
|
|
static const double progressRadius = 2;
|
|
static const double progressLineHeight = 3;
|
|
|
|
static const double searchHeight = 40;
|
|
static const double searchRadius = 8;
|
|
static const double searchPlaceholderFont = 13;
|
|
static const double navDot = 3;
|
|
static const double glassBlur = 24;
|
|
|
|
static const double accountCardHeight = 64;
|
|
static const double accountIcon = 18;
|
|
static const double accountLabel = 11;
|
|
|
|
static const double watchPlaceholderHeight = 114;
|
|
static const double heroBannerHeight = 240;
|
|
static const double heroBannerRadius = 12;
|
|
static const double heroTitle = 28;
|
|
static const double heroSubtitle = 14;
|
|
|
|
static const double cardMeta = 12;
|
|
static const double cardViews = 11;
|
|
static const double cardTitle = 15;
|
|
static const double cardShadowBlur = 0;
|
|
static const double cardShadowY = 0;
|
|
|
|
/// 首页探索网格。
|
|
static const double feedPageHorizontal = 14;
|
|
static const double homeGridGap = 6;
|
|
static const double homeGridRowGap = 10;
|
|
static const double homeCardRadius = 6;
|
|
static const double cardCoverRadius = 8;
|
|
static const double homeCardPadding = 8;
|
|
static const double cardTitleFont = 15;
|
|
static const double cardTitleLineHeight = 1.3;
|
|
static const double cardViewsFont = 11;
|
|
static const double cardViewsIcon = 11;
|
|
static const double cardPlayCountFont = 12;
|
|
static const double cardPlayCountGap = 2;
|
|
static const double cardGenreRibbonHeight = 20;
|
|
static const double cardGenreRibbonRadius = 10;
|
|
static const double cardGenreRibbonLeftInset = 8;
|
|
static const double cardGenreRibbonMaxWidth = 86;
|
|
static const double cardTagFont = 11;
|
|
static const double cardTagHorizontalPadding = 6;
|
|
static const double cardBadgeFont = 10;
|
|
static const double cardCoverTitleGap = 6;
|
|
static const double cardTitleTagGap = 6;
|
|
static const double cardCoverAspectRatio = 5 / 6;
|
|
static const double homeCardBodyExtent = 84;
|
|
static const double homePrimaryTabFont = 18;
|
|
static const double homePrimaryTabSelectedFont = 20;
|
|
static const double homePrimaryRowHeight = 30;
|
|
static const Duration homePrimaryTabAnimationDuration = Duration(
|
|
milliseconds: 180,
|
|
);
|
|
static const double homeSecondaryTagFont = 15;
|
|
static const double homeSecondaryTagHeight = 26;
|
|
static const double homeSecondaryTagHorizontalPadding = 10;
|
|
static const double homeSecondaryTagRadius = 13;
|
|
static const double homePrimaryCategoryGap = 24;
|
|
static const double homeSecondaryTagGap = 14;
|
|
static const double homeSearchTopGap = 0;
|
|
static const double homeSearchPrimaryGap = 8;
|
|
static const double homePrimarySecondaryGap = 8;
|
|
static const double homeSecondaryGridGap = 10;
|
|
static const double homeIconSlot = 44;
|
|
static const double homeHeaderIcon = 22;
|
|
|
|
/// 推荐分区。
|
|
static const double recommendSectionTitle = 17;
|
|
static const double recommendSectionSubtitle = 11;
|
|
static const double recommendSectionMore = 12;
|
|
static const double recommendRowHeight = 252;
|
|
static const double recommendCardWidth = 122;
|
|
|
|
/// 全部短剧筛选与追剧双列。
|
|
static const double filterChipFont = 13;
|
|
static const double filterChipHeight = 30;
|
|
static const double filterChipRadius = 15;
|
|
static const double followingTabFont = 16;
|
|
static const double followingGridAspectRatio = 0.5;
|
|
|
|
/// 「我的」页中性视觉。
|
|
static const double mineCardRadius = 16;
|
|
static const double mineRowHeight = 56;
|
|
static const double minePageTitle = 17;
|
|
static const double mineSectionTitle = 15;
|
|
static const double mineAvatar = 56;
|
|
static const double mineUserName = 20;
|
|
static const double mineUid = 13;
|
|
static const double mineMenuIcon = 22;
|
|
}
|