Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
New post on /r/flutterdev subreddit:

How do I get my button grid to scale to the size of the container?
The problem I'm having is that we are trying to get a number entry grid like this, but we cant figure out how to get the buttons to auto size so they both a) have the margins I want between them, and b) fit the width of the container and the other elements in the container.we are using column's mainAxis.spaceBetween but so far all we have managed is hard coding the buttons to size thembasically how would we make this so it scales right to different devices will still keeping the nice margins and alignment (outsides of buttons align to submit button edges, and all horizontal and vertical margins are the same size)thanks! we have been falling apart over thisedit before posting: we may be trying a table class?

May 22, 2019 at 11:25PM by PicklesAreDope
http://bit.ly/2VL9IXL
New post on /r/flutterdev subreddit:

Navigator side-effects and route guarding.
I'm starting to refactor a Flutter app and I'm trying to divide concerns better between the app's Widget(s) and it's business logic.I was wondering if some of you have found some pattern to solve two isolation problems:The first is starting asynchronous tasks (like start and API call or a DB read) when a route is pushed without the page knowing about this side-effect.The second is route guarding which is basically disabling (or redirecting) a route push if some condition is false or resolves to false (Future<bool>). For example some pages of my app should be visitable only if the user is authenticated and I'd like to redirect to a sign-in (-on) page otherwise.I'd personally solve the first one by using an entity that implements RouteObserver and dispatches the tasks when a specific route name is pushed. I do not want to just dispatch it before the WidgetBuilder provided in the routes parameter of MaterialApp returns its widget.​For the second one I'm not seeing a better solution than wrapping the Navigator in my custom implementation however this would make my app pages depend on this non-standard Navigator and I'd like to avoid that.​I'd like to discuss alternatives to these solutions and possibly reason about possible pitfalls.

May 22, 2019 at 11:54PM by Phy96
http://bit.ly/2HL327b
New post on /r/flutterdev subreddit:

Display a status update page if user has data
Hi all,Basically, a user registers and create an account, the sees the current status of the submission he made 'submitted'What I want is that next time the user login, I would check if the user has a document/collection in firestore, if he has, he his taking to the application status page,But if he doesn't have, he is taking to the beginning to fill the form.So I guess my main question is how do I check if he has particular document in firestore.FYI: my data model is ...... Collection ('user'). document(user.uid). collection ('update')....So basically I want to check if a collection update exist?, Each time the user login.

May 23, 2019 at 01:07AM by lanrayx2
http://bit.ly/2YIyiui
New post on /r/flutterdev subreddit:

Flutter Club
Now you can Join this Flutter telegram community :Welcome to Flutter Clubhttps://t.me/flutterclub

May 23, 2019 at 02:40AM by JithinJude
http://bit.ly/2JyykBJ
New post on /r/flutterdev subreddit:

A collection of memes about Flutter
Just gathering some memes about flutter because why not? :DSome of them I myself use on my talks. Feel free to add yours.​https://github.com/JHBitencourt/flutter_memes

May 23, 2019 at 04:26AM by JHBitencourt
http://bit.ly/2EsZxBo
New post on Flutter Dev Google group:

PDF data Reading
how can we read perticular data from pdf in flutter. Example:- if pdf have first name then fetch first name value in text in flutter

May 23, 2019 at 09:05AM by Jay Gadariya
http://bit.ly/2JA4cWC
New post on Flutter Dev Google group:

How to Disable swipe to open drawer.
I want to disable the swipe gesture to open the drawer, cant find any option or answer regarding this.

May 23, 2019 at 09:21AM by Rajesh Kumar M
http://bit.ly/2wb32rR
New post on /r/flutterdev subreddit:

Is it better approach to use separate 'ChangeNotifierProvider' for each screen?
Flutter Provider package - On page1 I have used 'ChangeNotifierProvider' for 'Page1Model' & on Page2 used 'ChangeNotifierProvider' for 'Page2Model'. But when I am on Page2 screen why provider notifying to both Page1 & Page2. Expectation is it should notify only for Page2 screen. Is it better approach to use separate 'ChangeNotifierProvider' for each screen?

May 23, 2019 at 08:59AM by vaibhav_2018
http://bit.ly/2M3t1w7
New post on /r/flutterdev subreddit:

Scoped model vs Provider?
I just started building a medium sized app using scoped model, and now Flutter endorses provider.From their examples it looks essentially the same thing with different names. Is this actually the case?Are there any pros/cons of one or the other?If all else is equal should I switch over to provider as it's 'the endorsed one'?

May 23, 2019 at 06:48AM by aShortGuy-
http://bit.ly/2JURG34
New post on /r/flutterdev subreddit:

Kevin Moore | It's All Widgets! Flutter Podcast
http://bit.ly/2YGdTpO

May 23, 2019 at 11:15AM by hillel369
http://bit.ly/2M4fnsq
New post on Flutter Dev Google group:

flutter with s3 bucket
I want to upload images to my s3 bucket but unable to find a way to achieve it. How can i upload content on s3 bucket using flutter ?

May 23, 2019 at 12:07PM by Pawan Vijayvergiya
http://bit.ly/2X1n5EX
New post on /r/flutterdev subreddit:

Flutter UI - Car Rental App Design
https://www.youtube.com/watch?v=BIUuGzBFU1Y&t=29s

May 23, 2019 at 02:42PM by Nantesss
http://bit.ly/2VH2cgQ
New post on /r/flutterdev subreddit:

Have anyone try dart.inject? Any success?
Here: https://github.com/google/inject.dartI'm not sure how to source generation work, but I tried both my in my app and the example app, none of them working :(

May 23, 2019 at 02:03PM by raiytu4
http://bit.ly/2WjhZH4