fix(theater): 减小剧场搜索框圆角

This commit is contained in:
Zhou Weidong committed 2026-10-21 18:54:49 +08:00
1 parent 76f347cc35
commit c278503d0e
3 files changed
+27 -3

No files matched your search

+24
View File
@@ -68,3 +68,27 @@ Xcode build done. 44.0s
解读:静态分析零告警,555 项全量测试通过,Android 与 iOS simulator 构建成功;
`pubspec.lock` 已还原,无依赖变更,未安装或操作真机。
## 2026-10-21 K97.1 剧场搜索框圆角改小
- 已从最新 `origin/develop` 创建 `fix/k97.1-theater-search-radius`。
- 仅将剧场搜索框圆角从 22 调整为 12,高度 44、颜色、聚焦态及
清空/识剧逻辑保持不变,并同步更新对应 widget 断言。
门禁原始输出:
```text
$ dart analyze lib test
Analyzing lib, test...
No issues found!
$ flutter test --no-pub
00:55 +555: All tests passed!
$ flutter build apk --debug
Running Gradle task 'assembleDebug'... 25.8s
✓ Built build/app/outputs/flutter-apk/app-debug.apk
```
解读:静态分析零告警,555 项全量测试通过,debug APK 构建成功;
`pubspec.lock` 已还原,无依赖变更,未安装或操作真机。
@@ -6,7 +6,7 @@ import '../../../core/theme/app_colors.dart';
import '../../../l10n/app_localizations.dart';
const double _searchHeight = 44;
const double _searchRadius = 22;
const double _searchRadius = 12;
const double _searchPadding = 14;
const double _iconSize = 18;
const double _iconGap = 8;
@@ -16,7 +16,7 @@ const double _clearSize = 18;
const double _clearIconSize = 12;
const Duration _focusTransition = Duration(milliseconds: 160);
/// 剧场顶部整行搜索框:浅灰胶囊,聚焦时变白并显示主题色描边。
/// 剧场顶部整行搜索框:浅灰圆角,聚焦时变白并显示主题色描边。
class DiscoverSearchField extends StatefulWidget {
const DiscoverSearchField({
super.key,
+1 -1
View File
@@ -257,7 +257,7 @@ void main() {
.decoration!
as BoxDecoration;
expect(shell().borderRadius, BorderRadius.circular(22));
expect(shell().borderRadius, BorderRadius.circular(12));
expect(shell().color, AppColors.card);
expect((shell().border! as Border).top.color, Colors.transparent);
expect(