brix 1.1.1
brix: ^1.1.1 copied to clipboard
Ready-made login, signup, email code, password reset and account logic for Flutter apps. Pure Dart, any backend, any state management.
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"→ 12, epoch →DateTime), 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.