A new Flutter project.
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
现在用户可以在设置页面调整大型通知卡片的显示大小,使其更符合个人阅读偏好。
-
在设置页面添加了卡片大小设置区域,包含:
- 直观的滑块控件(范围:0.7-1.3,默认:1.0)
- 实时预览效果展示
- 大小标签(小、标准、大)
-
新增功能实现:
- 创建了
SettingsService
类用于存储和获取卡片大小设置 - 修改了
NotificationCard
组件,添加了大小缩放功能 - 在通知列表页面应用了用户设置的卡片大小
- 创建了
- 进入应用设置页面
- 在"卡片大小设置"区域,拖动滑块调整大型卡片的显示大小
- 通过预览区域实时查看调整效果
- 设置会自动保存,并在通知列表中立即生效
- 使用
SharedPreferences
存储用户设置的卡片大小 - 缩放比例为 0.7-1.3 之间,允许用户根据自己的阅读习惯进行调整
- 应用在所有使用大型卡片样式的界面