xxxxxxxxxx
ElevatedButton(
onPressed: () {},
style: ElevatedButton.styleFrom(
foregroundColor: Colors.yellow, // <= this part
),
child: const Text(
'Elevated Button',
style: TextStyle(fontSize: 20, color: Colors.white),
),
),
// Note: instead of foregroundColor attribute, 'nPrimary:' is deprecated