foivz / pop-app-flutter

Mobile application for the course Entrepreneurial venture.
2 stars 0 forks source link

Buyer and seller menu - architectural reconsideration #25

Closed mislavmatijevic closed 1 year ago

mislavmatijevic commented 1 year ago

Currently, buyer menu and seller menu are two different files filled with 95% same content. Commit a3f1fa2 proves current architecture is not very sustainable. What if we introduce a third role, should we copy-paste everything there as well? So I suggest some kind of a "mixin" to put all this same logic on one place, and then only override the differences. I'll get down to this as soon as I implement the invoices screen.