huawei_account 5.0.0 huawei_account: ^5.0.0 copied to clipboard
HUAWEI Account Kit plugin for Flutter.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add huawei_account
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
huawei_account: ^5.0.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:huawei_account/authbutton/huawei_id_auth_button.dart';
import 'package:huawei_account/auth/account.dart';
import 'package:huawei_account/auth/auth_huawei_id.dart';
import 'package:huawei_account/constants/error_codes.dart';
import 'package:huawei_account/helpers/auth_params.dart';
import 'package:huawei_account/helpers/auth_param_helper.dart';
import 'package:huawei_account/helpers/scope.dart';
import 'package:huawei_account/hms_account.dart';