Skip to content

Commit 4f08020

Browse files
feat: version 0.1.1
1 parent bc9b494 commit 4f08020

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
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.

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,25 @@ RaisedButton(
210210
);
211211
```
212212

213-
### Current User
213+
### Current user
214214
Get the current signed-in user:
215215
```dart
216216
context.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
220234
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 {
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(

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Pre-lit Firebase Authentication. Drop in and add Firebase Auth in j
33
repository: https://github.com/funwithflutter/lit_firebase_auth
44
homepage: https://github.com/funwithflutter/lit_firebase_auth
55

6-
version: 0.1.0
6+
version: 0.1.1
77

88
environment:
99
sdk: ">=2.7.0 <3.0.0"

0 commit comments

Comments
 (0)