Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
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
Eric Seidel
@eseidelGoogle
@donnyv https://github.com/flutter/flutter/tree/master/packages/flutter_markdown is a package which knows how to read markdown files and render them with trees of flutter widgets. It might provide some inspiration for you.
Donny Velazquez
@donnyv
This is it right here! I can use it as a reference when I do my own json parser.
I know this in tech preview right now, so its not suggested to do production apps. But do you think the api will change that drastically when it goes to v 1.0?
is the list of API changes we're working through
the hope is for the API to settle down once we get through those
we've got 14 left out of 134, so we're getting close
Donny Velazquez
@donnyv
nice, well then I might as well start now and by the time I'm starting to get deep this should hopefully be close to 1.0
Thanks!
Eric Seidel
@eseidelGoogle
@donnyv it all comes down to your needs. :) We should probably update the label give flutter on the homepage. There are some big arcs of work left (like finishing accessibility support and internationalization), but there are already Flutter apps shipping today (both at Google and on the public stores)
Several authors of said apps hang around this channel
https://itunes.apple.com/nz/app/newsvoice/id1208421834?mt=8 is one which just launched a few weeks back for example
Donny Velazquez
@donnyv
nice!
Ian Hickson
@Hixie
flutter/flutter#9565 <- placeholder widget