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
+
1
7
# 0.1.0
2
8
3
9
- 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(
210
210
);
211
211
```
212
212
213
- ### Current User
213
+ ### Current user
214
214
Get the current signed-in user:
215
215
``` dart
216
216
context.getSignedInUser()
217
217
```
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
+ ```
218
232
219
233
## Decoration and theming
220
234
The 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 {
276
290
return Column(
277
291
children: [
278
292
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 .
280
294
// This is used to validate the email and password
281
295
SignInForm(
282
296
formChild: Column(
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ packages:
211
211
path: ".."
212
212
relative: true
213
213
source: path
214
- version: "0.1.0 "
214
+ version: "0.1.1 "
215
215
matcher:
216
216
dependency: transitive
217
217
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
3
3
repository : https://github.com/funwithflutter/lit_firebase_auth
4
4
homepage : https://github.com/funwithflutter/lit_firebase_auth
5
5
6
- version : 0.1.0
6
+ version : 0.1.1
7
7
8
8
environment :
9
9
sdk : " >=2.7.0 <3.0.0"
You can’t perform that action at this time.
0 commit comments