Pro*_*dor 3 flutter flutter-web
我正在 flutter web 上构建一个应用程序,最近在我的程序中添加了一个文本字段。最近的一个新更新增加了对使用空格键滚动的支持。有没有办法禁用或拦截最近实现的空格键滚动功能?空格键滚动功能可以在开发频道的任何可滚动列表上重现(例如列表视图)
Body(child:ListView(children:[TextField(),Container(height:10000,width:100)]))
Run Code Online (Sandbox Code Playgroud)
覆盖应用程序快捷方式以恢复到以前的行为:
Widget build(BuildContext context) {
final shortcuts = WidgetsApp.defaultShortcuts;
shortcuts[LogicalKeySet(LogicalKeyboardKey.space)] = ActivateIntent();
return MaterialApp(
shortcuts: shortcuts,
// ...
);
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
225 次 |
| 最近记录: |