skip to Main Content

Woocommerce – Invalid radix-10 number (at character 1) in flutter

I got this error: Unhandled Exception: FormatException: Invalid radix-10 number (at character 1) Future<List<banner>> getBannerPictures() async { var url = Uri.http('https://woocommerce-811161-3604078.cloudwaysapps.com/wp-json/api/v1/get-home-page'); final response = await http.get(url); print(response.body.toString()); List<banner> photos = []; List<dynamic> data = jsonDecode(response.body.toString()); print(data.toString()); for(var i =0; i<data.length;…

VIEW QUESTION

Size of text in Flutter

I need the texts to always be the same size regardless of the device settings. I have tried using these codes but without success: in the Widget Text: fontSize: 20 * MediaQuery.textScaleFactorOf(context) fontSize: 20 * MediaQuery.of(context).textScaleFactor textScaleFactor or: MediaQueryData =…

VIEW QUESTION
Back To Top
Search