wt_framework 1.2.0
wt_framework: ^1.2.0 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.2.0 #
WtHelper.timeAgoreworked 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(enShortdefault,en,arwith correct singular/dual/plural forms) andTimeUnitenum. - New
assumeUtc,now(testable) andjustNowSecondsoptions.
- Never emits a negative count — future / clock-skewed dates clamp to
"just now" instead of
- New
WtHelper.timeAgoFrom(String?)— parses an ISO-8601 /yyyy-MM-dd HH:mm:ssstring and returns''for null/blank/invalid input (no throw).
1.1.0 #
- Initial public release of the WondTech Flutter MVC Framework.
- Core:
WtApp,WtRouterfor app bootstrap and named-route navigation. - MVC:
WtController,WtModel,WtViewbase classes. - Helpers:
WtHelper,WtSecurity,WtSessionutilities. - Config: centralized
WtConfigsettings. - Networking: enveloped
{state, data, msg}API model with bearer-token auth and multipart image uploads. - Example app demonstrating controllers, models, and routing.