next prev action is a flutter widget that presents a 3d button with callbacks for previous and next step.
preview.mp4
NextPrevButton(
width: MediaQuery.of(context).size.width * .55,
height: 70,
color: const Color.fromARGB(255, 6, 91, 219),
borderRadius: 20,
padding: const EdgeInsets.symmetric(horizontal: 25),
onPrevTap: () {
print("Prev");
},
onNextTap: () {
print("Next");
},
),
width
- The width of the button.height
- The height of the button.color
- The color of the button.borderRadius
- The borderRadius of the button.padding
- The padding around the button.onPrevTap
- Tap callback for prev step.onNextTap
- Tap callback for next step.
All contributions are welcome!