fix(player): 收紧推荐页互动栏间距
This commit is contained in:
1 parent
d3dbc9f8dc
commit
4c3acb047c
5 files changed
+34
-32
No files matched your search
@@ -7,7 +7,7 @@ import '../../../core/theme/app_colors.dart';
|
||||
|
||||
const double _buttonSize = 44;
|
||||
const double _iconSize = 32;
|
||||
const double _itemGap = 24;
|
||||
const double _defaultItemGap = 24;
|
||||
|
||||
/// 互动栏单项:图标、计数与点击。
|
||||
class InteractionRailItem {
|
||||
@@ -36,9 +36,14 @@ class InteractionRailItem {
|
||||
|
||||
/// 播放页与首页 feed 共用的右侧互动栏:收藏/评论/喜欢/分享。
|
||||
class InteractionRail extends StatelessWidget {
|
||||
const InteractionRail({super.key, required this.items});
|
||||
const InteractionRail({
|
||||
super.key,
|
||||
required this.items,
|
||||
this.itemGap = _defaultItemGap,
|
||||
});
|
||||
|
||||
final List<InteractionRailItem> items;
|
||||
final double itemGap;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -46,7 +51,7 @@ class InteractionRail extends StatelessWidget {
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
for (var index = 0; index < items.length; index++) ...[
|
||||
if (index > 0) const SizedBox(height: _itemGap),
|
||||
if (index > 0) SizedBox(height: itemGap),
|
||||
_RailButton(item: items[index]),
|
||||
],
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user