docs(authentication): update example with multiple data sources
This commit is contained in:
@@ -34,6 +34,9 @@ class App extends StatelessWidget {
|
||||
AuthenticationRepositoryImpl(
|
||||
authenticationRemoteDataSource:
|
||||
getIt<AuthenticationRemoteDataSource<int>>(),
|
||||
authenticationSessionDataSource:
|
||||
getIt<AuthenticationSessionDataSource<int>>(),
|
||||
authenticationCacheDataSource: getIt<AuthenticationCacheDataSource<int>>(),
|
||||
customPasswordValidator: const CustomPassword.pure(),
|
||||
extraSignUpInputs: [
|
||||
FormInput(
|
||||
|
||||
+2
-1
@@ -45,7 +45,8 @@ class SubPage extends StatelessWidget {
|
||||
children: [
|
||||
const Text('Another page'),
|
||||
ElevatedButton(
|
||||
onPressed: () => context.read<AuthenticationCubit<int>>().delete(),
|
||||
onPressed: () =>
|
||||
context.read<AuthenticationCubit<int>>().delete(),
|
||||
child: const Text('Delete account'),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user