Skip to main content

nano_core 0.3.0 copy "nano_core: ^0.3.0" to clipboard
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.
  • observers property on NanoRouter and automated observer forwarding in NanoApp.
  • NanoHttpInterceptor: Extensible contract for intercepting and mutating HTTP requests, responses, and handling errors (JWT injection, refresh tokens, retries).
  • NanoHttpRequest and NanoHttpError: 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 allowing NanoScaffold to observe any state management approach (BLoC, Cubit, MobX, Signals, or custom ChangeNotifier adapters).
  • NanoStreamAdapter: Generic adapter bridging any Stream (BLoC, Cubit, RxDart, WebSockets) into NanoStateObservable.
  • NanoListenableAdapter: Generic adapter bridging any Listenable (MobX, Signals, ValueNotifier, ChangeNotifier) into NanoStateObservable.
  • Decoupled NanoScaffold's controller parameter to accept any NanoStateObservable<T>.
  • Implemented NanoStateObservable<T> on NanoController<T>.

0.2.0 - 2026-08-30 #

Added #

  • NanoApp: Root application widget that automatically configures NanoRouter, MaterialApp, themes, and localizations.
  • Declarative routing architecture with NanoRouter, NanoRoute, NanoAnimatedRoute, NanoDetailsRoute, NanoGroupRoute, NanoProtectedRoute, NanoRedirectRoute, NanoPaths, NanoRouteArgs, NanoRouteCode, and NanoRouteError.
  • NanoAnimatedRoute: Predefined animated route transitions (fade, slideUp, slideRight, scale) and custom transitionBuilder support.
  • 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.
  • loadingWidget property on NanoScaffold and child on NanoLoadingOverlay for fully customizable loading states.
  • Modular NanoInjections composition support and pattern demonstration in example.

0.1.0 - 2026-08-29 #

Breaking Changes #

  • NanoController<T>: Now strictly enforces T 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 from Widget Function(BuildContext, Widget?) to Widget Function(BuildContext, NanoState<T>) allowing direct reactive state access. Added support for typed message keys M extends NanoMessageKey and dynamic builders (headerBuilder, footerBuilder, drawerBuilder, floatingActionButtonBuilder).
  • NanoStatePage<W, C>: Generic parameter for NanoInjections removed. injections is now an abstract getter NanoInjections get injections; with automatic GetIt scope initialization (initScope) and teardown (dropScope).
  • NanoStateContent removed: Replaced by the standardized NanoViewState base class.

Added #

  • NanoHttpClient interface defining standardized HTTP client contracts.
  • NanoHttpResponse generic response model with NanoHttpResponseExtension helpers (isSuccess, isClientError, isServerError).
  • NanoHttpCode status code constants.
  • NanoAdapter abstract generic model adapter for JSON serialization and deserialization.
  • NanoEntity base generic entity with unique identifier and value equality.
  • NanoRepository base generic CRUD repository with automated serialization.
  • NanoViewState base class enforcing structured, equatable view state models for NanoController.

Removed #

  • NanoStateContent in favor of the standardized NanoViewState.

0.0.5 - 2026-08-27 #

Added #

  • GitHub repository link to header of example/lib/main.dart.
  • Full internationalization (l10n) support in example with flutter_localizations and intl.

Changed #

  • NanoMessageKey refactored to use String Function(BuildContext) get message instead of String get message to allow highly decoupled, on-demand localization via Context.
  • NanoState now defines key as a nullable NanoMessageKey?, removing the need for mandatory wrappers.
  • NanoScaffold and StateSimulatorCard updated to call message(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, and unawaited_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 core lib/ package APIs.

0.0.3 - 2026-07-28 #

Added #

  • Complete explicit Dartdoc constructor documentation across NanoController, NanoLoadingOverlay, NanoScaffold, NanoStatePage, and NanoToast to pass pub.dev Pana analysis checks.
  • Showcase example app re-architected into clean modular feature layers following nano-budgets design (app/core/theme, app/pages/showcase/widgets).
  • Package metadata and README.md updated with active Beta status notice and badges.

Removed #

  • Unused lib/main.dart entrypoint from package core.

0.0.2 - 2026-07-24 #

Added #

  • NanoToast smart multiplatform notification component for Web, Desktop, and Mobile.
  • NanoDeviceType for robust platform and responsive screen environment detection.
  • warning state status and helpers (isWarning, toWarning()) in NanoState.
  • onCustomError, onCustomWarning, and onCustomSuccess callbacks to NanoScaffold.
  • homepage URL (https://nanodevs.com.br) in package metadata.
  • Comprehensive English Dartdoc documentation for all core APIs.

0.0.1 - 2026-07-24 #

Added #

  • Initial release of nano_core.
  • Reactive state management (NanoState, NanoController, NanoCommand).
  • Multiplatform layout scaffold (NanoScaffold).
  • Reusable design system components (NanoLoadingOverlay).
  • Dependency injection bindings (NanoInjections).
6
likes
0
points
1.26k
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight reactive architecture framework and design system toolkit for Flutter multiplatform applications.

Homepage
Repository (GitHub)
View/report issues

Topics

#architecture #state-management #design-system #routing #scaffold

License

unknown (license)

Dependencies

cupertino_icons, flutter, get_it

More

Packages that depend on nano_core