nextButton method
Implementation
Widget nextButton(
{required String buttontitle,
String? imagelength,
void Function()? onTap}) {
return GestureDetector(
onTap: onTap,
child: Container(
decoration: BoxDecoration(
border: Border.all(color: Colors.white),
borderRadius: BorderRadius.circular(24.0)),
padding: const EdgeInsets.symmetric(horizontal: 12.0, vertical: 4.0),
child: Row(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
buttontitle,
style: TextStyle(
color: hasPermission ? Colors.black : Colors.white,
fontSize: 18.0,
fontWeight: FontWeight.w500),
),
const SizedBox(
width: 5.0,
),
Container(
height: 24,
width: 24,
decoration: const BoxDecoration(
shape: BoxShape.circle,
color: Color.fromRGBO(20, 20, 20, 0.3),
),
child: Center(
child: Text(
'$imagelength',
style: const TextStyle(
color: Colors.white,
fontSize: 17,
fontWeight: FontWeight.w600,
),
),
),
)
],
),
),
);
}