Flutter Setup
Introduction
The Capsule SDK for Flutter allows you to easily integrate secure and scalable wallet functionalities into your mobile applications. This guide covers the installation, setup, and usage of the Capsule SDK, including handling authentication flows.
Prerequisites
A Flutter project.
An API key from the Capsule team. Request an API key.
Basic knowledge of Flutter development.
Installation
Dependency Installation
To install the Capsule SDK and required dependencies, use the following command:
Setup
Follow these steps to properly set up Capsule SDK in your project.
1. Initialize the Capsule SDK
In your Flutter project, import the Capsule package and initialize it in your app.
2. User and Wallet Creation
To handle user and wallet creation, use the following code snippets as a reference.
3. User Login
To handle user login, use the following code snippet:
Examples and Next Steps
While the Flutter SDK does not have the extensive customization options available in the web SDK, you can still effectively integrate and use it in your Flutter applications. We encourage you to explore our example repository for practical implementations and signing solutions:
urlhttps://github.com/capsule-org/flutter-exampleThis example provides a comprehensive guide on how to handle user authentication, wallet creation, and signing messages using the Capsule SDK in a Flutter application. Following this example will help you understand how to integrate Capsule into your project seamlessly.
For more additional integration details, refer to the:
pageβRequired CustomizationLast updated