rpmtw_api_client_flutter 1.0.6+2 icon indicating copy to clipboard operation
rpmtw_api_client_flutter: ^1.0.6+2 copied to clipboard

A new Flutter package project.

RPMTW API Client (Flutter) #

Example #

import 'package:rpmtw_api_client/rpmtw_api_client.dart';

void main() async {
  RPMTWApiClient.init(); // Initialize RPMTW API Client
  RPMTWApiClient apiClient = RPMTWApiClient.lastInstance;
  print(apiClient.baseUrl);
  PasswordValidatedResult result =
      await apiClient.authResource.validPassword("12345"); // Valid password
  print(result.message);
}

Widgets #

User Avatar #

import 'package:rpmtw_api_client/rpmtw_api_client.dart';

User user = User(...);
user.avatar(fontSize: 20) // fontSize defaults to 18