Files
finger_print_app/lib/widgets/onboarding_button.dart
Daniah Ayad Al-sultani b50c2b578b fisrt three screens
2025-11-27 16:21:33 +03:00

32 lines
877 B
Dart

import 'package:flutter/material.dart';
class OnboardingButton extends StatelessWidget {
final String text;
final VoidCallback? onPressed;
const OnboardingButton({super.key, required this.text, this.onPressed});
@override
Widget build(BuildContext context) {
return ElevatedButton(
onPressed: onPressed ?? () {},
style: ElevatedButton.styleFrom(
backgroundColor: const Color(0xFF2D2D2D),
foregroundColor: Colors.white,
padding: const EdgeInsets.symmetric(horizontal: 80, vertical: 10),
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(14)),
elevation: 0,
),
child: Text(
text,
style: const TextStyle(
fontFamily: 'AbdElRady',
color: Colors.white,
fontSize: 20,
fontWeight: FontWeight.w700,
),
),
);
}
}