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

Running failed #5

Open
daxdax89 opened this issue Sep 24, 2018 · 5 comments
Open

Running failed #5

daxdax89 opened this issue Sep 24, 2018 · 5 comments

Comments

@daxdax89
Copy link

Running "flutter packages get" in flutter-chat-app...
The current Dart SDK version is 2.1.0-dev.3.1.flutter-760a9690c2.

Because flutter_chat_app depends on firebase_analytics 0.0.4 which requires SDK version >=1.8.0 <2.0.0, version solving failed.
pub get failed (1)

@AureliusPatiens
Copy link

AureliusPatiens commented Sep 28, 2018

Modify the file<pubspec.yaml> as follows:

dependencies:
  flutter:
    sdk: flutter
  image_picker: 0.4.10
  google_sign_in: 3.0.5
  firebase_analytics: 1.0.3
  firebase_auth: 0.5.20
  firebase_database: 1.0.4
  firebase_storage: 1.0.2

and
Modify the file<ChatScreen.dart> as follows:
line 56:

itemBuilder: (_, DataSnapshot messageSnapshot,
    Animation<double> animation,int index) {
  return new ChatMessageListItem(
    messageSnapshot: messageSnapshot,
    animation: animation,
  );
},

line 125:

File imageFile = await ImagePicker.pickImage(source: null);

@Princekap
Copy link

Please I did this but i still get errror

@AureliusPatiens
Copy link

print the error message

@AureliusPatiens
Copy link

@Princekap It's ok,test time: this time

@Shubham-Narkhede
Copy link

new Flexible( child: new FirebaseAnimatedList( query: reference, padding: const EdgeInsets.all(8.0), reverse: true, sort: (a, b) => b.key.compareTo(a.key), //comparing timestamp of messages to check which one would appear first itemBuilder: (_, DataSnapshot messageSnapshot, Animation<double> animation,int index) { return new ChatMessageListItem( messageSnapshot: messageSnapshot, animation: animation, ); }, ), ),

it gives error The constructor returns type 'dynamic' that isn't of expected type 'widget'.

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

4 participants