Flutter Heroes
25.6K subscribers
272 photos
2 videos
31.1K links
Download Telegram
Reddit: Flutter animations compared with Native
https://ift.tt/2xxxAow

Submitted September 23, 2018 at 06:53AM by darkermuffin
via reddit https://ift.tt/2PYDOol
Reddit: Just took flutter for a round for the first time! Really liked it and dev environment is totally amazing!
https://ift.tt/2xHVOfl

Submitted September 23, 2018 at 05:39PM by yershalom
via reddit https://ift.tt/2QSgJF2
GGroup: Observation: flutter sdk path in AS / windows separators (':') not escaped
Don't know if it is important but Windows file separator('\') and drive letter separator(':') must be escaped Here how it is for e.g.: flutter.sdk=C:\\Users\\blablabla\\flutter *It should be:* flutter.sdk=C\:\\Users\\blablabla\\flutter

Submitted September 23, 2018 at 08:06PM by Bened
via Flutter Dev https://ift.tt/2pxKte2
GGroup: scopped bloc issue
Hello All, When I was trying for a scopped bloc, i got the following error [image: image.png] code is available https://ift.tt/2I7ZImv it would be greatly appreciated , if any one can guide me , what went wrong. Thanks!

Submitted September 23, 2018 at 09:37PM by Sreeraj I.N
via Flutter Dev https://ift.tt/2pxPy6c
GGroup: How to send and receive XML with Flutter?
Hi, I have to connect to https (post) and send very short xml file and receive back short xml file or short data string. I know hw to send and receive data to socket and json, but I have no idea how to do this with xml. Can anyone point me; - *how to send and receive short xml file in

Submitted September 24, 2018 at 08:20AM by Niyazi Toros
via Flutter Dev https://ift.tt/2OLVjrT
GGroup: CupertinoNavigationBar without List View
Hello, im new to flutter. i wanna ask, if there's a way to use CupertinoPageScaffold > CupertinoNavigationBar without a list view because i use Gridview on my UI? this is my SS my apps when using ListView [image: Screenshot_1537769895.png] But when I use GridView it

Submitted September 24, 2018 at 08:24AM by Reza Briliantama
via Flutter Dev https://ift.tt/2zqGdCT
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