Don't you feel Theme data class is an overkill?.. If I used a simple class.. I could call that too from anywhere.. And still have the option of customization when ever I want! If you still want instantiation then I would go with Singleton... But theme data seems to be too much of hammering around for almost nothing! ;-)
I only wanted to show what is possible. Normally you have one divider customization and put it therefore directly into your Material App Theme. This is the best place I guess since you don't need to build a custom widget. However do like you love to do it - in the end the most important thing is that your app is successful 🙂
Thank You Mustafa Shaikh! Follow this link: stackoverflow.com/questions/71558356/how-to-add-vertical-divider-on-grid-view I hope you will get your answer 🙂