How can I get a single entry from a map to give it to the widget in Flutter?
For an example:
Map<String, String> text = {
"text1" : "Text 1",
"text2" : "Text 2"
}
home: Center(
child: Text(text["text1"])
)
This shows error. I can't access the key of the map.