This is a minimal Flutter starter app demonstrating the base functionality of the PrivySDK for authentication and user management.
- PrivySDK setup and initialization
- Basic email authentication flow
- Cross-platform support (iOS & Android)
- Wallet creation (Solana and Ethereum)
- Signing messages with the wallets
-
Clone the repo:
git clone https://github.com/privy-io/flutter-starter.git cd privy_flutter_starter -
Set up your environment variables: This project uses a
.envfile to manage your Privy App ID and Client ID. Create a file named.envin the root of theprivy_flutter_starterdirectory and add your Privy credentials like this:PRIVY_APP_ID=YOUR_PRIVY_APP_ID PRIVY_CLIENT_ID=YOUR_PRIVY_CLIENT_ID
Replace
YOUR_PRIVY_APP_IDandYOUR_PRIVY_CLIENT_IDwith your actual credentials from the Privy Dashboard. -
Run the app:
flutter run
-
Have fun building with Privy! 🎉