Skip to content

soos3d/particle-flutter

 
 

Repository files navigation

Particle Flutter SDKs

Upgrade Guide

If you are using 1.4.x, please review this Upgrade Guide from 1.4.x to 1.5.x

Note For iOS

Please note that the SDK particle_auth_core only supports ios-arm64 (iOS devices), does not support simulators, to perform testing, you will require an actual iPhone device.

Particle Auth Core is a simple self-custodial auth infra for Web3 apps and wallets.

Particle Connect is the best way to onboard any user for your dApp.

Particle Wallet is not an independent wallet—it is a wallet infrastructure plugged into apps or wallets.

Particle AA support Account Abstraction

iOS Cocoapods requires

Specify all pod versions in your Podfile, get the lateset versions from iOS native particle-ios and particle-connect

Getting Started

Auth Doc

Use this package as a library

Depend on it

Run this command:

Import Connect and Wallet SDKs using the same method

Connect Doc

flutter pub add particle_connect
import 'package:particle_connect/particle_connect.dart';

Wallet Doc

flutter pub add particle_wallet
import 'package:particle_wallet/particle_wallet.dart';

AA Doc

flutter pub add particle_aa
import 'package:particle_aa/particle_aa.dart';

Auth Core Doc

Please note that the particle_auth_core supports ios-arm64 (iOS devices). We currently do not support simulators. To perform testing, you will require an actual iPhone device.

flutter pub add particle_auth_core
import 'package:particle_auth_core/particle_auth_core.dart';

Structure Transaction

In particle-auth/example/lib/mock/transaction_mock.dart, We provide several examples that show how to structure transactions, how to read contract and write contract.

Run the Example

  1. Navigate to the particle-connect/example directory.

  2. Get your Project ID, Client Key, and App ID from the Particle Network Dashboard.

  3. Update particle-connect/example/android/app/build.gradle with your credentials:

    manifestPlaceholders["PN_PROJECT_ID"] = "YOUR_PROJECT_ID"
    manifestPlaceholders["PN_PROJECT_CLIENT_KEY"] = "YOUR_CLIENT_KEY"
    manifestPlaceholders["PN_APP_ID"] = "YOUR_APP_ID"
  4. Update particle-connect/example/lib/connect_demo/connect_logic.dart with your credentials:

    const projectId = "YOUR_PROJECT_ID";
    const clientK = "YOUR_CLIENT_KEY";
  5. Once the configuration is complete, run the following command in the particle-connect/example directory:

    flutter run

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 57.9%
  • Kotlin 19.6%
  • Swift 15.6%
  • Java 3.2%
  • Ruby 2.9%
  • Python 0.8%