Decoupling logic from UI in Flutter application

Photo by Kelly Sikkema on Unsplash


Recently I worked on a Flutter project. I started with the UI definition. Then I extended the application with user interaction handlers and business logic rules. In no time, the widget classes became polluted. The readability and reusability of the code were low. But the major problem was testing. I could not validate business rules without launching the whole…



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