Skip to content

Commit d4bfbbe

Browse files
Peter Gordon HayesPeter Gordon Hayes
authored andcommitted
feat: v0.2.3
1 parent 121c5f8 commit d4bfbbe

File tree

4 files changed

+31
-2
lines changed

4 files changed

+31
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.2.3
2+
3+
- feat: expose `LitAuthIcon` to directly use the OAuth icons (`Images`) provided by the package (Google, Apple, Twitter, Github)
4+
15
# 0.2.2
26

37
- feat: add `context.watchSignedInUser()` method to watch the `User` object for changes in sign-in state.

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,31 @@ This will reset the form to it's initial state.
427427

428428
It's a good idea to do this when you have multiple `EmailTextFormField` and `PasswordTextFormField` widgets in seperate locations, for example when you have a separate Sign-in form and a Registration form.
429429

430+
### Icons
431+
432+
It's possible to use the OAuth icons provided by the package. For example:
433+
434+
```dart
435+
class Icons extends StatelessWidget {
436+
const Icons({Key key}) : super(key: key);
437+
438+
@override
439+
Widget build(BuildContext context) {
440+
return Column(
441+
children: [
442+
LitAuthIcon.google(),
443+
LitAuthIcon.appleBlack(),
444+
LitAuthIcon.appleWhite(),
445+
LitAuthIcon.github(),
446+
LitAuthIcon.twitter(),
447+
],
448+
);
449+
}
450+
}
451+
```
452+
453+
This will display a column of icons (images).
454+
430455
## Planned features
431456

432457

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ packages:
225225
path: ".."
226226
relative: true
227227
source: path
228-
version: "0.2.2"
228+
version: "0.2.3"
229229
matcher:
230230
dependency: transitive
231231
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.2.2
6+
version: 0.2.3
77

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

0 commit comments

Comments
 (0)