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.
gomakeflutter sdkversion2.16.2^
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=chromeThe following are the Flutter Supported Devices
- android
- ios
- windows
- linux
- lib
- main.dart
- create_message.dart
- vendor
- text.go
- go.mod
- vendor/out (tmp)
- text.a
- text.h
lib - flutter code files
create_message.dart - Golang logic using FFI to Dart
vendor - Golang files as backend
vendor/out - Golang compiled files
MIT.
