From 07eb917f58fc7b63512490e357315e7f3216fb85 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Wed, 7 Jun 2023 09:59:04 +0200 Subject: [PATCH] neon_news: Fix bloc initialization --- packages/neon/neon_news/lib/pages/main.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/neon/neon_news/lib/pages/main.dart b/packages/neon/neon_news/lib/pages/main.dart index 64e11df1..a28abe62 100644 --- a/packages/neon/neon_news/lib/pages/main.dart +++ b/packages/neon/neon_news/lib/pages/main.dart @@ -16,7 +16,7 @@ class _NewsMainPageState extends State { @override void initState() { super.initState(); - final bloc = Provider.of(context, listen: false); + bloc = Provider.of(context, listen: false); bloc.errors.listen((final error) { NeonException.showSnackbar(context, error);