Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any way to update the packages #19

Open
Wooody82 opened this issue Feb 20, 2020 · 2 comments
Open

Any way to update the packages #19

Wooody82 opened this issue Feb 20, 2020 · 2 comments

Comments

@Wooody82
Copy link

Wooody82 commented Feb 20, 2020

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`
@lavahasif
Copy link

did you solve the error

@iamraj25
Copy link

Facing the same error...How to correct it, can anyone help!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants