I Created Custom Widget (cardChild) but it's not showing any element
class ReuseableCard extends StatelessWidget {
ReuseableCard({required this.colour, required this.cardChild});
Color colour;
final Widget cardChild;
Icon And Text both not showing in app
Expanded(
child: ReuseableCard(
colour: activeCardColour,
cardChild: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(
FontAwesomeIcons.mars,
size: 80.0,
),
Text(
'Male',
style: TextStyle(
fontSize: 18.0, color: Color(0xFF8D8E98)),
)],
),
),),
No Error in flutter And please tell why widget require "required" will constructing.