Stracture of the request leave and advance was made
This commit is contained in:
@@ -4,12 +4,14 @@ class OnboardingButton extends StatelessWidget {
|
||||
final String text;
|
||||
final VoidCallback? onPressed;
|
||||
final Color backgroundColor;
|
||||
final Color textColor;
|
||||
|
||||
const OnboardingButton({
|
||||
super.key,
|
||||
required this.text,
|
||||
this.onPressed,
|
||||
this.backgroundColor = const Color(0xFF2D2D2D),
|
||||
this.textColor = Colors.white,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -29,21 +31,21 @@ class OnboardingButton extends StatelessWidget {
|
||||
onPressed: onPressed,
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: backgroundColor,
|
||||
foregroundColor: Colors.white,
|
||||
disabledForegroundColor: Colors.white,
|
||||
foregroundColor: textColor,
|
||||
disabledForegroundColor: textColor,
|
||||
disabledBackgroundColor: backgroundColor,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 80, vertical: 10),
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
),
|
||||
elevation: 8, // Increased elevation for more prominent shadow
|
||||
elevation: 8,
|
||||
shadowColor: const Color(0x47000000), // More defined shadow color
|
||||
),
|
||||
child: Text(
|
||||
text,
|
||||
style: const TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 20,
|
||||
style: TextStyle(
|
||||
color: textColor, // Use the textColor parameter here
|
||||
fontSize: 22,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user