Skip to main content
Reown Docs

Migration from Web3Modal to AppKit for Flutter

2 min read

Upgrade from Web3Modal to Reown AppKit for Flutter#

This document outlines the steps to migrate from the old web3modal_flutter package to the new reown_appkit packages in your Flutter project.

Step 1. Replace the corresponding dependency#

Remove web3modal_flutter dependency from pubspec.yaml and add reown_appkit:

Run flutter clean && flutter pub get after replacing the packages

Then replace the imports...

<Table> — not implemented in this renderer

Step 3. Update the main service class#

<Table> — not implemented in this renderer

See more about how to initialize on Initialization section

Step 4. Update main buttons#

<Table> — not implemented in this renderer

Step 5. Networks presets#

The way we used to manipulate the network presets has changed

<Table> — not implemented in this renderer

See more on Custom networks section

Step 4. Update your Components usage#

Update your web3app instance within the service:

If you use to subscribe to web3App events you should now change it to appKit. Example:

Same for anything related to _w3mService.web3App!...

Step 5. Update any exception type#

<Table> — not implemented in this renderer

Final notes#

  • Ensure that you have updated all relevant configurations and imports in your project to reflect the changes from Web3Modal to AppKit.
  • Test your application thoroughly to ensure that the migration has been successful and that all functionality is working as expected.
  • Check our AppKit example for Flutter to compare with your implementation in case you are having issues