Skip to content

Commit

Permalink
docs: add missing step for .env file in mobile wallet tutorial (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptisserand authored Dec 28, 2024
1 parent c1fa332 commit e1672c5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/examples/mobile-wallet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ In this tutorial we will build a mobile wallet app.

1. Create a new flutter project

```
```bash
flutter create wallet_app
```

Run it locally with `flutter run` to make sure it is properly configured.

2. Install and run [`starknet-devnet`](https://0xspaceshard.github.io/starknet-devnet-rs/docs/running/install)

3. Add necessary dependnecies
3. Add necessary dependencies

```bash
flutter pub add wallet_kit hive_flutter hooks_riverpod flutter_dotenv
Expand All @@ -29,6 +29,12 @@ RPC="http://127.0.0.1:5050/rpc"

> If you are building for Android, use `RPC="http://10.0.2.2:5050/rpc"` instead.
5. Add `.env` file in your `pubspec.yaml`
```yaml
assets:
- .env
```
## Let's write some code
Let's start with a simple `main` function in your 'main.dart' file.
Expand Down

0 comments on commit e1672c5

Please sign in to comment.