If I'm not passing the function and just testing with print, it works. I have 3 functions passed on the widget, the CircleAvatar on tap works but not with RawMaterial / button
RawMaterialButton(
onPressed: () => bannerTap,//print('raw'),
child: RichText(
text: TextSpan(
//recognizer: TapGestureRecognizer()..onTap = ()=> print('Text tapped'),
text: info,
style: TextStyle(color: Colors.white),
children: <TextSpan>[
TextSpan(text: actionMessage, style: TextStyle(fontWeight: FontWeight.bold)),
],
),
),
),