From 6e3c48b68a0ae9f37372573f130b4120f0829f64 Mon Sep 17 00:00:00 2001 From: Garrit Franke Date: Thu, 11 Feb 2021 15:36:17 +0100 Subject: [PATCH] fix: feed view rerender issue --- lib/main.dart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/main.dart b/lib/main.dart index 48a2dd5..e6fcb50 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -63,12 +63,18 @@ class _MyHomePageState extends State { } @override - Widget build(BuildContext context) { + void initState() { checkConfig().then((success) { if (success) { _initUnreadPosts(); } }); + + super.initState(); + } + + @override + Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text(widget.title), -- 2.45.2