RIP-Comm / sossoldi

"Sossoldi" is a wealth management / personal finance / Net Worth tracking app, made with Flutter.
MIT License
276 stars 75 forks source link

Break down pages into separate widgets #42

Closed GBergatto closed 1 year ago

GBergatto commented 1 year ago

To improve legibility, I think we should break down each page into separate widgets stored in separate files, each of them representing a section of the page.

For an example of this, see my PR #36

Each page should be wrapped in a folder with the same name containing a widgets subfolder that stores custom widgets extracted from that page.

├── transactions_page.dart
└── widgets
    ├── accounts_tab.dart
    ├── categories_tab.dart
    ├── custom_sliver_delegate.dart
    ├── list_tab.dart
    └── month_selector.dart

The widgets subfolder should contain widgets that are specific to a particular page, whereas the ones that are shared across multiple pages should go in /lib/custom_widgets.

theperu commented 1 year ago

Since this more of a guideline it will be added to the Product Brief