hylid_bridge

Last updated:

0 purchases

hylid_bridge Image
hylid_bridge Images
Add to Cart

Description:

hylid bridge

Hylid Bridge #
Welcome to the hylid_bridge Flutter package! This package serves as a wrapper around the Hylid Bridge, allowing you to call miniapp functions directly from your Flutter applications. It simplifies the process of integrating Hylid functionalities and enhances your development experience.
Features #

Easy integration with Hylid services.
Simple API for calling miniapp functions.
Efficient and lightweight.

Installation #
To start using hylid_bridge in your Flutter project, follow these steps:

Add Dependency
First, add the hylid_bridge dependency to your pubspec.yaml file:

dependencies:
flutter:
sdk: flutter
hylid_bridge: ^0.0.4
copied to clipboard
Run the following command to fetch the new dependency:
flutter pub get
copied to clipboard

Add Script in Web/index.html
you need to include the Hylid Bridge script in your web/index.html file. Add the following script tag within the section:

<script src="https://cdn.marmot-cloud.com/npm/hylid-bridge/2.10.0/index.js"></script>
copied to clipboard
This script enables the Hylid functionalities in your web application.
Usage Examples #
show alert dialog #
alert(
title: 'Alert Title',
content: 'This is the content of the alert.',
buttonText: 'confirm',
success: () {
// do your logic
},
);

copied to clipboard
get auth code #
getAuthCode(
scopes: [""], // list of scopes (check alipay documents)
success: (res) {
// do your logic
}
);

copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.