[Solved] Error: Too few positional arguments: 1 required, 0 given

You don’t need to specify the parameter label for BottomTabBtn. Instead of: BottomTabBtn(imagePath: “assets/images/tab_home.png”), Use: BottomTabBtn(“assets/images/tab_home.png”), If you really want to use parameter label, then change your constructor declaration to: BottomTabBtn({this.imagePath}); 1 solved Error: Too few positional arguments: 1 required, 0 given

[Solved] How to convert JSON to object in Flutter? [closed]

Maybe, this website is what you’re looking for: https://javiercbk.github.io/json_to_dart/ You simply paste your json (usually the response coming from an API) and it creates a class in dart for that json. so then, you can use it like: MyJsonClass classResponse = MyJsonClass.fromJson(apiResponse); And access its parameters like this: print(classResponse.mon.a) // output: 3 generated code used: … Read more

[Solved] Flutter List UI not updating properly

You are using the wrong list: This: chatDocs[index].documentID, chatDocs[index][‘text’], (chatDocs[index][‘userId’] == futureSnapshot.data.uid) ? true : false, ValueKey(chatDocs[index].documentID)); should reference messages, not chatDocs. Because index is the index into messages. 0 solved Flutter List UI not updating properly