HorizontalScrollable constructor

const HorizontalScrollable({
  1. Key? key,
  2. TextEditingController? textEditingController,
  3. ScrollController? scrollController,
  4. ScrollPhysics physics = const ClampingScrollPhysics(),
  5. Widget? child,
  6. bool beScrollable = true,
  7. double horizontalScrollExtent = 2000,
  8. EdgeInsetsGeometry padding = EdgeInsets.zero,
  9. 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);