singularity_flutter 1.2.1-beta.1 copy "singularity_flutter: ^1.2.1-beta.1" to clipboard
singularity_flutter: ^1.2.1-beta.1 copied to clipboard

outdated

A Flutter plugin for Singularity. It provide easy integration of login and wallet connection.

Flutter wrapper for Singularity SDK #

You can integrate singularity sdk to easy implement login flow and wallet integration

SigularitySDKProtocol #

Implement this protocol to get callbacks

  • onGetSingularityUserInfo This callback you get after successfully login. You will get the login user detail as json string in parameter. You also get user detail anytime from shared preference using SingularityUser as key.
@override
  onGetSingularityUserInfo(String user) {
   
  }

To get user detail from shared preference

final prefs = await SharedPreferences.getInstance();
final String? user = prefs.getString('SingularityUser');
  • onSingularityClose This callback you get when you click on close icon or press back button.
@override
  onSingularityClose() {
   
  }
  • onSingularityLogout This callback you get after successfully logout. It also delete user detail from shared preference.
@override
  onSingularityLogout() {
  
  }

openLoginScreen #

You can call this function to start login flow or can open profile page

key - provide user key as string
singularityConfig - provide configurations details as map
_gamepay.openLoginScreen(key: <your_key>, singularityConfig: {<configuration_details>});

1
likes
0
points
39
downloads

Publisher

verified publisherneobrix.io

Weekly Downloads

A Flutter plugin for Singularity. It provide easy integration of login and wallet connection.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on singularity_flutter