https://github.com/akshaybabloo/tauri_flutter_template
Tauri v2 and flutter template
https://github.com/akshaybabloo/tauri_flutter_template
flutter tauri tauri2
Last synced: about 2 months ago
JSON representation
Tauri v2 and flutter template
- Host: GitHub
- URL: https://github.com/akshaybabloo/tauri_flutter_template
- Owner: akshaybabloo
- Created: 2024-12-22T01:28:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-02-05T18:34:18.000Z (4 months ago)
- Last Synced: 2026-04-03T19:30:49.080Z (2 months ago)
- Topics: flutter, tauri, tauri2
- Language: Dart
- Homepage:
- Size: 383 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tauri + Flutter Web
This is a simple example of how to use Tauri 2 with Flutter Web.
## Requirements
- [Flutter](https://flutter.dev/docs/get-started/install)
- [Bun](https://bun.sh/)
- [Node.js](https://nodejs.org/en/)
- [Rust](https://www.rust-lang.org/tools/install)
## How to run
1. Clone this repository
2. Run `bun run dev` in the root folder
## How it works
First it runs the Flutter web app in web server mode at `localhost:5000` and then it runs the Tauri app that loads the Flutter web app in a webview.
### Communication
```mermaid
graph TD;
Flutter --> button["#43; button click"] --> js_interop["JS Interop - **invoke('add_one', {'number': _counter})**"] --> tauri["Tauri **add_one(number: &str)** function"] --> js_interop --> Flutter
```
## Few things to note
- The Flutter web app needs to be running in a web server to work properly and you can't hot restart it by pressing `r` in the terminal. You need to stop the Tauri app and run `bun run dev` again.
- Can't seem to attach Flutter devtools to the Flutter web app running in the Tauri app.
- After the first run, the app may not load, right click on the app and click on `reload` - refresh the page.