merge: 修正二级筛选按钮右对齐
This commit is contained in:
commit
bd4bdf8aea
4 files changed
+19
-6
No files matched your search
@@ -1138,3 +1138,9 @@ $ flutter test
|
|||||||
- 播放器进度监听改为具名回调,在切换、重建会话和 dispose 时解绑;评论输入弹窗补 controller 更换迁移。
|
- 播放器进度监听改为具名回调,在切换、重建会话和 dispose 时解绑;评论输入弹窗补 controller 更换迁移。
|
||||||
- `_onFeedChanged` 已无源码调用链,报错来源为热重载前注册的旧 tear-off;需完全关闭 App 后冷启动。
|
- `_onFeedChanged` 已无源码调用链,报错来源为热重载前注册的旧 tear-off;需完全关闭 App 后冷启动。
|
||||||
- 按当前流程未执行 analyze/test。
|
- 按当前流程未执行 analyze/test。
|
||||||
|
|
||||||
|
## 2026-10-22 二级标签筛选按钮右对齐
|
||||||
|
|
||||||
|
- 三横线热区由 44 宽改为 26×26,消除 44 宽居中盒造成的视觉右边距偏移。
|
||||||
|
- 标签滚动区与按钮间距改为 6,按钮右边缘固定对齐页面 14 边距。
|
||||||
|
- 补充按钮尺寸与屏幕右边距断言;按当前流程未执行 analyze/test。
|
||||||
@@ -114,7 +114,7 @@ abstract final class AppDimens {
|
|||||||
static const Duration homeSecondaryTagAnimationDuration = Duration(
|
static const Duration homeSecondaryTagAnimationDuration = Duration(
|
||||||
milliseconds: 150,
|
milliseconds: 150,
|
||||||
);
|
);
|
||||||
static const double homeSecondaryFilterGap = 8;
|
static const double homeSecondaryFilterGap = 6;
|
||||||
static const double homeSecondaryFilterVisualSize = 26;
|
static const double homeSecondaryFilterVisualSize = 26;
|
||||||
static const double homeSecondaryFilterIcon = 16;
|
static const double homeSecondaryFilterIcon = 16;
|
||||||
static const double homeSecondaryFilterStroke = 1.7;
|
static const double homeSecondaryFilterStroke = 1.7;
|
||||||
|
|||||||
@@ -333,7 +333,7 @@ class HomeGridHeader extends StatelessWidget {
|
|||||||
AppDimens.homeSecondaryGridGap,
|
AppDimens.homeSecondaryGridGap,
|
||||||
),
|
),
|
||||||
child: Row(
|
child: Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
@@ -355,9 +355,8 @@ class HomeGridHeader extends StatelessWidget {
|
|||||||
const SizedBox(width: AppDimens.homeSecondaryFilterGap),
|
const SizedBox(width: AppDimens.homeSecondaryFilterGap),
|
||||||
Tooltip(
|
Tooltip(
|
||||||
message: l10n.filter,
|
message: l10n.filter,
|
||||||
child: SizedBox(
|
child: SizedBox.square(
|
||||||
width: AppDimens.tapTarget,
|
dimension: AppDimens.homeSecondaryFilterVisualSize,
|
||||||
height: AppDimens.homeSecondaryFilterVisualSize,
|
|
||||||
child: Material(
|
child: Material(
|
||||||
color: AppColors.transparent,
|
color: AppColors.transparent,
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ void main() {
|
|||||||
expect(find.byKey(const Key('home-grid-filter')), findsOneWidget);
|
expect(find.byKey(const Key('home-grid-filter')), findsOneWidget);
|
||||||
expect(
|
expect(
|
||||||
tester.getSize(find.byKey(const Key('home-grid-filter'))),
|
tester.getSize(find.byKey(const Key('home-grid-filter'))),
|
||||||
const Size(AppDimens.tapTarget, AppDimens.homeSecondaryFilterVisualSize),
|
const Size.square(AppDimens.homeSecondaryFilterVisualSize),
|
||||||
);
|
);
|
||||||
expect(
|
expect(
|
||||||
tester.getSize(find.byKey(const Key('home-secondary-filter-visual'))),
|
tester.getSize(find.byKey(const Key('home-secondary-filter-visual'))),
|
||||||
@@ -106,6 +106,14 @@ void main() {
|
|||||||
tester.getCenter(find.byKey(const Key('home-grid-filter'))).dy,
|
tester.getCenter(find.byKey(const Key('home-grid-filter'))).dy,
|
||||||
closeTo(tester.getCenter(find.byKey(const Key('home-tag-hot'))).dy, 0.1),
|
closeTo(tester.getCenter(find.byKey(const Key('home-tag-hot'))).dy, 0.1),
|
||||||
);
|
);
|
||||||
|
expect(
|
||||||
|
tester.getRect(find.byKey(const Key('home-grid-filter'))).right,
|
||||||
|
closeTo(
|
||||||
|
tester.getRect(find.byKey(const Key('home-grid'))).right -
|
||||||
|
AppDimens.feedPageHorizontal,
|
||||||
|
0.1,
|
||||||
|
),
|
||||||
|
);
|
||||||
final filterIcon = tester.widget<CustomPaint>(
|
final filterIcon = tester.widget<CustomPaint>(
|
||||||
find.byKey(const Key('home-secondary-filter-icon')),
|
find.byKey(const Key('home-secondary-filter-icon')),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user