当前位置:网站首页>The problem of automatic page refresh after the flyer WebView pops up the soft keyboard
The problem of automatic page refresh after the flyer WebView pops up the soft keyboard
2022-06-25 09:44:00 【Moon Spring】
flutter About the problem caused by soft keyboard bounce
1. When the layout height is dead , For example, set to screen height , When the keyboard pops up, the layout will appear on the page overflow A hint of
2. The input box is blocked after the soft keyboard pops up
reason : stay flutter in , The system will shrink when the keyboard pops up Scaffold And rebuild
solve the problem 1 in overflow Two ways to prompt :
1) hold Scaffold Of resizeToAvoidBottomInset Property is set to false, This will not... When the keyboard pops up resize
2) Change the writing height to Original height - MediaQuery.of(context).viewInsets.bottom, The layout will be rebuilt when the keyboard pops up , And this MediaQuery.of(context).viewInsets.bottom The variable is before the keyboard pops up 0, When the keyboard pops up, it is the height of the keyboard
solve the problem 2 The way to :
Place the input field in a scrollable Widget Then you can , When the input box gets focus , The system will automatically slide it to the visible area
author : Xiao Ji, run
link :https://www.jianshu.com/p/4dab8a87f28b
source : Simple books
边栏推荐
- 2台三菱PLC走BCNetTCP协议,能否实现网口无线通讯?
- Reza RA series - development environment construction
- Title B of the certification cup of the pistar cluster in the Ibagu catalog
- [project part - structure and content writing of technical scheme] software system type mass entrepreneurship and innovation project plan and Xinmiao guochuang (Dachuang) application
- Voiceprint Technology (VII): the future of voiceprint Technology
- Remittance international empowers cross-border e-commerce: to be a compliant cross-border payment platform!
- Voiceprint Technology (VI): other applications of voiceprint Technology
- 将jar包注册为服务,实现开机自动启动
- 富时A50开户什么地方安全
- neo4jDesktop(neo4j桌面版)配置自动启动(开机自启)
猜你喜欢
How much money have I made by sticking to fixed investment for 3 years?
How to delete a blank page that cannot be deleted in word
CyCa 2022 children's physical etiquette primary teacher class Shenzhen headquarters station successfully concluded
Download the arm64 package of Debian on X86 computer
Study on correlation of pumpkin price and design of price prediction model based on BP neural network
Mapping mode of cache
[buuctf.reverse] 117-120
汇付国际为跨境电商赋能:做合规的跨境支付平台!
CYCA 2022少儿形体礼仪初级师资班 深圳总部站圆满结束
[MySQL learning notes 22] index
随机推荐
Wechat official account can reply messages normally, but it still prompts that the service provided by the official account has failed. Please try again later
在指南针上面开户好不好,安不安全?
Analysis on the bottom calling process of micro service calling component ribbon
通过客户经理的开户二维码开股票账户安全吗?
[learn C from me and master the key to programming] insertion sort of eight sorts
力扣-104. 二叉树的最大深度
Title B of the certification cup of the pistar cluster in the Ibagu catalog
[design completion - opening report] zufeinfo 2018 software engineering major (including FAQ)
Voiceprint Technology (I): the past and present life of voiceprint Technology
How to "transform" small and micro businesses (I)?
Match a mobile number from a large number of mobile numbers
[project part - structure and content writing of technical scheme] software system type mass entrepreneurship and innovation project plan and Xinmiao guochuang (Dachuang) application
What functions should smart agriculture applet system design have
Voiceprint Technology (VII): the future of voiceprint Technology
2台三菱PLC走BCNetTCP协议,能否实现网口无线通讯?
Japanese online notes for postgraduate entrance examination (9): composition template
8、智慧交通项目(1)
[zufe expense reimbursement] zhecai invoice reimbursement specification (taking Xinmiao reimbursement as an example), which can be passed in one trip at most
Mysql 源码阅读(二)登录连接调试
【mysql学习笔记21】存储引擎