Firebase Realtime Database Tutorial for Flutter |

Get started with Firebase Realtime Database by building a chat app in Flutter that provides instant updates to connected devices.

This is a companion discussion topic for the original entry at
1 Like

Here is a good follow-up video from the Flutter Firebase team:

Tried to change Map<dynamic, dynamic> to Map<String, String>, but I have got a “red screen” on the emulator.
The dynamic is a requisite for Firebase or for FirebaseAnimatedList ?
Thanks in advance. Best regards!

Answering my own question… the Object returned from snapshot.value can be converted to "map<object?,object?>, but not directly to map<String, String>.
(the error says that object? is not a subtype of string, or the contrary dont remember :smiley: ).
So we have to use dynamic, not to “force” any type.