Hi,
I have updated the packages to the latest version but its seems the app broken.. any way to fix that?
`Compiler message: lib/ChatScreen.dart:56:32: Error: The argument type 'ChatMessageListItem Function(BuildContext, DataSnapshot, Animation)' can't be assigned to the parameter type 'Widget Function(BuildContext, DataSnapshot, Animation, int)'.
'ChatMessageListItem' is from 'package:flutter_chat_app/ChatMessageListItem.dart' ('lib/ChatMessageListItem.dart').
'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../../flutter/packages/flutter/lib/src/widgets/framework.dart').
'DataSnapshot' is from 'package:firebase_database/firebase_database.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_database-3.1.1/lib/firebase_database.dart').
'Animation' is from 'package:flutter/src/animation/animation.dart' ('../../flutter/packages/flutter/lib/src/animation/animation.dart').
'Widget' is from 'package:flutter/src/widgets/framework.dart' ('../../flutter/packages/flutter/lib/src/widgets/framework.dart').
itemBuilder: (_, DataSnapshot messageSnapshot, ^ lib/ChatScreen.dart:133:59: Error: The getter 'future' isn't defined for the class 'StorageUploadTask'. - 'StorageUploadTask' is from 'package:firebase_storage/firebase_storage.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-3.1.1/lib/firebase_storage.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'future'. Uri downloadUrl = (await uploadTask.future).downloadUrl; ^^^^^^ lib/ChatScreen.dart:199:18: Error: The method 'signInWithGoogle' isn't defined for the class 'FirebaseAuth'.
'FirebaseAuth' is from 'package:firebase_auth/firebase_auth.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.15.4/lib/firebase_auth.dart').
Try correcting the name to the name of an existing method, or defining a method named 'signInWithGoogle'. await auth.signInWithGoogle( ^^^^^^^^^^^^^^^^ Target kernel_snapshot failed: Exception: Errors during snapshot creation: null build failed. FAILURE: Build failed with an exception. Where: Script '/Users/Mohammed/Development/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 817 What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'. > Process 'command '/Users/Mohammed/Development/flutter/bin/flutter'' finished with non-zero exit value 1
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org BUILD FAILED in 2m 59s Running Gradle task 'assembleDebug'... Running Gradle task 'assembleDebug'... Done 180.9s (!)
Gradle task assembleDebug failed with exit code 1`
Hi, I have updated the packages to the latest version but its seems the app broken.. any way to fix that?
`Compiler message: lib/ChatScreen.dart:56:32: Error: The argument type 'ChatMessageListItem Function(BuildContext, DataSnapshot, Animation)' can't be assigned to the parameter type 'Widget Function(BuildContext, DataSnapshot, Animation, int)'.