Browse Source

neon_news: Fix bloc initialization

pull/368/head
jld3103 2 years ago
parent
commit
07eb917f58
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 2
      packages/neon/neon_news/lib/pages/main.dart

2
packages/neon/neon_news/lib/pages/main.dart

@ -16,7 +16,7 @@ class _NewsMainPageState extends State<NewsMainPage> {
@override
void initState() {
super.initState();
final bloc = Provider.of<NewsBloc>(context, listen: false);
bloc = Provider.of<NewsBloc>(context, listen: false);
bloc.errors.listen((final error) {
NeonException.showSnackbar(context, error);

Loading…
Cancel
Save