I want to implement best practices for constants in Flutter by Rémi Rousselet's: What's the best practice to keep all the constants in Flutter?
but inheritFromWidgetOfExactType
is deprecated:
'inheritFromWidgetOfExactType' is deprecated and shouldn't be used. Use dependOnInheritedWidgetOfExactType instead. This feature was deprecated after v1.12.1.. Try replacing the use of the deprecated member with the replacement.
Could you help me to implement that with dependOnInheritedWidgetOfExactType
?