arrowButton method
Implementation
Widget arrowButton({required double width, required String type}) {
return GestureDetector(
onTapDown: (_) async {
isRight = (type == 'right');
await paddingController.forward();
},
onTapUp: (_) async {
await paddingController.reverse();
limitCalendar(number: type == 'right' ? 1 : -1);
// betweenController 초기화 후 배열에 맞게 재셋팅
resetBetweenControllerList();
setPreSelected();
},
child: Container(
width: width * 0.075,
height: width * 0.075,
decoration: BoxDecoration(
shape: BoxShape.circle, color: widget.arrowIconAreaColor),
child: Stack(
children: [
Center(
child: Container(
width: width * 0.025,
height: width * 0.025,
child: CustomPaint(
size: Size(width * 0.01, (width * 0.01 * 1).toDouble()),
painter:
type == 'right' ? RightArrowPaint() : LeftArrowPaint(),
),
),
),
],
),
),
);
}