diff --git a/lib/screens/news.dart b/lib/screens/news.dart index c9ddb2c..572e6f6 100644 --- a/lib/screens/news.dart +++ b/lib/screens/news.dart @@ -20,8 +20,7 @@ class NewsScreenState extends State { @override initState() { super.initState(); - // FIXME: - nextTick(() async { + Future.microtask(() async { // Check if there are unread notification items. // 1 item is enough since count is not displayed for now. var items = await Provider.of(context) diff --git a/lib/utils/utils.dart b/lib/utils/utils.dart index a39ed32..7e7ef7e 100644 --- a/lib/utils/utils.dart +++ b/lib/utils/utils.dart @@ -51,13 +51,6 @@ Color getFontColorByBrightness(Color color) { return showWhite ? Colors.white : Colors.black; } -void nextTick(Function callback, [int milliseconds = 0]) { - // FIXME: - Future.delayed(Duration(milliseconds: 0)).then((_) { - callback(); - }); -} - TextSpan createLinkSpan( BuildContext context, String text,