fassad_ui 0.2.0
fassad_ui: ^0.2.0 copied to clipboard
Flutter widgets and HTTP client for querying dblm fassad templates — render database results as charts and tables.
0.2.0 #
- Responsive charts —
FassadChartnow usesLayoutBuilderto adapt to its container width.heightis optional; when omitted the chart auto-sizes to 55 % of available width (clamped 200–420 px). Bar width scales with the number of bars so charts never overflow on narrow screens. - Theme-aware colours — all chart colours (bars, lines, grid, axis labels, pie sections) are derived from
Theme.of(context).colorScheme, so both light and dark mode work automatically without any configuration. - Offline / local caching — new
FassadCacheclass persistsFassadResultdata toSharedPreferences. NewFassadClient.runWithCache()stream method implements stale-while-revalidate: emits cached data instantly, then emits fresh data once the network responds, and falls back to cache silently when offline. - Added
shared_preferences: ^2.2.0dependency.
0.1.1 #
- Improved README with architecture diagram, full widget example, and complete API reference
0.1.0 #
- Initial release
FassadClient— HTTP client for the@dblm/middlewareREST APIFassadChart— bar, line, and pie chart widget powered by fl_chartFassadTable— scrollable data table widgetColumnMapper— utility for mapping fassad row results to chart data