json_to_ui 1.0.0
json_to_ui: ^1.0.0 copied to clipboard
A lightweight dynamic UI builder with basic caching
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
NetworkServiceto handle HTTP requests with support forGETmethod. - Introduced
HiveServicefor 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
JsonNetworkUiBuilderto fetch JSON from a remote URL and dynamically generate the UI. - Implemented
UIBuilderto parse JSON into Flutter widgets such asScaffold,Container,Column,Row, andText. - Widgets can be customized with properties like
padding,margin,backgroundColor, andfontSize.
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.