brix 1.3.2
brix: ^1.3.2 copied to clipboard
The core of the brix Flutter family: login, signup, email code, reset, profile and account logic in pure Dart. Any backend, any state library.
1.3.2 #
- Docs: the README tells the brix family story (new app: start with brix_cli; existing app: add the packages you need, each brings the core), with sharper screenshots and a clearer pub.dev description.
- Docs: the README says up front that this is the core, and when to add it on its own.
- Docs: README with screenshots of the demo app and the console (also on pub.dev); neutral examples ("My App", "items") in the
BrixLoggerdocs.
1.3.1 #
BrixLogger: writes to the IDE console throughdart:developer, one entry at a time, so colours show on iOS too (the iOS console printed the colour codes as text) and other logs cannot land inside a box.output: printstill prints line by line, e.g. forflutter runin a terminal.
1.3.0 #
BrixLogger: one box per message so lines that follow each other never run together; a colour per level (debug grey, info blue, success green, warning yellow, error red) with the level in a coloured badge; the brix mark▰and a banner with the brix logo.BrixLogger.success(): something finished well, logged at info level and shown in green.BrixLogger.width: width of the box lines (default 64).
1.2.0 #
BrixLogger: a readable console log (time, level, name, short stack traces, start-up banner), off in release builds;LogLevel.- README: logging, the ready
BrixSessionStorefrom brix_storage.
1.1.1 #
- README: flow diagrams showing what happens on a tap / in a call.
1.1.0 #
Json: read decoded JSON from any backend into your models without crashes; safe conversions ("12"to 12, epoch toDateTime), paths (profile.firstName), lists, fallbacks, andJson.onProblemto see missing or wrong keys while developing.Failure.fieldErrorsandfieldError(field): problems per form field;ValidationFailure(fieldErrors: ...).
1.0.1 #
- README: how to use the flows with Riverpod, Bloc, Provider and
setState.
1.0.0 #
First public release.
- Core:
Result(Success/Failed), theFailuretypes with default texts (displayMessage),BrixFlow(immutable state + change stream). - Auth:
LoginFlow(remember me, double-tap guard, password never trimmed),SignupFlow,OtpVerificationFlow(resend cooldown, failed attempts, change email),ForgotPasswordFlow,ResetPasswordFlow(code or link),PasswordPolicywithPasswordRulelabels,maskIdentifier. - Account:
SessionFlow(app start, logout),ProfileFlow(load, save, avatar),ChangePasswordFlow,DeleteAccountFlow(confirm, password or code). - App contracts:
AuthProvider,AccountProvider,AuthSessionStore,AuthNavigator,AuthFeedback,AuthCapabilities. Optional methods have default bodies, so later versions do not break your classes. - Switch-safe values:
AuthWarning,PasswordRule,OtpPurposeare classes with a default text; switch with a default case. - Testing:
package:brix/testing.dart:FakeAuthProvider,FakeAccountProvider,InMemoryAuthSessionStore,RecordingAuthNavigator,RecordingAuthFeedback.
