wt_framework 1.4.1 copy "wt_framework: ^1.4.1" to clipboard
wt_framework: ^1.4.1 copied to clipboard

WondTech Flutter MVC framework — controllers, models, views, routing, sessions, and enveloped token-auth API helpers for building structured Flutter apps.

Changelog #

1.4.1 #

  • Upgrade flutter_secure_storage to ^11.0.0 (latest) for up-to-date platform implementations and pub.dev scoring. The public API is unchanged.
  • Raise the SDK floor to Dart >=3.8.0 / Flutter >=3.19.0 to match the new dependency — this is the accurate minimum (the previous 3.0/3.10 bounds could not actually resolve). Verified against the latest stable Flutter.

1.4.0 #

  • Animation layer (pure Flutter, zero new dependencies).
    • Entrance widgets WtFadeIn, WtSlideIn, WtScaleIn and the low-level WtAnimate that composes fade/slide/scale.
    • Fluent WtAnimateX extensions on any widget: .wtFadeIn(), .wtSlideUp(), .wtSlideIn(from:), .wtScaleIn(), .wtStagger(index:).
    • WtStagger for cascading a column of children into view.
    • Page transitions in WtRouter: set WtRoute(transition: ...) per route or WtConfig.pageTransition globally (fade, slideRight/Left/Up, scale, fadeScale). Defaults to WtTransition.platformno behaviour change on upgrade.
    • New WtConfig knobs: animationsEnabled, pageTransition, animDuration, animCurve.
    • Accessibility: all animations honour the OS "reduce motion" setting and the global animationsEnabled flag, collapsing to an instant final state.
  • WtTheme — design tokens (spacing xs…xxl, radii, gap/rounded helpers) and Material 3 light()/dark() builders from a single seed colour.
  • WtI18n — in-app localisation: translation tables, {param} interpolation, fallback language, persisted selection (WtSession), toggle(), RTL dir, and the app() / applyDirection wiring helpers.
  • WtValidator — ready-made TextFormField validators: required, email, minLength, maxLength, pattern, phone, match, and compose.
  • Resilient networking — new WtConfig.requestTimeout (default 30s, multipart exempt) and WtConfig.maxRetries (GET-only retry with exponential backoff on timeout / connection error / 5xx). Non-idempotent verbs are never auto-retried.
  • Tooling: added analysis_options.yaml, a GitHub Actions CI workflow (format + analyze + test + publish dry-run), a test suite for the new modules, and a rewritten example app that showcases the full framework.

1.3.1 #

  • Upgrade flutter_secure_storage to ^10.3.1 (drops the discontinued js transitive dependency → restores WASM/platform-support score and up-to-date dependencies on pub.dev). The deprecated encryptedSharedPreferences Android option is removed — v10 encrypts with modern ciphers by default and migrates existing data automatically. Bumped flutter_lints to ^6.0.0.
  • README/docs clarified: WtSecurity.encode/decode are base64 obfuscation (not encryption); the bearer token uses secure storage.

1.3.0 #

  • Secure bearer-token storage. WtSession now stores the value written under WtConfig.tokenKey in flutter_secure_storage (Android Keystore / iOS Keychain) instead of SharedPreferences, mirrored in a synchronous in-memory cache so WtModel header injection stays non-async. All other keys are unchanged. Tokens saved by 1.2.x (plaintext base64 in SharedPreferences) are migrated to secure storage on first read and the plaintext copy is scrubbed — no forced logout. logout()/destroy() now also clear the secure token. No app code changes required.

1.2.0 #

  • WtHelper.timeAgo reworked and hardened:
    • Never emits a negative count — future / clock-skewed dates clamp to "just now" instead of -3s ago.
    • Full range: seconds, minutes, hours, days, weeks, months, years (previously fell back to an absolute date after 7 days).
    • Localisable via the new TimeAgoLabels (enShort default, en, ar with correct singular/dual/plural forms) and TimeUnit enum.
    • New assumeUtc, now (testable) and justNowSeconds options.
  • New WtHelper.timeAgoFrom(String?) — parses an ISO-8601 / yyyy-MM-dd HH:mm:ss string and returns '' for null/blank/invalid input (no throw).

1.1.0 #

  • Initial public release of the WondTech Flutter MVC Framework.
  • Core: WtApp, WtRouter for app bootstrap and named-route navigation.
  • MVC: WtController, WtModel, WtView base classes.
  • Helpers: WtHelper, WtSecurity, WtSession utilities.
  • Config: centralized WtConfig settings.
  • Networking: enveloped {state, data, msg} API model with bearer-token auth and multipart image uploads.
  • Example app demonstrating controllers, models, and routing.
2
likes
160
points
174
downloads

Documentation

API reference

Publisher

verified publisherwondtech.com

Weekly Downloads

WondTech Flutter MVC framework — controllers, models, views, routing, sessions, and enveloped token-auth API helpers for building structured Flutter apps.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

crypto, flutter, flutter_secure_storage, http, http_parser, intl, shared_preferences

More

Packages that depend on wt_framework