The InheritedWidget

Many are not using it right.

Here, copy this gist, inherited_state_mixin.dart, and you’ll have a mixin that provides you with a properly implemented InheritedWidget to be used with any State class. I’m seeing developers are not implementing their InheritedWidgets quite right and thus not utilizing them to their fullest. This mixin will make that a distant memory.

I had first introduced this ‘ready-made InheritedWidget’ approach in a previous free article (see below), but it involved my own Flutter framework — you’d have to use my framework to use…

--

--

Freelance Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store