You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -130,7 +134,7 @@ class MyApp extends StatelessWidget {
130
134
```
131
135
132
136
### Standard Sign-in widget
133
-
You can either create your own custom Sign-in widget, or make use of the standard built in one.
137
+
You can either create your own custom sign-in widget, or make use of the standard built in one.
134
138
To use the standard sign-in form with no changes:
135
139
136
140
```dart
@@ -139,9 +143,9 @@ LitAuth(
139
143
);
140
144
```
141
145
142
-
This will use the default configuration and UI theming. See the section on decoration and theming for customization.
146
+
This will use the default configuration and UI theming. See the section on [decoration and theming](#decoration-and-theming) for customization.
143
147
144
-
**NOTE**: This widget needs to be below a `Scaffold` widget.
148
+
**NOTE**: This widget needs to be a child of a `Scaffold` widget.
145
149
146
150
### Handle auth state changes
147
151
To determine the current auth state, make use of `LitAuthState`:
@@ -213,7 +217,7 @@ context.getSignedInUser()
213
217
## Decoration and theming
214
218
The UI can be as customizable as you need. But for simple usage it's fairly straight forward.
215
219
216
-
It's easy to provide custom decoration/configuration for the sign-in elements. You can either customize the elements of the standard Sign-in widget, or create an entirely custom Sign-in widget from scratch. Up to you.
220
+
It's easy to provide custom decoration/configuration for the sign-in elements. You can either customize the elements of the standard sign-in widget, or create an entirely custom sign-in widget from scratch. Up to you.
217
221
218
222
### Standard Sign-in widget customization
219
223
For example, to override the standard email `InputDecoration` just provide a custom `InputDecoration` for the `emailTextFormField`:
@@ -251,7 +255,7 @@ For now dialog nessage are rendered using the `flushbar` package.
251
255
252
256
For further customization you can directly make use of the Lit Firebase components to build a completely custom sign-in widget.
253
257
254
-
Instead of using the standard `AuthConfig`, set it to custom and provide your custom Sign-in widget:
258
+
Instead of using the standard `AuthConfig`, set it to custom and provide your custom sign-in widget:
0 commit comments