Skip to content

Commit

Permalink
[CastIt.Android] Avoid rebuilding the whole playlists and files ui.
Browse files Browse the repository at this point in the history
Minor improvements
  • Loading branch information
Wolfteam committed Jul 3, 2021
1 parent 8417a95 commit 5ecc728
Show file tree
Hide file tree
Showing 11 changed files with 505 additions and 384 deletions.
8 changes: 8 additions & 0 deletions CastIt.Android/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ class MyApp extends StatelessWidget {
final settingsBloc = ctx.read<SettingsBloc>();
return IntroBloc(settings, settingsBloc);
}),
BlocProvider(create: (ctx) {
final serverWsBloc = ctx.read<ServerWsBloc>();
return PlayedPlayListItemBloc(serverWsBloc);
}),
BlocProvider(create: (ctx) {
final serverWsBloc = ctx.read<ServerWsBloc>();
return PlayedFileItemBloc(serverWsBloc);
}),
],
child: BlocBuilder<MainBloc, MainState>(
builder: (ctx, state) => _buildApp(state),
Expand Down
Loading

0 comments on commit 5ecc728

Please sign in to comment.