Future

I want to display the data as list of widgets but I encountered an error Future<dynamic> is not a subtype of Widget. Please also check is my getData() method if it is correct? getData() function: getData() async { final data = await Firestore.instance .collection(‘lisofprods’) .document(‘ac1’).get(); DocumentSnapshot snapshot = data.data[‘name’]; print(snapshot); return ListTile( title: Text(“$snapshot”), );…

Details

AlertDialog – Show soft keyboard with a custom class not working

My issue is that my custom alertdialog class is not displaying the softkeyboard correctly. I am creating it using SettingsDialog settingsDialog = new SettingsDialog(MainActivity.this); settingsDialog.show(); And the softkeyboard is not displaying. I’ve followed other stackoverflow answers to displaying the keyboard … Show soft keyboard for dialog and it works if I do not use a…

Details