Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
New post on /r/flutterdev subreddit:

How to access golang methods in Flutter for desktop (macOS) app?
I have been trying to write a Flutter desktop app which can communicate with golang methods.​Go file:
package main import "C" import "fmt" func PrintHello() { fmt.Print("Hello,World") } func main() {} 
Dart Code:
import 'dart:ffi' as ffi; typedef PrintHello_func = ffi.Void Function(); typedef PrintHello = void Function(); void ffi_test(List<String> arguments) { var path = '/path/to/libhello_ffi.dylib'; final ffi.DynamicLibrary dylib = ffi.DynamicLibrary.open(path); final PrintHello hello = dylib .lookup<ffi.NativeFunction<PrintHello_func>>('PrintHello') .asFunction(); hello(); } 
The execution of the above Flutter code fails with an error:
The following ArgumentError was thrown while handling a gesture: Invalid argument(s): Failed to load dynamic library (dlopen(/path/to/libhello_ffi.dylib, 1): no suitable image found. Did find: file system sandbox blocked open() of '/path/to/libhello_ffi.dylib') 
But it works just fine if I execute the dart directly instead of `flutter run`.​I even tried to create a separate FFI package but unfortunately it failed as well.FFI package name: /my_app/packages/libhello_ffiI placed the `libhello_ffi.dylib` file under /my_app/packages/libhello_ffi/macos directory​Flutter code:
import 'dart:ffi'; import 'dart:io'; final DynamicLibrary _dl = _open(); DynamicLibrary _open() { if (Platform.isMacOS) return DynamicLibrary.executable(); throw UnsupportedError('This platform is not supported.'); } typedef sayhello_C = Void Function(); typedef sayhello_Dart = void Function(); void sayhello() { _dl.lookup<NativeFunction<sayhello_C>>('PrintHello') .asFunction(); } 
​Error:
The following ArgumentError was thrown while handling a gesture: Invalid argument(s): Failed to lookup symbol (dlsym(RTLD_DEFAULT, PrintHello): symbol not found) When the exception was thrown, this was the stack: #0 DynamicLibrary.lookup (dart:ffi-patch/ffi_dynamic_library_patch.dart:31:29) #1 sayhello (package:libhello_ffi/ffi.dart:17:7) #2 LibhelloFfi.sayhello (package:libhello_ffi/libhello_ffi.dart:5:12) #3 ffi_test (package:squash_archiver/features/home/ui/widgets/ffi_test.dart:10:13) #4 _HomeScreenState._buildTestFfi.<anonymous closure> (package:squash_archiver/features/home/ui/pages/home_screen.dart:73:13) #5 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:992:19) #6 _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:1098:38) 
​​There isn't any proper article on the Go and Flutter for Desktop integration available online.Any help will be appreciated.​

July 21, 2020 at 01:47PM by ganeshrnet
https://ift.tt/2OHw3Ey
New post on /r/flutterdev subreddit:

App Feedback Thread - July 21, 2020
This thread is for getting feedback on your own apps.Developers:must provide feedback for othersmust include Play Store, App Store, GitHub, GitLab, or BitBucket linkmust make top level commentmust make effort to respond to questions and feedback from commentersmay be open or closed sourceCommenters:must give constructive feedback in replies to top level commentsmust not include links to other appsTo cut down on spam, accounts who are too young or do not have enough karma to post will be removed. Please make an effort to contribute to the community before asking for feedback.As always, the mod team is only a small group of people, and we rely on the readers to help us maintain this subreddit. Please report any rule breakers. Thank you.- r/FlutterDev Mods

July 21, 2020 at 02:33PM by AutoModerator
https://ift.tt/30DX29Y
New post on /r/flutterdev subreddit:

I have just published the trailer for "HowFa" Instant Messaging app on youtube. Fully featured messaging app with group-chat features. I will publish the source-code on GitHub very soon.
https://www.youtube.com/watch?v=cP5DuEqPOWo

