The specific error reports are as follows:
flutter/lib/ui/ui_ dart_ state.cc(209)] Unhandled Exception: type ‘int’ is not a subtype of type ‘Iterable< dynamic>’
The reason is that I use the get request and the parameters are not spliced after the URL, that is, in this form, XXX?X = 1 & amp; y=2。
But use Map< String, dynamic>? Query a map to place parameters.
Check the source code to find the reason. If the value in query is not of string type, it will be converted to an iterator, and I put it as an int, so the conversion reports an error. The solution is to convert all the values in the query map into strings.
query?.map((key, value) => MapEntry(key, value.toString()))
Read More:
- Solution of adding judgment error in the iterative process of Java iterator iterator
- Unexpected token o in JSON at p
- String operation to delete the character at the specified position
- 12-web security — error injection based on SQL Server — and, convert, cast
- An unable to locate appropriate constructor on class solution appears
- [leetcode] zigzag transformation
- The conversion between [Python] bytes and hex strings.
- Error: required request body is missing, @ requestbody annotation usage
- How to Solve mybatis returns null when querying Oracle database with char type field
- SQL Error: 17059, SQLState: 99999
- C++ foundation — clear/erase/pop of string class_back
- Java lossy conversion
- Conversion between list and string array
- SFINAE of C++ idioms
- No matching editors or conversion strategy found
- Java compareto() method
- Type error: the JSON object must be STR, bytes or byte array, not ‘textiowrapper’
- TypeError: int() can’t convert non-string with explicit base
- Path cannot be used with params in this. $router. Push() method, otherwise params will be invalid
- Router DIO network request: dioerror[ DioErrorType.RESPONSE ]: HTTP status error [400] or [500]