Skip to content

Commit 5b4f322

Browse files
committed
feat(app): add initialUser parameter to App widget
- Add initialUser parameter to App constructor - Pass initialUser to AppBlocProvider
1 parent 2899871 commit 5b4f322

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/app/view/app.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class App extends StatelessWidget {
3333
required AppEnvironment environment,
3434
required AdService adService,
3535
this.demoDataMigrationService,
36+
this.initialUser,
3637
super.key,
3738
}) : _authenticationRepository = authenticationRepository,
3839
_headlinesRepository = headlinesRepository,
@@ -61,6 +62,7 @@ class App extends StatelessWidget {
6162
final AppEnvironment _environment;
6263
final AdService _adService;
6364
final DemoDataMigrationService? demoDataMigrationService;
65+
final User? initialUser;
6466

6567
@override
6668
Widget build(BuildContext context) {
@@ -89,6 +91,7 @@ class App extends StatelessWidget {
8991
userRepository: context.read<DataRepository<User>>(),
9092
environment: _environment,
9193
demoDataMigrationService: demoDataMigrationService,
94+
initialUser: initialUser,
9295
),
9396
),
9497
BlocProvider(

0 commit comments

Comments
 (0)