当前位置:网站首页>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
边栏推荐
猜你喜欢

Encoding format for x86
![[zufe expense reimbursement] zhecai invoice reimbursement specification (taking Xinmiao reimbursement as an example), which can be passed in one trip at most](/img/28/c5c6b6d03b459745dc3735f8b39ea9.jpg)
[zufe expense reimbursement] zhecai invoice reimbursement specification (taking Xinmiao reimbursement as an example), which can be passed in one trip at most

How to "transform" small and micro businesses (I)?

CYCA 2022少儿形体礼仪初级师资班 深圳总部站圆满结束
![[MySQL learning notes 22] index](/img/08/db7b765f7ddaa5706e3f7d00690d23.png)
[MySQL learning notes 22] index

x86电脑上下载debian的arm64的包

How much money have I made by sticking to fixed investment for 3 years?

Prediction of pumpkin price based on BP neural network

匯付國際為跨境電商賦能:做合規的跨境支付平臺!

Notes on writing questions in C language -- monkeys eat peaches
随机推荐
力扣-104. 二叉树的最大深度
Is the client that gets the scanning code wechat or Alipay
Compile time annotations for custom annotations (retentionpolicy.class)
汇付国际为跨境电商赋能:做合规的跨境支付平台!
Rxjs TakeUntil 操作符的学习笔记
[2020 cloud development + source code] 30 minutes to create and launch wechat applet practical project | zero cost | cloud database | cloud function
Mapping mode of cache
How to make a self-made installer and package the program to generate an installer
华泰证券在上面开户安全吗?靠谱吗?
处理图片类库
[zero foundation understanding innovation and entrepreneurship competition] overall cognition and introduction of mass entrepreneurship and innovation competition (including FAQs and integration of bl
How to "transform" small and micro businesses (II)?
[design completion - opening report] zufeinfo 2018 software engineering major (including FAQ)
Neo4jdesktop (neo4j desktop version) configures auto start (boot auto start)
Wearable devices may reveal personal privacy
x86电脑上下载debian的arm64的包
Atguigu---18-component
Opencv中的GrabCut图像分割
8. Intelligent transportation project (1)
Format analysis and explanation of wav file