'How do I display the data in flutter app?
Temperature=37 , humidity = 60 //data from api
String read =
"humblehacks.xyz/Server.php?patient=Yassen%20Mohamed&request=REQUEST_DATA_DAWNLOAD";
http.Response jread = await http.get(Uri.parse(read));
if (jread.statusCode == 200) {
var body = jread.body;
I am using api to get data , but not by json or xml just string , How do I show the data , I can't use Jsondecode because ABI is not Json i want to display 37 and 60 in app , how can i display it I want full code
Solution 1:[1]
Output widgets like text should suffice
Text(37.toString()), // Simple value
Text("Temperature $val"), //String and variable
Text("Temperature ${temp.val}"),//String and map item
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | nibukdk93 |
