Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Rafal Wachol
@charafau
Sure! The biggest problem I have so far was widget positioning
I had to use many nested layouts, but that might be due to my lack of knowledge
@eseidelGoogle I was actually thinking, how hard would that be to use the engine from C ?
Eric Seidel
@eseidel
I’m not sure what that would mena?
The engine is a (relatively) small ball of C++ code: https://github.com/flutter/engine
it has 3 big pieces: the Dart Runtime, the Skia 2d graphics api, and a forked (and very stripped down) copy of Chrome’s text engine
Rafal Wachol
@charafau
I was thinking about writing small gui lib for C, rust for fun. From what I've seen all widgets are drawn in dart, but C engine is a renderer
Eric Seidel
@eseidel
The engine just knows the (C++ side of) the Dart runtime (GC, etc.), a copy of Skia (with only the hardware/opengl backend compiled in) and the stripped down text layout bits previously mentioned
if you’re writing a c/rust gui libary I doubt you’d start from Flutter’s engine :)
Rafal Wachol
@charafau
Ah, I thought I could reuse some part of it
Eric Seidel
@eseidel
we’re looking at replacing the text layout bit and that’s the only non-off-the-shelf component
well, we stripped down the dart and skia bits some, but nothing you couldn’t replicate by looking at our GN configs
I guess there is some android and iOS integration you could re-use
Writing these things is really hard, btw. :D
Mostly the pulling the whole product together is hard.
endless miles of details.
Rafal Wachol
@charafau
I know it's hard :)
I wasn't thinking about anything fancy, just for fun
Eric Seidel
@eseidel
https://github.com/eseidel/lolsim is my for-fun dart project. :D
although I don’t get a lot of time to work on it
Rafal Wachol
@charafau
I've never played LoL I'm more like a counter strike guy :D
Leonard B. Papilaya
@ramose
@charafau Thanks!
eseidel @eseidel is sad that this is 2017 and JavaScript (and thus Dart’s) regexps don’t support named capture
Eric Seidel
@eseidel
not that it really matters, but would be nice.
Rafal Wachol
@charafau
I'm waiting for web assembly ;)
Günter Zöchbauer
@zoechi
web assembly doesn't look very promising
Rafal Wachol
@charafau
Why is that ?
Günter Zöchbauer
@zoechi
haven't seen anything about web assembly that looks promising
except if you have legacy code that you want to run in the browser
Rafal Wachol
@charafau
Or maybe JavaScript will die finally ;)
Günter Zöchbauer
@zoechi
looks like the least likely outcome of all possiblities
taylorren
@taylorren
Hi all!
I am very new to Flutter and Android.
Valentyn Shybanov
@olostan
Hello, @taylorren
taylorren
@taylorren
I am designing a Card and want to make the texts wrapped (in a few lines).
Valentyn Shybanov
@olostan
That's not an issue, Flutter team create awesome guides and tutorials!
taylorren
@taylorren
I tried to look at the demo (Gallery-Card) to seek some hints but not successful.
Any hints?
Valentyn Shybanov
@olostan
@taylorren did you tried to wrap text with Container?
taylorren
@taylorren
body: new Scrollbar(
child: new ListView(
children: [
new Image.asset(
'images/rsywx-feature-graphic.png',
width: 600.0,
height: 240.0,
fit: BoxFit.cover,
),
new Card(
child: new Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
new Column(
children: [
new Text("icon goes here"),
],
),
new Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
new Padding(
padding: const EdgeInsets.all(2.0),
child: new DefaultTextStyle(
softWrap: true,
overflow: TextOverflow.ellipsis,
style: new TextStyle(
fontSize: 16.0,
color: Colors.black,
),
child: new Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
// three line description
new Padding(
padding: const EdgeInsets.only(
bottom: 8.0),
child: new Text(
'Lorem ipsum. The quick brown fox jumps over a lazy dog.Lorem ipsum. The quick brown fox jumps over a lazy dog.',
),
),
new Text(
'Lorem ipsum. The quick brown fox jumps over a lazy dog. '),
new Text('最近收藏的图书是XXX的《XXX》。'),
],
),
),
),
],
),
                  ],
                )
            )

          ]
      )
  ),
Oops, the code is broken.
@olostan Can post me a simple code snippet?
Valentyn Shybanov
@olostan
@taylorren I would love to but I am on laptop without Flutter so can't check now if my assumption work (I've created my app some month ago and had not hands-on coding so forgot some bits :( ) If your problem will remain I'll check at evening
taylorren
@taylorren
@olostan Much appreciated. I am not unfamiliar with Dart but Flutter (with Android layout stuffs) is very new to me.
Can you drop me an email for the code snippet when you have time? My mailbox is: taylor.ren@gmail.com
Valentyn Shybanov
@olostan
@taylorren basically Flutter is much closer to React than normal Android-UI-way
Marian
@cortexdesign
Hey, is this issue with google sign in known? ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following _CompileTimeError was thrown building _ModalScopeStatus(active):
'package:google_sign_in/google_sign_in.dart': malformed type: line 61 pos 16: cannot resolve class PlatformMethodChannel....
Michael Thomsen
@mit-mit
cc @mravn-google do we need to get that updated?
Mikkel Nygaard Ravn
@mravn-google
Yes. The class is now called MethodChannel.
Marian
@cortexdesign
Ok, thank you!
Mikkel Nygaard Ravn
@mravn-google
@cortexdesign The google_sign_in github repo readme says: "Known issue: This plug-in does not work with the latest Flutter master, but is known to work with version 86e9fc1c6 of Flutter." This is WIP.