horizontal method
Implementation
GestureDetector horizontal() {
return GestureDetector(
onHorizontalDragUpdate: (details) {
localeController.jumpTo(localeController.offset - details.delta.dx);
},
child: SingleChildScrollView(
controller: controller ?? localeController,
clipBehavior: clipBehavior,
padding: padding,
physics: physics,
primary: primary,
restorationId: restorationId,
scrollDirection: Axis.horizontal,
child: Row(
children: [
const SizedBox(width: 10),
child,
const SizedBox(width: 10),
],
),
),
);
}