ids_material_sdk 2.8.1
ids_material_sdk: ^2.8.1 copied to clipboard
Networking, Faster APi, Cached APi, Save server cost, IDS Material SDK, IDSMaterialSDK, MultiselectDropDown, DropDown, Custom Button, Networking Services, Theme, Standard TextField, Password Field
example/main.dart
import 'package:ids_material_sdk/ids_api_manager.dart';
import 'package:ids_material_sdk/utilities/ids_helper.dart';
void main() {
var request = {"UserName": "ddd", "Password": "ddd"};
final Future<Map<String, dynamic>> apiResponse = IDSApiManager()
.uploadFormData("http://ids.com/api/v1/login", request,
"local-url-path-of-file", {"Connection": "keep-alive"});
apiResponse.then((response) => {IDSHelper.debugJSON(response)});
/// Example code of networking api. use case is that when api return the array response. use the below sample code snippet in your project, This code snipped is for form data based api.
final Future<List<dynamic>> apiResponse1 =
IDSApiManager().postFormDataInBgArray("http://ids.com/api/v1/login", request, {"Connection":"keep-alive"});
apiResponse1.then((response) => {
IDSHelper.debugJSON(response)
});
}