Comment obtenir la couleur du thème à l'intérieur du widget en flottement

Color color = Theme.of(context).primaryColor;
Grumpy Goldfinch