Para Flutter Example
Explore our complete Flutter application showcasing Para v2 integration:Flutter Example App
What’s Included
The Flutter example demonstrates essential Para v2 features with a focus on clean architecture: 🔐 Authentication Methods:- Email and phone verification with passkeys
- OAuth social login (Google, Apple, Twitter, Discord, Facebook)
- Farcaster authentication
- External wallet connections (MetaMask, Phantom)
- Multi-chain wallet creation (EVM, Solana, Cosmos)
- Session management and persistence
- Wallet import/export functionality
- EVM transaction signing with web3dart
- Solana transaction signing with native SDK
- Cosmos transaction signing with SignDoc
- Message signing across all chains
- Pregenerated wallet handling
- Error handling and retry logic
- Cross-platform passkey and biometric authentication
- Modern app architecture with launch screen
- Deep linking for auth callbacks
- New helper methods (handleLogin, handleSignup)
Code Examples by Feature
Authentication Flow Example
The Flutter example includes a complete authentication implementation:Transaction Signing Examples
Authentication Examples
App Architecture
The example app features a modern architecture:- Launch Screen: Professional splash screen during initialization
- Auth Management: Unified authentication flow using new helper methods
- State Management: Clean separation of concerns
- Deep Link Handling: Proper callback handling for external auth
Getting Started with the Example
Prerequisites
- Flutter SDK: Version 3.1.3 or higher
- Device Setup: iOS simulator or Android emulator with biometric support
- Para API Key: Sign up at developer.getpara.com
Quick Start
Configuration
Update the Para configuration inlib/client/para.dart
:
E2E Testing
The Flutter example includes comprehensive end-to-end tests:- Email and phone authentication flows
- Wallet creation and management
- Transaction signing
- Error handling scenarios