HorizontalScrollable constructor
const
HorizontalScrollable({
- Key? key,
- TextEditingController? textEditingController,
- ScrollController? scrollController,
- ScrollPhysics physics = const ClampingScrollPhysics(),
- Widget? child,
- bool beScrollable = true,
- double horizontalScrollExtent = 2000,
- EdgeInsetsGeometry padding = EdgeInsets.zero,
- bool expand = false,
Makes the child horizontally scrollable
Implementation
const HorizontalScrollable({
Key? key,
this.textEditingController,
this.scrollController,
this.physics = const ClampingScrollPhysics(),
this.child,
this.beScrollable = true,
this.horizontalScrollExtent = 2000,
this.padding = EdgeInsets.zero,
this.expand = false,
}) : assert(horizontalScrollExtent > 0,
'horizontal scroll extent should not be less than 1'),
super(key: key);