Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
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.
Marian
@cortexdesign
@mravn-google Yes you are right. Then I have to wait for an update...
Jaap Vermeulen
@jacoplane
https://github.com/flutter/firebase_database ----> is that functional or not yet?
Mikkel Nygaard Ravn
@mravn-google
@jacoplane Not sure about current status or plans, but it is not up-to-date with the newest Flutter API.
taylorren
@taylorren
@olostan Not really. The rendering in JSX and HTML is more "shortcut" in React Native.
Marian
@cortexdesign
@jacoplane same problem with the renaming from "PlatformMethodChannel" to "MethodChannel". After renaming, it will build without errors. But maybe there are other issues ...
arichnad
@arichnad
I haven't found how to create a background service in Flutter. Is that possible? thanks!
Eric Seidel
@eseidelGoogle
@taylorren you can use ``` and ```dart to wrap code blocks and make for pretty pastes when you need :)
Gavin Doughtie
@gavindoughtie
@olostan Flutter does have a nice reactive/declarative model, so yes in that sense. There would be nothing particularly traumatic about doing something JSX-like on top of Flutter, but it's probably an unnecessary complication at this point.
Donny Velazquez
@donnyv
Does anyone know if Flutter lets you dynamically create widgets?
Adam Barth
@abarth
yes
you can create widgets whenever you like
Donny Velazquez
@donnyv
So while the app is running?
Adam Barth
@abarth
yep
Eric Seidel
@eseidelGoogle
I'm curious what "dynamically create widgets" means to you @donnyv?
Donny Velazquez
@donnyv
well I'm thinking that a user signs in and the app gets a json package which will give the user different forms they created on the desktop.
the form get created on the fly in the app based on the json package
Adam Barth
@abarth
that should work
Donny Velazquez
@donnyv
sweet!
Adam Barth
@abarth
you'll need to write the code that decides what the JSON means
Donny Velazquez
@donnyv
Of course
I was looking at Xamarin for this but it was just not happening. It seems Flutter is much more flexable