method ‘[]’ can’t be unconditionally invoked because the receiver can be ‘null’ with Firestore

If you are working with null safety in Dart and Flutter then I recommend checking this documentation out which explains various small fixes if you have problems working with null values and null safety. Usually you can just simply use the exclamation mark just before a property to check any other value if it also …

Create a simple Flutter chat app

Let us create a simple Flutter chat app with Dart that uses Firebase to store the chat messages. It is going to be a super simple application. The user shall be able to open the application, set a nickname, choose a chat room, enter it, and send messages to anyone there. As simple as it …