appfuse 0.0.3
appfuse: ^0.0.3 copied to clipboard
Orchestrates Flutter app startup with init steps, environment configs, saved locale and theme, permissions, and debug tools in one scope.
Changelog #
0.0.3 #
- Breaking: smaller API:
AppFuseScope.read,watch(context, aspect),controller,initOf<T>, andcontext.fuse.init:takes a factory (Dependencies.new),AppFuseState.phasereplacesisProcessing/error/progress, configs read values with a typedConfigKey<T>, andIAppFuseStoragestores strings.HeaderandSettingTileare nowAppFuseSettingsHeaderandAppFuseSettingTile. OnlyPermission,PermissionStatus, and their getters are re-exported frompermission_handler. Android needscompileSdk = 37, and therecheckPermissionStatusno longer returnspermanentlyDenied. - Changed: a config switch is a soft restart that saves the choice only after the init steps succeed. The native splash stays until startup ends (
keepNativeSplash). On macOS, Linux, and Fuchsia the permission helpers returngrantedinstead of throwing. - Added:
retry()after an init error,AppFuseAspectfor targeted rebuilds, the "System" language option,removeCustomSetting,AppFuseInitialization.dispose(), a permission recheck on app resume, DevTools timeline events, and inspector support forAppFuseState. - Fixed: bad saved data and a failed or slow app info read no longer stop startup. Writes run in order, and a failed write keeps the current value. The state is unmodifiable. Theme choice, placeholder theming, the permission dialog, and a removed active config are handled correctly.
- Dependencies: removed
intl,flutter_localizations, andplatform_info.permission_handler^13.0.2,package_info_plus^10.2.2,shared_preferences^2.5.6 (SharedPreferencesWithCache, saved values migrate once). Requires Dart 3.11 and Flutter 3.41. - Tests: split by feature and expanded to 117 tests.
0.0.2 #
- Fixed: stale
MediaQueryshadowing the live root one.VitalAppwrapped the entire app in a one-shotMediaQueryData.fromViewsnapshot with no metrics listener; since Flutter 3.10 the rootViewowns the liveMediaQueryandWidgetsAppinstalls none of its own, so the app's metrics froze at startup values (symptom: app rendered with frozen/halved screen metrics when the platform corrected the window size after launch). - Changed: when environment configs are active, the app is no longer wrapped in
VitalAppat all — the app is a completeMaterialAppand needs no shell. The debug banner is overlaid via aStack; config-change remount semantics are preserved withKeyedSubtree.VitalAppremains as the minimal shell for splash/error content only and no longer inserts aMediaQuery. - Changed: migrated to
MediaQuery.sizeOf,ColorScheme.surface, andRadioGroup(RadiogroupValue/onChangeddeprecated since Flutter 3.32). - Dependencies: bumped
package_info_plus^9.0.0→^10.1.0,shared_preferences^2.5.4→^2.5.5, andpermission_handler^12.0.1→^12.0.3; SDK floor raised to^3.10.0. - Tests: added regression coverage for MediaQuery liveness, banner visibility, and config switching.
0.0.1 #
- Initial release.