flutter_json_view icon indicating copy to clipboard operation
flutter_json_view copied to clipboard

Added ability to replace JsonView with Error widget

Open FrankDomburg opened this issue 10 months ago • 1 comments

When passing something not JSON, the assert in the converter will throw an exception.

It seemed much cleaner to me, to instead have it return an Error widget that the developer can style themselves.

Disclaimer: was unable to test if it all works as intended

FrankDomburg avatar Apr 16 '24 11:04 FrankDomburg

Examples seem to compile - did not test the replacement yet

FrankDomburg avatar Apr 17 '24 05:04 FrankDomburg