X-Wei / flutter_catalog

An app showcasing Flutter components, with side-by-side source code view.
MIT License
2.19k stars 558 forks source link

Error on Local file read/write component #127

Closed linaCardozo closed 2 years ago

linaCardozo commented 2 years ago

In the Local file read/write component which is inside Persistence, when the user hasn't input some text and saved it but clicks on Load, an error text is shown (the following image illustrates that):

1

Proposed Solution: When the user hasn't saved some text, you could show a dialog indicating the user, that he must save something first in order to load the saved text.

X-Wei commented 2 years ago

Agree the UI is not great, I wrote like this to minimize code that is unrelated to the "file read/write" topic.

I'm closing this for now as it is not a bug per se. But feel free to create a PR to fix this.