json_to_ui 1.0.0 copy "json_to_ui: ^1.0.0" to clipboard
json_to_ui: ^1.0.0 copied to clipboard

A lightweight dynamic UI builder with basic caching

0.0.1 #

Changelog #

1.0.0 Initial Release #

  • 🎉 First stable version of json_to_ui.
  • 📌 Supports dynamic UI generation from JSON.
  • 🚀 Includes network requests, storage handling, and widget rendering.

Initial Setup: #

  • Created a Flutter application to dynamically build UI from JSON data.
  • Added NetworkService to handle HTTP requests with support for GET method.
  • Introduced HiveService for local caching of network data, including functions to save, retrieve, and clear data.
  • Added a method to check internet connectivity before fetching data from the network.

UI Builder: #

  • Introduced JsonNetworkUiBuilder to fetch JSON from a remote URL and dynamically generate the UI.
  • Implemented UIBuilder to parse JSON into Flutter widgets such as Scaffold, Container, Column, Row, and Text.
  • Widgets can be customized with properties like padding, margin, backgroundColor, and fontSize.

Network Handling: #

  • Network data is fetched and parsed into widgets if the internet connection is available.
  • If no internet connection is detected, the app uses cached data stored via HiveService.

Error Handling: #

  • Errors in network requests (e.g., no internet or failed request) are caught, and fallback data (cached) is used where applicable.
3
likes
0
points
17
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight dynamic UI builder with basic caching

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cached_network_image, flutter, hive, hive_flutter, http

More

Packages that depend on json_to_ui