Couldn’t find headerLabel to use it. Tried to use variable headerLabel but could not find solution
class ProfileHeaderLabel extends StatelessWidget {
final String headerLabel;
const ProfileHeaderLabel({
Key? key, required this.headerLabel
}): super(key: key)
@override
Widget build(BuildContext context) {
return SizedBox(
height: 40,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: const [
SizedBox(
height: 40,
width: 50,
child: Divider(
color: Colors.grey,
thickness: 1,
),
),
// 'Account info'
Text(
headerLabel,
style: TextStyle(
color: Colors.grey, fontSize: 24, fontWeight: FontWeight.w600),
),
Couldn’t find headerLabel to use it.