MyScrollView constructor
const
MyScrollView({
- Key? key,
- required List<
Widget> children, - EdgeInsetsGeometry? padding,
- ScrollPhysics physics = const BouncingScrollPhysics(),
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start,
- Widget? bottomButton,
- KeyboardActionsConfig? keyboardConfig,
- bool tapOutsideToDismiss = false,
- double overScroll = 16.0,
- ScrollController? controller,
注意:同时存在底部按钮与keyboardConfig配置时,为保证软键盘弹出高度正常。需要在Scaffold
使用 resizeToAvoidBottomInset: defaultTargetPlatform != TargetPlatform.iOS,
除非Android与iOS平台均使用keyboard_actions
Implementation
const MyScrollView({
Key? key,
required this.children,
this.padding,
this.physics = const BouncingScrollPhysics(),
this.crossAxisAlignment = CrossAxisAlignment.start,
this.bottomButton,
this.keyboardConfig,
this.tapOutsideToDismiss = false,
this.overScroll = 16.0,
this.controller,
}) : super(key: key);