A new Flutter project.
Business logic components (BLoC) allow you to separate the business logic from the UI.
Writing code in BLoC makes it easier to write and reuse tests.
Clean architecture with bloc will solve your problem. Your code will become scalable maintainable and testable