buildBackButton method
Builds the back button using custom or default styling.
Implementation
Widget buildBackButton(
BuildContext context,
String label,
VoidCallback onPressed,
) {
final builder = backButtonBuilder ?? buttonBuilder;
if (builder != null) return builder(context, label, onPressed);
return TextButton(
style: TextButton.styleFrom(
padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 12),
),
onPressed: onPressed,
child: Text(label),
);
}