File tree Expand file tree Collapse file tree 4 files changed +24
-4
lines changed Expand file tree Collapse file tree 4 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 1+ # 0.1.1
2+
3+ - feat: add ` isSubmitting() ` extension to ` BuildContext ` . To determine if an authentication request is currently active
4+ - fix: ensure ` ButtonConfig ` attributes are applied to the sign-in and register buttons.
5+ - docs: various documentation updates
6+
17# 0.1.0
28
39- BREAKING: logic related to ` LitAuth ` and ` AuthConfig ` to manage sign-in customization.
Original file line number Diff line number Diff line change @@ -210,11 +210,25 @@ RaisedButton(
210210);
211211```
212212
213- ### Current User
213+ ### Current user
214214Get the current signed-in user:
215215``` dart
216216context.getSignedInUser()
217217```
218+ ### Determine if submitting is active
219+ Wether Lit Firebase is currently attempting to authenticate. Can be used to show a loading indicator.
220+
221+ Should only be used in the build method. For example:
222+
223+ ``` dart
224+ Widget build(BuildContext context) {
225+ final isSubmitting = context.isSubmitting();
226+ return Visibility(
227+ visible: isSubmitting,
228+ child: CircularProgressIndicator(),
229+ );
230+ }
231+ ```
218232
219233## Decoration and theming
220234The UI can be as customizable as you need. But for simple usage it's fairly straight forward.
@@ -276,7 +290,7 @@ class YourCustomSignInWidget extends StatelessWidget {
276290 return Column(
277291 children: [
278292 Text('Welcome', style: Theme.of(context).textTheme.headline4),
279- // You need to wrap the custom sign-in widgets with a SignIn form .
293+ // You need to wrap the custom sign-in widgets with a SignInForm .
280294 // This is used to validate the email and password
281295 SignInForm(
282296 formChild: Column(
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ packages:
211211 path: ".."
212212 relative: true
213213 source: path
214- version: "0.1.0 "
214+ version: "0.1.1 "
215215 matcher:
216216 dependency: transitive
217217 description:
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ description: Pre-lit Firebase Authentication. Drop in and add Firebase Auth in j
33repository : https://github.com/funwithflutter/lit_firebase_auth
44homepage : https://github.com/funwithflutter/lit_firebase_auth
55
6- version : 0.1.0
6+ version : 0.1.1
77
88environment :
99 sdk : " >=2.7.0 <3.0.0"
You can’t perform that action at this time.
0 commit comments