July 21, 2020 at 02:19PM by olusola_olaoye
https://ift.tt/2OFOnxY
New post on Flutter Dev Google group:

What are the limitations of Flutter when developing and deploying an app that uses an ML model?
Hi, I am new to App development and currently exploring methods to develop apps (primarily Android) that use a Machine Learning Model (preferably __TensorFlow Lite__ ones). I know that Android Studio has a larger community but would like to go for `Dart` instead of `Java`; both languages are

July 21, 2020 at 02:21PM by Prashant Dandriyal
https://ift.tt/3jpmWXf
New post on /r/flutterdev subreddit:

4 Types Of ListView In Flutter You Should Know
https://ift.tt/2OFXq1U

July 21, 2020 at 03:23PM by pinkeshdarji
https://ift.tt/32ErbbJ
New post on /r/flutterdev subreddit:

pure_firestore: Pure dart firestore client for testing with firestore emulator
https://github.com/kdy1/pure_firestore​See test for usage: https://github.com/kdy1/pure_firestore/blob/master/test/firestore_test.dart

July 21, 2020 at 04:00PM by kdy1997
https://ift.tt/3eS55Vw
New post on Flutter Dev Google group:

How to change drawer header color
hello guys, I want to change the drawer top status bar color. Thank you.

July 21, 2020 at 04:52PM by Gulam Fahad Ahmed
https://ift.tt/2OIIqR5
New post on /r/flutterdev subreddit:

SHOULD I LEARN FLUTTER OR KOTLIN/IOS FOR APP DEVELOPMENT. i am a web developer who wants to learn flutter mainly for adding skill to my cv also to make good apps solo. i have 0 knowledge of android and ios development however i have worked on java, spring , angular, typescript etc .
If yes to flutter when building app will i need to write Android/iOS specific code frequently for native functionalities? Also if anybody recommending KOTLIN/Swift can u please a short course for strong android/swift basics.

July 21, 2020 at 06:16PM by Mangy16
https://ift.tt/32GfNfu
New tweet from FlutterDev:

We LOVE seeing you complete the @CodePen challenges each week.

These #FlutterPen designs are so inspiring, keep up the good work. 💙 https://t.co/XbGVKb3XXl— Flutter (@FlutterDev) July 21, 2020

July 21, 2020 at 06:48PM
http://twitter.com/FlutterDev/status/1285617667878133762
New post on Flutter Dev Google group:

What is Flutter?
Hello, I’m new in flutter development Basically I’m a Web Developer and I also want be a App Developer for both Android and IOS, but I don’t know how to start and both Android and IOS development takes time and very hard to manage, and then I so Flutter , please anyone can help me how to start...

July 21, 2020 at 06:22PM by Arijit Mondal
https://ift.tt/39hzyet
New post on Flutter Dev Google group:

Flutter : Error: Could not find the correct Provider
am trying to call a Page from a home page navigation drawer, but getting the above error regarding providers where I am passing a bloc to update the page in a stream builder. Below is the code for calling the page: Navigator.push(context, PageRoutes(page: NotificationPage())); And in the

July 21, 2020 at 06:52PM by Sourav Roy
https://ift.tt/2CUjGT4
New post on Flutter Dev Google group:

Flutter Project
flutter Application must extends android.app.application this error i am getting while uploading my project files to GitHub please guys help me As soon As Possible.What can i DO now?

July 21, 2020 at 07:13PM by Pratik Hire
https://ift.tt/3eQ5Kqm
New post on Flutter Dev Google group:

1.20.0-7.2.pre released to beta.
Hi all, I’m happy to announce that Flutter 1.20 is now available on the beta channel: 1.20.0-7.2.pre
New post on Flutter Dev Google group:

help with a test code
I went through with the Codelabs examples: https://ift.tt/32KnZI6. Then I copied the code into a local new project with main.dart as: // import 'dart:async'; import 'package:flutter/material.dart'; // import 'package:flutter_test/flutter_test.dart'; void main() {

July 21, 2020 at 08:04PM by K leo
https://ift.tt/2WHazw9