-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Male, Female Color Not Working #11
Comments
I am facing the same issue. Even though gesture detector, detecting taps, card color doesn't change. |
Hello, did you get to solve this issue? |
Hi guys. I have completed the project. Here is the complete input_page.dart file import 'package:flutter/material.dart'; enum Gender { class InputPage extends StatefulWidget { class _InputPageState extends State { @OverRide
} |
i have solve this mistake .just little bit silly mistake in making method . my advice to proper check open close curly brackets in our method. |
I have completed this project. Everything seems to work fine except the card selector of Male & Female. It is not loading the colours when I am pressing the male or female card. It does not show the active or inactive state
Here is the same code I written 👍
input_page.dart
enum Gender {
male,
female,
}
Expanded(
child: ReusableCard(
onPress: () {
setState(() {
selectedGender = Gender.female;
});
},
colour: selectedGender == Gender.female
? kActiveCardColour
: kInactiveCardColour,
cardChild: IconContent(
icon: FontAwesomeIcons.venus,
label: 'FEMALE',
),
),
),
constants.dart
const kActiveCardColour = Color(0xFF1D1E33);
const kInactiveCardColour = Color(0xFF111328);
The text was updated successfully, but these errors were encountered: