GregoryConrad / rearch-dart

Re-imagined approach to application design and architecture
https://pub.dev/packages/rearch
MIT License
92 stars 4 forks source link

TODO Example Not Working on Web #98

Closed jtkeyva closed 9 months ago

jtkeyva commented 9 months ago

The TODO example is not working on Flutter Web.

Also in chrome it shows:

image
══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
The following assertion was thrown during layout:
A RenderFlex overflowed by 798 pixels on the bottom.

The relevant error-causing widget was:
  Column

Also, do you have a reccomended way to "Arch"itect? The demo is a lot of lines of code. Do you reccomend splitting up functions and state into different files? Like in BLoC I have todo_page.dart todo_state.dart and todo_cubit.dart. What do you recommend?

GregoryConrad commented 9 months ago

The TODOs example doesn’t work on web, but should on any other platform (designed for mobile though). It’s also all in one file intentionally so that the “Example” tab on the pub.dev listing has the full example source code.

jtkeyva commented 9 months ago

Got it. As an end user, I would expect the example to work on all platforms that you support. Also, maybe not depend on any other packages as well and keep the focus purely on ReArch. Just saying that I expect to fire up the example and only be learning about the ReArch package, not Mimir.