mtpl_api 0.0.1 copy "mtpl_api: ^0.0.1" to clipboard
mtpl_api: ^0.0.1 copied to clipboard

Flutter package for API call

APIs package lets you call APIs easily to your Flutter app.

Features #

All APIs methods in single package. User just need to add and import the package.

Getting started #

Add the latest version of mtpl_api package to your pubspec.yaml and run dart pub get.

Usage #

Make class for using package and pass required parameter.

class DemoHttpAction {
  static HttpActions httpActions = HttpActions(
      header: {"": ""},
      noInternetPage: const NoInternetScreen(),
      url: "",
      globalContext: navigatorKey.currentContext)
    ..addAuthorizationToken(getToken());
}

Future<Map<String, String>> getToken() {
  return Future.value({
    "":""
  });
  //return Future.value({});
}

Additional information #

APIs package lets you call APIs easily to your Flutter app.

1
likes
90
pub points
0%
popularity

Publisher

unverified uploader

Flutter package for API call

Homepage

Documentation

API reference

License

unknown (license)

Dependencies

connectivity_plus, flutter, freezed_annotation, http

More

Packages that depend on mtpl_api