Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Mar 23 11:14
    tripleo1 commented #154
  • Mar 17 03:50
    agavrel opened #154
  • Mar 13 01:08
    apriori commented #147
  • Mar 13 01:07
    apriori commented #147
  • Feb 24 21:50
    jwinarske commented #150
  • Feb 24 21:32
    jwinarske commented #150
  • Feb 24 18:50
    jwinarske commented #150
  • Feb 12 20:52
    MGlolenstine commented #151
  • Feb 12 19:33
    MGlolenstine opened #151
  • Feb 09 01:32
    flukejones opened #150
  • Dec 02 2020 03:07
    schizobulia commented #136
  • Nov 27 2020 12:47
    dvc94ch closed #122
  • Nov 16 2020 12:58
    zhuxiujia commented #148
  • Nov 15 2020 09:21
    klata82 commented #148
  • Nov 05 2020 15:50
    zhuxiujia opened #148
  • Oct 28 2020 17:54
    csongorkeller commented #84
  • Oct 02 2020 19:16
    zink-chimaera commented #143
  • Sep 03 2020 06:59
    actuday6418 opened #147
  • Aug 13 2020 19:26

    csnewman on master

    Switch to discord (compare)

  • Jul 29 2020 05:22
    hustxiaoc edited #146
Chandler Newman
@csnewman
Actually yeah, I'm going to need to. The pointer logic is more complex that it seems, such as multiple buttons being pressed on the mouse has to be handled in a certain way etc
Luke Jones
@ljcode_gitlab
I'm having a little trouble understanding the goal here. Is flutter-rs a binding to dart over ffi, but which also runs the dart/flutter vm?
And, where on earth do I find documentation?
Chandler Newman
@csnewman
Flutter-rs is a platform embedder for flutter, so it allows you to embed a flutter engine/application inside your rust program.
So, your rust program starts, and calls to start the flutter engine, where you can then define platform channels etc. It's similar to the android embedder, or the cpp embedder in the official flutter
Documentation heavily depends upon your use case, what are you trying to achieve? Creating a desktop app? Or embedding flutter somewhere low level
Chandler Newman
@csnewman
@ljcode_gitlab
Luke Jones
@ljcode_gitlab
@csnewman Currently making a production app for Android and iOS. Some things in dart are quite slow or just plain bloody unreliable hence why I'm looking at options
Jasper
@jbg
great work guys, this project is exciting as hell
checked out the template and tried to cargo flutter run but i'm under Wayland and FlutterWindow::new() returns Err(XcbConn(Connection)). any ideas? any other devs using it on wayland?
had a poke around flutter-winit and couldn't see any X-specific stuff at a first glance
Chandler Newman
@csnewman
@ljcode_gitlab If you are just trying to add rust to an existing iOS/android app, then https://robertohuertas.com/2019/10/27/rust-for-android-ios-flutter/ is probably the best bet. Then, you wouldn't have to rewrite your java/swift plugins/logic. If you want to use rust on desktop with flutter, then you will need this project (and you may want to consider moving all platforms to this project)
@jbg Thanks! Hmm, most of the devs are under Wayland afaik. Could you describe your system setup? And also give the output of env
Chandler Newman
@csnewman
We have been finding quite a few bugs in one of our upstream deps, winit, as a temporary measure, I'm thinking I'll reintroduce the glfw support, as that was very stable
Jasper
@jbg
reasonably simple setup i think. i'm using sway & i don't have xwayland installed
maybe if most of the devs have xwayland installed they might not have noticed if something had broken with wayland support?
if it's just using X instead
j4qfrost
@j4qfrost
had the example app crash on me recently too, probably because i was on the latest build of the flutter tools, didnt bother checking
Jasper
@jbg
don't think this is related to the flutter tools, it's trying to set up the window using X11 which is failing since there is no X server. seems glutin/winit related
i noticed that I had DISPLAY=:0 set even though no X server running. unsetting that changes the error to Err(XcbConn(ClosedParseErr))
Jasper
@jbg
i have a suspicion it might be to do with the clipboard integration
flutter-winit/src/handler.rs unconditionally uses copypasta::ClipboardContext which is just an alias for copypasta::x11_clipboard::X11ClipboardContext
so even if it's using a wayland backend, it still tries to access the x11 clipboard
Jasper
@jbg
confirmed the above, if i change it to use WaylandClipboardContext it works fine. so i guess everyone using it on wayland has xwayland running and it's using that clipboard
Jasper
@jbg
Chandler Newman
@csnewman
Hmmm, adding back the GLFW frontend would also solve this issue as the clipboard is already handled for us
Thanks for looking into this @jbg !
Jasper
@jbg
no problem!
Chandler Newman
@csnewman
@dvc94ch Looks like we need to change the way releases are done, softprops/action-gh-release#42 It doesn't seem possible to upload assets from different jobs now, so each platform will have to be its own release
jld3103
@jld3103
Could that be fixed soon?
David Craven
@dvc94ch
My funding for flutter-rs has been discontinued, currently working on a protocol labs grant to work on rust-ipfs.
Chandler Newman
@csnewman
@jld3103 The original problem seems to have been fixed. However, we are now hitting the harddrive size limits for github actions, I've contacted GH to see if there is anything we can do.
Chandler Newman
@csnewman
I've managed to track down the poor performance issues, they were being caused by the render_task_runner, with this unset (we can implement a proper runner at some point), we now have equal performance to the other platforms. This should improve video playback and the likes
Miguel de Icaza
@migueldeicaza
Hello friends
I just discovered flutter-rs
And I was looking at the template project, but it looks like rather than Rust, all the tasty bits are in Dart still
I thought the intention of this project was to surface Flutter to Rust, or did I get that wrong?
Miguel de Icaza
@migueldeicaza
Odd, I got some sort of notification that someone messaged me, and when I click nothing happens
So if you were messaging me, I am not getting it :-(
Chandler Newman
@csnewman
Hi @migueldeicaza, Not sure how much you know about flutter already, however if you say what you're trying to achieve I can advise you whats best
But generall, this project is around embedding flutter into a rust application. So, you rust program is in charge of creating the window for example, and flutter just renders inside of it.
You can consider flutter as any other rendering library, however all your UI logic is in dart
Now, its up to you where most of your complex business logic goes, but you can send messages back and forth between flutter and your rust code (through channels)
Generally, you'd place all the logic you possibly can inside dart, and then you'd call back to rust for low level system operations or calling rust library, as this allows you to have one code base that works cross platform (I.e. you only need to implement that low level call for each platform, such as android, ios and desktop, instead of your entire UI )
The template code is a little bit outdated, there are some fast moving changes happening at the moment
Chandler Newman
@csnewman
The weird notification is a fun bug the gitter client, when maximising/minimising the client.
淘小杰
@hustxiaoc
[ERROR:flutter/shell/common/shell.cc(209)] Dart Error: Can't load Kernel binary: Invalid kernel binary format version. [ERROR:flutter/shell/common/engine.cc(205)] Could not prepare to run the isolate. [ERROR:flutter/shell/common/engine.cc(144)] Engine not prepare and launch isolate. [ERROR:flutter/shell/common/shell.cc(481)] Could not launch engine with configuration. flutter: Observatory listening on http://127.0.0.1:56187/bYBrq0w0u7U=/
Did anyone encounter this issue?
Dreamcat4
@dreamcat4_gitlab
Chandler Newman
@csnewman
I have now switched to Discord: https://discord.gg/WwdAE6p