itamadev / golang-flutter-app-ffi

A Flutter app with Golang as a backend using FFI to bind and communicate between them
MIT License
20 stars 4 forks source link
application dart example ffi flutter flutter-apps flutter3 fullstack go golang hacktoberfest

Golang Flutter App FFI

This repo demonstrates a very simple Flutter app with Golang used as backend lanugage, communicating using FFI (Foreign Function Interface), the app is a very simple note taking app that currently allows you to whip up a message and save it into a message.txt file.

Example

Example

Prerequisites

Usage

Try it out:

$ make run

# Overrite FLUTTER_DEVICE to change the flutter device build option
# WARNNING: may not work with certain devices
$ make run FLUTTER_DEVICE=chrome

Tested Devices

The following are the Flutter Supported Devices

Mobile

Desktop

Project Structure

lib - flutter code files

create_message.dart - Golang logic using FFI to Dart

vendor - Golang files as backend

vendor/out - Golang compiled files

License

MIT.