feat: AI Agent 处理器扩展 + 服药打卡确认链路 + AI 气泡配色微调 + 数据刷新 providers 抽离 + 多端页面细节调整
This commit is contained in:
@@ -15,3 +15,20 @@ class KeyboardLift extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// 只移动已有前景图层,不在键盘动画期间重新布局子组件。
|
||||
class KeyboardTranslate extends StatelessWidget {
|
||||
final Widget child;
|
||||
|
||||
const KeyboardTranslate({super.key, required this.child});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final bottom = MediaQuery.viewInsetsOf(context).bottom;
|
||||
return Transform.translate(
|
||||
offset: Offset(0, -bottom),
|
||||
transformHitTests: true,
|
||||
child: RepaintBoundary(child: child),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user