nano_core 0.3.0
nano_core: ^0.3.0 copied to clipboard
A lightweight reactive architecture framework and design system toolkit for Flutter multiplatform applications.
Changelog #
All notable changes to the nano_core project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.3.0 - 2026-08-31 #
Added #
NanoRouteObserver: Dedicated navigation observer with granular callbacks (onRouteChange,onRoutePushed,onRoutePopped,onRouteReplaced,onRouteRemoved) for screen analytics, telemetry, and logging.observersproperty onNanoRouterand automated observer forwarding inNanoApp.NanoHttpInterceptor: Extensible contract for intercepting and mutating HTTP requests, responses, and handling errors (JWT injection, refresh tokens, retries).NanoHttpRequestandNanoHttpError: Standardized immutable and equatable models for HTTP requests and structured network errors.NanoHttpLogInterceptor: Ready-to-use HTTP traffic logger for requests, responses, headers, bodies, and exceptions in developer tools.NanoLogger: Central structured logger with severity levels (debug,info,success,warning,error,http), ANSI terminal styling, method tracking, data payloads, and global telemetry hooks (onError,customPrinter).NanoStateObservable: Universal abstract state contract allowingNanoScaffoldto observe any state management approach (BLoC, Cubit, MobX, Signals, or customChangeNotifieradapters).NanoStreamAdapter: Generic adapter bridging anyStream(BLoC, Cubit, RxDart, WebSockets) intoNanoStateObservable.NanoListenableAdapter: Generic adapter bridging anyListenable(MobX, Signals, ValueNotifier, ChangeNotifier) intoNanoStateObservable.- Decoupled
NanoScaffold'scontrollerparameter to accept anyNanoStateObservable<T>. - Implemented
NanoStateObservable<T>onNanoController<T>.
0.2.0 - 2026-08-30 #
Added #
NanoApp: Root application widget that automatically configuresNanoRouter,MaterialApp, themes, and localizations.- Declarative routing architecture with
NanoRouter,NanoRoute,NanoAnimatedRoute,NanoDetailsRoute,NanoGroupRoute,NanoProtectedRoute,NanoRedirectRoute,NanoPaths,NanoRouteArgs,NanoRouteCode, andNanoRouteError. NanoAnimatedRoute: Predefined animated route transitions (fade,slideUp,slideRight,scale) and customtransitionBuildersupport.NanoProtectedRoute: Route guard wrapper with inheritance support protecting nested routes and redirecting unauthorized users.NanoDetailsRoute<T>: Specialized typed detail routes with automated generic argument extraction.NanoGroupRoute: Path-only route grouping without standalone page rendering.NanoGuardedPage&NanoErrorPage: Dedicated widget classes for route guard evaluation and custom 404/error pages.- Navigation extensions on
BuildContext(toNamed,toReplacementNamed,toAndRemoveUntilNamed,back,routeArgs). NanoScaffoldBuilder&NanoScaffoldHeader: Dedicated presentation widget components replacing inline builder helper functions.loadingWidgetproperty onNanoScaffoldandchildonNanoLoadingOverlayfor fully customizable loading states.- Modular
NanoInjectionscomposition support and pattern demonstration in example.
0.1.0 - 2026-08-29 #
Breaking Changes #
NanoController<T>: Now strictly enforcesT extends NanoViewState. Primitive types (String,int, etc.) or arbitrary unbounded types are no longer permitted as state data models.NanoScaffold<T, M>: Builder signature updated fromWidget Function(BuildContext, Widget?)toWidget Function(BuildContext, NanoState<T>)allowing direct reactive state access. Added support for typed message keysM extends NanoMessageKeyand dynamic builders (headerBuilder,footerBuilder,drawerBuilder,floatingActionButtonBuilder).NanoStatePage<W, C>: Generic parameter forNanoInjectionsremoved.injectionsis now an abstract getterNanoInjections get injections;with automatic GetIt scope initialization (initScope) and teardown (dropScope).NanoStateContentremoved: Replaced by the standardizedNanoViewStatebase class.
Added #
NanoHttpClientinterface defining standardized HTTP client contracts.NanoHttpResponsegeneric response model withNanoHttpResponseExtensionhelpers (isSuccess,isClientError,isServerError).NanoHttpCodestatus code constants.NanoAdapterabstract generic model adapter for JSON serialization and deserialization.NanoEntitybase generic entity with unique identifier and value equality.NanoRepositorybase generic CRUD repository with automated serialization.NanoViewStatebase class enforcing structured, equatable view state models forNanoController.
Removed #
NanoStateContentin favor of the standardizedNanoViewState.
0.0.5 - 2026-08-27 #
Added #
- GitHub repository link to header of
example/lib/main.dart. - Full internationalization (l10n) support in
examplewithflutter_localizationsandintl.
Changed #
NanoMessageKeyrefactored to useString Function(BuildContext) get messageinstead ofString get messageto allow highly decoupled, on-demand localization via Context.NanoStatenow defineskeyas a nullableNanoMessageKey?, removing the need for mandatory wrappers.NanoScaffoldandStateSimulatorCardupdated to callmessage(context)and elegantly fallback when no key is provided.
0.0.4 - 2026-07-28 #
Added #
- Strict linting rules in
analysis_options.yaml(sort_constructors_first,sort_unnamed_constructors_first,lines_longer_than_80_chars,always_declare_return_types,prefer_single_quotes, andunawaited_futures).
Changed #
- Constructors reordered across core classes to satisfy
sort_constructors_first. example/**directory excluded from strict documentation linting while preserving 100% strict Dartdoc enforcement on corelib/package APIs.
0.0.3 - 2026-07-28 #
Added #
- Complete explicit Dartdoc constructor documentation across
NanoController,NanoLoadingOverlay,NanoScaffold,NanoStatePage, andNanoToastto pass pub.dev Pana analysis checks. - Showcase
exampleapp re-architected into clean modular feature layers followingnano-budgetsdesign (app/core/theme,app/pages/showcase/widgets). - Package metadata and
README.mdupdated with active Beta status notice and badges.
Removed #
- Unused
lib/main.dartentrypoint from package core.
0.0.2 - 2026-07-24 #
Added #
NanoToastsmart multiplatform notification component for Web, Desktop, and Mobile.NanoDeviceTypefor robust platform and responsive screen environment detection.warningstate status and helpers (isWarning,toWarning()) inNanoState.onCustomError,onCustomWarning, andonCustomSuccesscallbacks toNanoScaffold.homepageURL (https://nanodevs.com.br) in package metadata.- Comprehensive English Dartdoc documentation for all core APIs.