只需要将resizeToAvoidBottomInset
设置为 false
@override
Widget build(BuildContext context) {
return Scaffold(
resizeToAvoidBottomInset: false,
body: Builder(builder: (BuildContext context) {
return WebView(
initialUrl: 'https://www.baidu.com/',
);
}),
);
}