You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Flutter Web iOS设备关闭键盘时出现卡顿空白问题求助

Flutter Web iOS浏览器关闭键盘时出现空白区域问题

未使用任何外部UI设计库,当前问题:在Flutter Web的iOS设备所有浏览器中,关闭键盘时会先显示一片空白区域,1秒后才恢复应用UI。

Flutter环境信息

[✓] Flutter (Channel stable, 3.3.7, on macOS 13.0 22A380 darwin-arm, locale en-IN)
• Flutter version 3.3.7 on channel stable at /Users/mac-19/FlutterSDK/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision e99c9c7cd9 (7 days ago), 2022-11-01 16:59:00 -0700
• Engine revision 857bd6b74c
• Dart version 2.18.4
• DevTools version 2.15.0

示例代码

class ScreenSignUp extends StatefulWidget {
  const ScreenSignUp({Key? key}) : super(key: key);

  @override
  State<ScreenSignUp> createState() => _ScreenSignUpState();
}

class _ScreenSignUpState extends State<ScreenSignUp> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      body: Padding(
        padding: const EdgeInsets.all(8.0),
        child: SingleChildScrollView(
          child: Column(
            children: [
              TextFormField(),
              const SizedBox(
                height: 20,
              ),
              TextFormField(),
              const SizedBox(
                height: 20,
              ),
              TextFormField(),
              const SizedBox(
                height: 20,
              ),
              TextFormField(),
              const SizedBox(
                height: 20,
              ),
              TextFormField(),
              const SizedBox(
                height: 20,
              ),
              TextFormField(),
              const SizedBox(
                height: 20,
              ),
              TextFormField(),
              const SizedBox(
                height: 20,
              ),
              TextFormField(),
              const SizedBox(
                height: 20,
              ),
              ElevatedButton(onPressed: (){}, child: const Text('SignUp'))
            ],
          ),
        ),
      ),
    );
  }
}

问题演示视频、示例代码演示视频已提供。

内容的提问来源于stack exchange,提问作者Hitesh Sapra

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.15 21:20:37