I'm trying to display value of Future<List> with flutter in a text of an alert dialog but I got instance of future<list>. this is my code :
WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
showDialog(
context: context,
barrierColor: Colors.transparent,
builder: (context) {
return AlertDialog(
title: Text(
'Be Careful ${characteristic46?.read()}'),
backgroundColor: Color.fromARGB(45, 231, 148, 54),
alignment: Alignment.topCenter,
);
});
});
Thanks in advance for your help