fix(flutter): 统一详情页顶部圆形按钮
This commit is contained in:
1 parent
230f16a44a
commit
c1dd033581
4 files changed
+97
-62
No files matched your search
@@ -34,8 +34,10 @@ const String _menuDownload = 'download';
|
||||
const String _menuShare = 'share';
|
||||
const String _menuReport = 'report';
|
||||
const int _maxTags = 4;
|
||||
const double _moreSize = 36;
|
||||
const double _moreIconSize = 18;
|
||||
const double _stateHeaderHeight = 52;
|
||||
const double _stateHeaderHorizontal = 14;
|
||||
const double _stateTitleGap = 12;
|
||||
const double _stateTitleSize = 18;
|
||||
|
||||
final RegExp _tagSplitter = RegExp(r'[,/、·]');
|
||||
|
||||
@@ -189,7 +191,35 @@ class _DramaDetailPageState extends State<DramaDetailPage> {
|
||||
body: SafeArea(
|
||||
child: Column(
|
||||
children: [
|
||||
AppSubpageHeader(title: title, backKey: const Key('detail-back')),
|
||||
SizedBox(
|
||||
height: _stateHeaderHeight,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: _stateHeaderHorizontal,
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
const AppSubpageBackButton(
|
||||
backKey: Key('detail-back'),
|
||||
dark: true,
|
||||
),
|
||||
const SizedBox(width: _stateTitleGap),
|
||||
Expanded(
|
||||
child: Text(
|
||||
title,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: const TextStyle(
|
||||
color: AppColors.onSurface,
|
||||
fontSize: _stateTitleSize,
|
||||
fontWeight: FontWeight.w800,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
Expanded(child: child),
|
||||
],
|
||||
),
|
||||
@@ -285,17 +315,13 @@ class _DramaDetailPageState extends State<DramaDetailPage> {
|
||||
),
|
||||
),
|
||||
],
|
||||
child: Container(
|
||||
width: _moreSize,
|
||||
height: _moreSize,
|
||||
decoration: const BoxDecoration(
|
||||
color: AppColors.card,
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
child: const Icon(
|
||||
Icons.more_horiz_rounded,
|
||||
size: _moreIconSize,
|
||||
color: AppColors.onSurface,
|
||||
child: IgnorePointer(
|
||||
child: AppSubpageCircleButton(
|
||||
buttonKey: const Key('detail-more-visual'),
|
||||
tooltip: l10n.more,
|
||||
icon: Icons.more_horiz_rounded,
|
||||
dark: true,
|
||||
onPressed: () {},
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user