refactor: 完成v6.5.28版本迭代,修复多项体验问题
主要变更: 1. 重构多处Provider初始化逻辑,使用Future.microtask避免build阶段修改state 2. 重命名"灵感"模块为"工作流","天气诗词"改为"情景诗词" 3. 新增插件系统页面与路由,添加speech_to_text_windows插件支持 4. 优化玻璃容器性能,添加性能节流与模糊值适配 5. 新增离线横幅、阅读体验控制器、手势控制器等组件 6. 完善头像审核状态展示与缓存管理 7. 修复键盘弹出与页面路由问题 8. 更新依赖与项目配置,优化widget默认数据
This commit is contained in:
@@ -241,9 +241,12 @@ class _XianyanAppState extends ConsumerState<XianyanApp>
|
||||
builder: (context, widget) {
|
||||
final botToastBuilder = BotToastInit();
|
||||
final botWidget = botToastBuilder(context, widget);
|
||||
return StatusBarStyleRegion(
|
||||
isDark: settings.isDark,
|
||||
child: botWidget,
|
||||
return DefaultTextStyle(
|
||||
style: const TextStyle(decoration: TextDecoration.none),
|
||||
child: StatusBarStyleRegion(
|
||||
isDark: settings.isDark,
|
||||
child: botWidget,
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
@@ -255,21 +258,21 @@ class _XianyanAppState extends ConsumerState<XianyanApp>
|
||||
data: GlassThemeData(
|
||||
light: GlassThemeVariant(
|
||||
settings: GlassThemeSettings(
|
||||
thickness: 30.0,
|
||||
blur: settings.glassEnabled ? 3.0 : 0.0,
|
||||
refractiveIndex: 1.65,
|
||||
lightIntensity: 1.2,
|
||||
ambientStrength: 0.6,
|
||||
saturation: 1.2,
|
||||
thickness: 20.0,
|
||||
blur: settings.glassEnabled ? 2.0 : 0.0,
|
||||
refractiveIndex: 1.4,
|
||||
lightIntensity: 0.8,
|
||||
ambientStrength: 0.4,
|
||||
saturation: 1.0,
|
||||
),
|
||||
),
|
||||
dark: GlassThemeVariant(
|
||||
settings: GlassThemeSettings(
|
||||
thickness: 40.0,
|
||||
blur: settings.glassEnabled ? 5.0 : 0.0,
|
||||
lightIntensity: 1.5,
|
||||
thickness: 28.0,
|
||||
blur: settings.glassEnabled ? 3.0 : 0.0,
|
||||
lightIntensity: 1.0,
|
||||
refractiveIndex: 1.2,
|
||||
saturation: 1.1,
|
||||
saturation: 1.0,
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -294,9 +297,12 @@ class _XianyanAppState extends ConsumerState<XianyanApp>
|
||||
final botToastBuilder = BotToastInit();
|
||||
final botWidget = botToastBuilder(context, widget);
|
||||
|
||||
return StatusBarStyleRegion(
|
||||
isDark: settings.isDark,
|
||||
child: botWidget,
|
||||
return DefaultTextStyle(
|
||||
style: const TextStyle(decoration: TextDecoration.none),
|
||||
child: StatusBarStyleRegion(
|
||||
isDark: settings.isDark,
|
||||
child: botWidget,
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
@@ -305,21 +311,21 @@ class _XianyanAppState extends ConsumerState<XianyanApp>
|
||||
data: GlassThemeData(
|
||||
light: GlassThemeVariant(
|
||||
settings: GlassThemeSettings(
|
||||
thickness: 30.0,
|
||||
blur: settings.glassEnabled ? 3.0 : 0.0,
|
||||
refractiveIndex: 1.65,
|
||||
lightIntensity: 1.2,
|
||||
ambientStrength: 0.6,
|
||||
saturation: 1.2,
|
||||
thickness: 20.0,
|
||||
blur: settings.glassEnabled ? 2.0 : 0.0,
|
||||
refractiveIndex: 1.4,
|
||||
lightIntensity: 0.8,
|
||||
ambientStrength: 0.4,
|
||||
saturation: 1.0,
|
||||
),
|
||||
),
|
||||
dark: GlassThemeVariant(
|
||||
settings: GlassThemeSettings(
|
||||
thickness: 40.0,
|
||||
blur: settings.glassEnabled ? 5.0 : 0.0,
|
||||
lightIntensity: 1.5,
|
||||
thickness: 28.0,
|
||||
blur: settings.glassEnabled ? 3.0 : 0.0,
|
||||
lightIntensity: 1.0,
|
||||
refractiveIndex: 1.2,
|
||||
saturation: 1.1,
|
||||
saturation: 1.0,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user