Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
Reddit: Flutter — my thoughts and impressions — PART V [FINAL]
https://ift.tt/2MY0XoR

Submitted September 24, 2018 at 08:47AM by artrmz
via reddit https://ift.tt/2px9R3H
GGroup: How to identify whether the dialog is already popped?
I have stack like, Screen1 -> Screen2 -> Dialog when the dialog pushed, there is a background process will start running. After sometime it will try to pop the dialog. But if the user pressed the back button, then dialog already closed. How do i handle the Navigator pop from background process

Submitted September 24, 2018 at 11:19AM by AVRSP GKF
via Flutter Dev https://ift.tt/2QV10oX
GGroup: how to move SingleChildScrollView automatically when keyboard pop ups?
Hi, When I use SingleChildScrollView on scaffold body and when I press text the keyboard is pop up but SingleChildScrollView automatically. I have to move manually. How to make when keyboard comes up the SingleChildScrollView moves up automatically. @override > Widget build(BuildContext

Submitted September 24, 2018 at 12:19PM by Niyazi Toros
via Flutter Dev https://ift.tt/2QRs9Jg
Reddit: My flutter app, social network, chat
https://youtu.be/vDeFPiC_VdU

Submitted September 24, 2018 at 01:51PM by knightvincv
via reddit https://ift.tt/2xBa22f
Reddit: tflite - Flutter plugin for accessing TensorFlow Lite
https://ift.tt/2O5D6s4

Submitted September 24, 2018 at 04:28PM by x_ash
via reddit https://ift.tt/2O4QT2g
Reddit: Directions API
Hello, is there anyone who works with the Google Maps Directions API or similar API?

Submitted September 24, 2018 at 05:01PM by mher_karapetian
via reddit https://ift.tt/2OTVqkY
GGroup: How to set named optional parameters to private variables
I'm trying to create this class Student. class Student { final String _id; String _name, _phoneNumber, _email; Student(this._id, this._name, {this._phoneNumber, this.email}); } But that gives me an error because "named optional parameters can't start with an underscore." How can I solve this?

Submitted September 24, 2018 at 06:35PM by Felip Pellicer
via Flutter Dev https://ift.tt/2OKzrx6
Reddit: Any good patterns for writing protected routes?
Hey everyone, I've just started working with flutter and I've kind of hit a wall that I can't seem to find any solid documented solutions for (Even though it seems relatively simple to solve)Does anyone know a good way of protecting routes and redirecting users back to the login page if they aren't authenticated.Given this example of routes:
Map<String, WidgetBuilder> appRoutes = { '/': (context) => HomeScreen(), '/library': (context) => LibraryManagementScreen(), '/login': (context) => LoginScreen(), }; 
I'd want to page to initially go through HomeScreen and be redirected to either /library or /login based on authenticated status. I'd also users to be redirected to /login if they logout while on the /library screen.I tried implementing this with an AuthGuard class that would make the guarded routes look like:
 AuthGuard(builder: (context, user) => LibraryManagementScreen(user: user()) 
but I'd get errors if I ran Navigator.pushRoute from the build method (which makes sense now) and If I just had the AuthGuard display the Login widget it'd constantly fire the build function for the AuthGuard and the app would spazz out from FirebaseAuth.instance.onAuthStateChanged being updated every time I interacted with my application.Here's a snippet of the AuthGuard
class AuthGuard extends StatelessWidget { AuthGuard({ Key key, @required this.builder }): super(key: key); final Function(BuildContext context, User user) builder; @override Widget build(BuildContext context) { // This gets called over and over again return StreamBuilder<FirebaseUser>( stream: FirebaseAuth.instance.onAuthStateChanged, builder: (BuildContext context, snapshot) { if (snapshot.connectionState == ConnectionState.waiting) { print("Splash screen"); return SplashScreen(); } else { if (snapshot.hasData) { return FutureBuilder( future: FirebaseUserService.getOrCreateUser(snapshot.data.uid), builder: (BuildContext context, AsyncSnapshot<User> snapshot) { switch (snapshot.connectionState) { case ConnectionState.none: case ConnectionState.waiting: case ConnectionState.active: return SplashScreen(); default: return builder(context, snapshot.data); } } ); } } return LoginScreen(); } ); } } 
I feel like I'm just rambling here, so the TLDR question is:Does anyone have a good example of authentication using a stream while using routes for the navigator?

Submitted September 25, 2018 at 03:52AM by OffTree
via reddit https://ift.tt/2DtU6US
GGroup: Signin Error on flutter app for google login
Hi Everyone, We developed a flutter app for android. Using google login on firebase we are seeing about 8% of our users get this error *"PlatformException(sign_in_failed, Status{statusCode=ERROR, resolution=null}, null)"* Now we are not sure, what the issue is. Searching around this error just

Submitted September 25, 2018 at 07:07AM by Shouvik Ghosh Roy
via Flutter Dev https://ift.tt/2Q41Nm5
Reddit: sunapsis User Conference 18 app made using Flutter launched on Play store
sunapsis (sunapsis.iu.edu) is US’ most popular international case management software. Helping serve nearly 400,000 international students coming to the US, helping fulfill their dreams of getting a world class education. This month we are going to host our annual sunapsis User Conference at Indianapolis from Sep 29 - Oct 3.Few months ago we made a strategic decision of shifting from a JavaScript base cross platform mobile app framework to Flutter. Though our main application is still actively in development, for our user conference we are releasing our conference application developed entirely in Flutter. The Android version is available on Play store (https://play.google.com/store/apps/details?id=edu.iu.sunapsis.sunapsisconference18) and the iOS version will be available soon. It is just a simple app for conference attendees rapidly prototyped using Flutter and Firebase cloud firestore. We will be doing a sneak peak of our main application during our conference and I will be posting a that video soon and also be making the conference app repository public. sunapsis ever strong with Flutter.

Submitted September 25, 2018 at 06:52AM by ssiddh
via reddit https://ift.tt/2xOoJOO
Reddit: Blur part of an Image(Canvas)
So I have a project that uses flutter. We use a canvas to draw an image and then we can draw on it with color lines. In some pictures there are privicy violations so we need to blur them. I found MaskFilter of the Paint object but that doesn't blur the image just draws a line with that blur effect. I want to only blur the image. Is there anyway to make that possible?

Submitted September 25, 2018 at 09:57AM by smallgw2
via reddit https://ift.tt/2pAdLbR
GGroup: How to make auto scroll page to UP when device keyboard pops?
Hi, How to make auto scroll page to UP when device keyboard pops? @override Widget build(BuildContext context) { return new Scaffold( resizeToAvoidBottomPadding: true, key: _scaffoldKey, body: NotificationListener( onNotification: (overscroll) { overscroll.d

Submitted September 25, 2018 at 01:28PM by Niyazi Toros
via Flutter Dev https://ift.tt/2IgODzi
Flutter has powerful animation features, but you won't need them for simple transitions. Use the the FadeTransition widget instead! It lets you fade a widget in and out, and is easy to set up in your app.

Click below for more #WidgetoftheWeek tips &darr; pic.twitter.com/i4c3qfPOPZ— Flutter (@flutterio) September 25, 2018

September 25, 2018 at 07:18PM
via Twitter https://twitter.com/flutterio
GGroup: Persistent bottom sheet
Hi All, I think this post is very interesting to all, I want bottom sheet implement but different approach please refer my attached screenshot. Thanks, Sanjay

Submitted September 25, 2018 at 08:09PM by Sanjay Tejani
via Flutter Dev https://ift.tt/2xFkhm7