mm_component 0.0.17 copy "mm_component: ^0.0.17" to clipboard
mm_component: ^0.0.17 copied to clipboard

MM login component plugin project.

mm_component #

MostMoney ашиглан Логин хийх plugin

Getting Started #

Хэрхэн ашиглах вэ?:

  1. Pubspec.yaml дээр plugin аа оруулж "flutter pub get" хийнэ.
  2. Login хуудсан дээрээ import хийнэ. (import 'package:mm_component/mm_component.dart';)
  3. Component нээх button-ы action дээр MmComponent.open() функцыг дуудна.
  4. MostMoney дээр байрлах веб хаягыг тохируулна.
  5. MostMoney дээрхи апп вершионг тохируулна.
  6. failAlertMode хувьсагчид алдаа гарсан тохиолдолд хэрэглэгчид хэрхэн message үзүүлэхээ тохируулна. MmComponent.MODE_ALERT, MmComponent.MODE_TOAST

Жишээ:

/// Шаардлагатай хувьсагчид: mm_url = MM URL; app_version = MM APP VERSION;

/// Component дуудах: await MmComponent.open(operation: MmComponent.KEY_NAVIGATION_LOGIN, version: app_version, url: mm_url, onFail: onFail, onSuccess: onSuccess, onGoto: onGoto, onRedirect: onRedirect);

/// Component-оос буцаж ирсэн хариуг хүлээж авах функцүүд:

void onSuccess(String result) { setState(() { response = "onSuccess: $result"; }); } [ Required ]

void onGoto(String result) { setState(() { response = "onGoto: $result"; }); } [ Required ]

void onFail(String result) { setState(() { response = "onError: $result"; }); } [ Optional ]

void onRedirect(String result) { setState(() { response = "onRedirect: $result"; }); } [ Optional ]

4
likes
85
pub points
50%
popularity

Publisher

unverified uploader

MM login component plugin project.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on mm_component