flutter-chat-app icon indicating copy to clipboard operation
flutter-chat-app copied to clipboard

Running failed

Open daxdax89 opened this issue 6 years ago • 5 comments

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)

daxdax89 avatar Sep 24 '18 18:09 daxdax89

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);

AureliusPatiens avatar Sep 28 '18 03:09 AureliusPatiens

Please I did this but i still get errror

Princekap avatar Mar 08 '19 00:03 Princekap

print the error message

AureliusPatiens avatar Mar 08 '19 01:03 AureliusPatiens

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

AureliusPatiens avatar Mar 08 '19 04:03 AureliusPatiens

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'.

Shubham-Narkhede avatar Oct 02 '19 17:10 Shubham-Narkhede