From 66fef5feb79ff0e9762a2c72e435bf8fe2b266e1 Mon Sep 17 00:00:00 2001 From: Nivethithan <46256177+PrinceIcyflame@users.noreply.github.com> Date: Sun, 23 Aug 2020 23:52:55 +0530 Subject: [PATCH] Update main.dart Fixed the Syntax errors --- lib/main.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 962d262..2a71350 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -117,9 +117,10 @@ class ChatScreenState extends State with TickerProviderStateMixin { NetworkImage image = NetworkImage(imageUrl); image .resolve(createLocalImageConfiguration(context)) - .addListener((_, __) { + .addListener( + ImageStreamListener((ImageInfo image, bool synchronousCall) { animationController?.forward(); - }); + })); } else { animationController?.forward(); }