- 清理大量废弃的 barrel 导出文件,移除冗余的中间导出层 - 修复所有相对路径导入错误,统一调整为扁平化模块引用 - 更新多平台 pubspec 版本号与依赖库版本 - 补充后端功能问题管理后台与脚本工具 - 调整部分页面的快捷方式文案适配新功能 - 更新部分翻译覆盖率与API文档
46 lines
1.5 KiB
Dart
46 lines
1.5 KiB
Dart
/// ============================================================
|
|
/// 闲言APP — 壁纸模板广场主页面
|
|
/// 创建时间: 2026-05-01
|
|
/// 更新时间: 2026-05-04
|
|
/// 作用: 壁纸图库 — 使用公共组件 WallpaperGalleryView fullscreen模式
|
|
/// 上次更新: 替换为公共组件,统一编辑器/发现页壁纸体验
|
|
/// ============================================================
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import '../../core/theme/app_theme.dart';
|
|
import 'wallpaper_gallery/wallpaper_gallery_view.dart';
|
|
import 'wallpaper_preview_sheet.dart';
|
|
import '../../shared/widgets/adaptive/adaptive_back_button.dart';
|
|
|
|
class TemplateGalleryPage extends StatefulWidget {
|
|
const TemplateGalleryPage({super.key});
|
|
|
|
@override
|
|
State<TemplateGalleryPage> createState() => _TemplateGalleryPageState();
|
|
}
|
|
|
|
class _TemplateGalleryPageState extends State<TemplateGalleryPage> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final ext = AppTheme.ext(context);
|
|
|
|
return CupertinoPageScaffold(
|
|
navigationBar: CupertinoNavigationBar(
|
|
leading: const AdaptiveBackButton(),
|
|
middle: const Text('🎨 壁纸模板'),
|
|
backgroundColor: ext.bgPrimary.withValues(alpha: 0.85),
|
|
border: null,
|
|
),
|
|
child: SafeArea(
|
|
child: WallpaperGalleryView(
|
|
mode: WallpaperGalleryMode.fullscreen,
|
|
onPreviewWallpaper: (item) {
|
|
WallpaperPreviewSheet.show(context, item);
|
|
},
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|