Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 15:19
    pchampio commented #458
  • 15:19
    pchampio commented #458
  • 15:04
    jld3103 commented #178
  • 13:56
    GeertJohan opened #178
  • 13:56

    GeertJohan on leaner-flutterbuilder

    WIP: leaner flutterbuilder cont… (compare)

  • Nov 22 16:00
    dewmal commented #527
  • Nov 21 14:49
    jld3103 commented #126
  • Nov 21 14:46

    jld3103 on aot-cross-compilation

    (compare)

  • Nov 21 14:46

    jld3103 on master

    Add AOT cross-compilation Merge pull request #177 from go… (compare)

  • Nov 21 14:46
    jld3103 closed #177
  • Nov 21 14:46
    jld3103 closed #526
  • Nov 21 14:45

    jld3103 on fix-high-dpi

    (compare)

  • Nov 21 14:45

    jld3103 on master

    Fix darwin-bundle high DPI Merge pull request #173 from go… (compare)

  • Nov 21 14:45
    jld3103 closed #173
  • Nov 21 14:45
    jld3103 commented #175
  • Nov 21 14:05
    GeertJohan commented #175
  • Nov 20 14:36
    jlcool commented #541
  • Nov 20 14:08
    pchampio commented #541
  • Nov 20 14:07
    pchampio commented #541
  • Nov 20 14:05
    pchampio closed #541
rayman
@RayMeibergen_twitter
hi!
does anyone handle with display resolution?
if we run application with 4K display it's too small...
matrixbot
@matrixbot

pchampio | Drakirus > <@gitter_raymeibergen_twitter:matrix.org> hi!

does anyone handle with display resolution?
if we run application with 4K display it's too small...

Does hover run -b '@fix/contentscale' fixes this issue ?
And what's is your OS?

rayman
@RayMeibergen_twitter
thanks for reply!
my OS is darwin and windows!
I will try with hover run -b '@fix/contentscale' !
rayman
@RayMeibergen_twitter
image.png
hi again!
I was trying to put images on windows and if i load the image, it's blank...
does anyone have this problem?
  return Center(
    child: Image(image: AssetImage('go/assets/test.jpg'))
  );

I also tried with network image. but it's same.

Image.network("https://switch-box.net/wp-content/uploads/2012/11/free-soft-caesium-image-compression-01.jpg")

rayman
@RayMeibergen_twitter
@override
Widget build(BuildContext context) {
// This method is rerun every time setState is called, for instance as done
// by the _incrementCounter method above.
//
// The Flutter framework has been optimized to make rerunning build methods
// fast, so that you can just rebuild anything that needs updating rather
// than having to individually change instances of widgets.
return Scaffold(
appBar: AppBar(
// Here we take the value from the MyHomePage object that was created by
// the App.build method, and use it to set our appbar title.
title: Text(widget.title),
),
body: Center(
// Center is a layout widget. It takes a single child and positions it
// in the middle of the parent.
child: Image.network("https://switch-box.net/wp-content/uploads/2012/11/free-soft-caesium-image-compression-01.jpg")
),
floatingActionButton: FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: Icon(Icons.add),
), // This trailing comma makes auto-formatting nicer for build methods.
);
if I run with mac I will get this
image (59).png
and if i run whit windows.
image (60).png
bubnovmiura
@bubnovmiura
Hello there! Is anyone know how to set number to app icon (windows mac)? I mean some badge. For example link to screenshot
matrixbot
@matrixbot

pchampio | Drakirus Using a plugin, you could access some platform-specific functionality (badges).
Please check out this example: https://github.com/zephylac/title_bar

I'm not available, and won't solve your issue, but there is some doc on how to write plugins https://github.com/go-flutter-desktop/go-flutter/wiki

bubnovmiura
@bubnovmiura
@matrixbot Thank you. Unfortunately, i don't know how to write c++ or swift code for plugin so i'm looking for something ready)
matrixbot
@matrixbot
jld3103 I noticed something odd with the shared_preferences plugin: The flutter team provides a linux (I also guess for the other desktop platforms) implementation in dart. I wondered why deleting ~/.config/[app-name] didn't delete the saved data. It uses ~/.local/share/[app-name] to save it's data. This makes the usage confusing and the go-flutter implementation of the plugin obsolete. It should be kept for a while for backwards compatability, but it shouldn't be promoted to new users. Any thoughts?
jld3103 It also applies to path_provider and url_launcher, but currently only macos and linux have a dart implementation.
matrixbot
@matrixbot
jld3103 Everyone with some spare time could help testing go-flutter-desktop/hover#147 which introduces AOT for all platforms which will make apps much faster than they currently are
Rom's
@Roms1383
hi everybody I have a nooby question so I hope I won't get bashed haha
let's say I reuse a go library and I want to implement it with go-flutter, what is the correct way to implement platform specific code?
is it through the pubspec.yaml platforms setting?
or is it better to handle the platform specific code directly in golang?
matrixbot
@matrixbot
jld3103 Will you only use the plugin for desktop?
Rom's
@Roms1383
ideally I would like to support all platforms
matrixbot
@matrixbot
jld3103 Then it's best to only implement platform specific code in go. Take a look at https://github.com/go-flutter-desktop/go-flutter/wiki/Implement-a-plugin for a tutorial and https://github.com/go-flutter-desktop/plugins for example plugins
Rom's
@Roms1383
because platform specific code already exists for every platform, I just need to wrap them in a flutter plugin or dart package
actually I've already read them both but I can't wrap my head around it since I'm relatively new to these languages
matrixbot
@matrixbot
jld3103 Can you give a bit more info like the libraries you want to use?
Rom's
@Roms1383
my requirement is as simple as :
pick code from windows/plugin.go for windows, pick code from macos/plugin.go for macos
matrixbot
@matrixbot
jld3103 Ah now I see what you want
Rom's
@Roms1383
I naively thought pubspec.yaml allow for it
matrixbot
@matrixbot
jld3103 You would implement that in go. https://dave.cheney.net/2013/10/12/how-to-use-conditional-compilation-with-the-go-build-tool explains it in depth how to achieve it
Rom's
@Roms1383
thanks a lot
Henry
@cryptix
hey everybody! thanks a lot for this project. i'm new to dart/flutter and looking for a way to call go code from dart
i browsed the examples a bit but they just showcase flutter UIs afaict?
i saw this trick in the wiki, are channels the concept i'm looking for? i'm looking to wire up some stream processing output to a UI
Henry
@cryptix
yup, seems to be working as intended
matrixbot
@matrixbot

kingwill101 > <@jld3103:matrix.org> Everyone with some spare time could help testing go-flutter-desktop/hover#147 which introduces AOT for all platforms which will make apps much faster than they currently are

will give it a run

matrixbot
@matrixbot
jld3103 The latest hover version now uses AOT by default
matrixbot
@matrixbot
kingwill101 posted an image: image.png
i'm living
@olela0_twitter
Hi guys i get error said (cannot obtain version information from hover build) and i have already add it to path what seems to be the problem??
matrixbot
@matrixbot
jld3103 See for example this issue: go-flutter-desktop/go-flutter#527
Hamid Abdulmalik Al-Hassan
@hamidabdulmalik
hi everyone
how does the video_player works please
matrixbot
@matrixbot
jld3103 Hi, it doesn't work yet. See go-flutter-desktop/go-flutter#134
Hamid Abdulmalik Al-Hassan
@hamidabdulmalik
thank you
@matrixbot and we cannot use the normal flutter video player yet as I suppose as well right?
matrixbot
@matrixbot
jld3103 No that's the same