Steps to Reproduce
import 'dart:async';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/material.dart';
import './Screens/home.dart';
Future query() async {
DocumentSnapshot result = await Firestore.instance.collection('dummydocs').document("doc1").get();
print("RESULT: " + result.data.toString());
}
void main() {
query();
runApp(new MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Demo',
home: new Home(title:"Nothing Special"),
);
}
}
Logs
03-01 00:24:42.975 7906-7926/com.project E/flutter: [ERROR:topaz/lib/tonic/logging/dart_error.cc(16)] Unhandled exception:
type '_InternalLinkedHashMap' is not a subtype of type 'Map<String, dynamic>' where
_InternalLinkedHashMap is from dart:collection
Map is from dart:core
String is from dart:core
#0 DocumentReference.get (file:///home/tarcisio/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.2.9/lib/src/document_reference.dart)
<asynchronous suspension>
#1 query (file:///home/tarcisio/AndroidStudioProjects/test_flutter/lib/main.dart:10:87)
<asynchronous suspension>
#2 main (file:///home/tarcisio/AndroidStudioProjects/test_flutter/lib/main.dart:15:3)
#3 _startIsolate.<anonymous closure> (dart:isolate/isolate_patch.dart:279:19)
#4 _RawReceivePortImpl._handleMessage (dart:isolate/isolate_patch.dart:165:12)
Run flutter analyze and attach any output of that command also.
Flutter Doctor
-> No Issues found!
Steps to Reproduce
Logs
Run
flutter analyzeand attach any output of that command also.Flutter Doctor
-> No Issues found!