GGroup: Theme.of(context).copywith
Hello dev's.. I'm a bit new to flutter, can someone explain me why we should consider 'Theme.of(context).copywith()' instead of directly using 'ThemeData()' Code: bottomNavgationBar: Theme( data: Theme.of(context).copywith ( canvasColor: .......,)) Insted: bottomNavgationBar:
Submitted September 23, 2018 at 12:32AM by Mohammed Umar ibn Shafee
via Flutter Dev https://ift.tt/2DpBYeL
Hello dev's.. I'm a bit new to flutter, can someone explain me why we should consider 'Theme.of(context).copywith()' instead of directly using 'ThemeData()' Code: bottomNavgationBar: Theme( data: Theme.of(context).copywith ( canvasColor: .......,)) Insted: bottomNavgationBar:
Submitted September 23, 2018 at 12:32AM by Mohammed Umar ibn Shafee
via Flutter Dev https://ift.tt/2DpBYeL
Google
Google Groups
Google Groups allows you to create and participate in online forums and email-based groups with a rich experience for community conversations.
Reddit: OAuth on Flutter really sucks. What's the easiest way?
I've got this working, but it's really ugly and would like to know if there's a better, smooth way to do it. I've done OAuth in web development multiple times, but I got confused on app development.Firstly, it's weird that I'm setting up a localhost server on the user's device. This is to receive the tokens given back from the third-party website that authenticates the user. Some people mentioned deep linking would solve this server problem, but deep linking is barely supported in flutter and code has to be written for iOS and Android separately.Secondly, I have to open a web browser for the user so they can actually visit the third-party website. Once they authenticate and I receive the tokens, I can't close the browser:If I open the URL in a web browser, then closing it (with JavaScript: `window.close()`) would only close one tab and the web browser remains running. I can't send the user back to my app (or can I?).If I use a web view, I can't close it. I tried, but I can't. Web view doesn't run Javascript, which I use to close the window... or I think it works on Android but not iOS. I forgot but it's getting complicated.Is OAuth, which is a major feature, missing on flutter? Am I missing something?
Submitted September 23, 2018 at 05:38AM by AskYous
via reddit https://ift.tt/2QPpBvc
I've got this working, but it's really ugly and would like to know if there's a better, smooth way to do it. I've done OAuth in web development multiple times, but I got confused on app development.Firstly, it's weird that I'm setting up a localhost server on the user's device. This is to receive the tokens given back from the third-party website that authenticates the user. Some people mentioned deep linking would solve this server problem, but deep linking is barely supported in flutter and code has to be written for iOS and Android separately.Secondly, I have to open a web browser for the user so they can actually visit the third-party website. Once they authenticate and I receive the tokens, I can't close the browser:If I open the URL in a web browser, then closing it (with JavaScript: `window.close()`) would only close one tab and the web browser remains running. I can't send the user back to my app (or can I?).If I use a web view, I can't close it. I tried, but I can't. Web view doesn't run Javascript, which I use to close the window... or I think it works on Android but not iOS. I forgot but it's getting complicated.Is OAuth, which is a major feature, missing on flutter? Am I missing something?
Submitted September 23, 2018 at 05:38AM by AskYous
via reddit https://ift.tt/2QPpBvc
reddit
r/FlutterDev - OAuth on Flutter really sucks. What's the easiest way?
2 votes and 1 comment so far on Reddit
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
https://ift.tt/2xxxAow
Submitted September 23, 2018 at 06:53AM by darkermuffin
via reddit https://ift.tt/2PYDOol
reddit
r/Flutter - Flutter animations compared with Native
9 votes and 5 comments so far on Reddit
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
https://ift.tt/2xHVOfl
Submitted September 23, 2018 at 05:39PM by yershalom
via reddit https://ift.tt/2QSgJF2
GitHub
yershalom/reddit_flutter
Contribute to yershalom/reddit_flutter development by creating an account on GitHub.
Reddit: Coding With Flutter: Adding Animated Overlays to Your App
https://ift.tt/2OLghqL
Submitted September 23, 2018 at 06:17PM by bizz84
via reddit https://ift.tt/2zoAtJH
https://ift.tt/2OLghqL
Submitted September 23, 2018 at 06:17PM by bizz84
via reddit https://ift.tt/2zoAtJH
Medium
Flutter: Adding Animated Overlays to Your App
This is the second part of my tutorial about BottomAppBar and FAB (part one is here). Today we will see how to reveal options when the FAB…
Reddit: Coding With Flutter: Adding Animated Overlays to Your App
https://ift.tt/2OLghqL
Submitted September 23, 2018 at 06:17PM by bizz84
via reddit https://ift.tt/2zoAtJH
https://ift.tt/2OLghqL
Submitted September 23, 2018 at 06:17PM by bizz84
via reddit https://ift.tt/2zoAtJH
Medium
Flutter: Adding Animated Overlays to Your App
This is the second part of my tutorial about BottomAppBar and FAB (part one is here). Today we will see how to reveal options when the FAB…
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
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
Google
Google Groups
Google Groups allows you to create and participate in online forums and email-based groups with a rich experience for community conversations.
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
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
GitHub
insreeraj/login_bloc_new
Contribute to insreeraj/login_bloc_new development by creating an account on GitHub.
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
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
Google
Google Groups
Google Groups allows you to create and participate in online forums and email-based groups with a rich experience for community conversations.
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
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
Google
Google Groups
Google Groups allows you to create and participate in online forums and email-based groups with a rich experience for community conversations.
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
https://ift.tt/2MY0XoR
Submitted September 24, 2018 at 08:47AM by artrmz
via reddit https://ift.tt/2px9R3H
Medium
Flutter — my thoughts and impressions — PART V [FINAL]
Hot or not? iOS Developer’s perspective
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
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
Google
Google Groups
Google Groups allows you to create and participate in online forums and email-based groups with a rich experience for community conversations.
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
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
Google
Google Groups
Google Groups allows you to create and participate in online forums and email-based groups with a rich experience for community conversations.
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
https://youtu.be/vDeFPiC_VdU
Submitted September 24, 2018 at 01:51PM by knightvincv
via reddit https://ift.tt/2xBa22f
YouTube
Sep 24, 2018 6:38 PM
Reddit: My Flutter Path (004): Hero Animation
https://ift.tt/2QS2pMV
Submitted September 24, 2018 at 03:25PM by PedroMassango
via reddit https://ift.tt/2xUrTkf
https://ift.tt/2QS2pMV
Submitted September 24, 2018 at 03:25PM by PedroMassango
via reddit https://ift.tt/2xUrTkf
Medium
My Flutter Path (004): Hero Animation
Sometimes we need to move an UI element over Screens making a cool transaction. To handle this in Flutter we have the Hero widget.
Reddit: Get Comfortable with Flutter with Andrew Brogdon
https://www.youtube.com/attribution_link?a=jwFKY_5HCaU&u=%2Fwatch%3Fv%3DU_1QsGC_BQo%26feature%3Dshare
Submitted September 24, 2018 at 04:30PM by Pixelreddit
via reddit https://ift.tt/2O4QFrW
https://www.youtube.com/attribution_link?a=jwFKY_5HCaU&u=%2Fwatch%3Fv%3DU_1QsGC_BQo%26feature%3Dshare
Submitted September 24, 2018 at 04:30PM by Pixelreddit
via reddit https://ift.tt/2O4QFrW
YouTube
Get Comfortable with Flutter with Andrew Brogdon
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
https://ift.tt/2O5D6s4
Submitted September 24, 2018 at 04:28PM by x_ash
via reddit https://ift.tt/2O4QT2g
Dart Packages
tflite | Flutter Package
tflite Flutter and Dart package - A Flutter plugin for accessing TensorFlow Lite.
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
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
reddit
r/FlutterDev - Directions API
1 vote and 0 comments so far on Reddit
Reddit: Flutter: Async Await For Beginners | Synchronous Programming in Dart
https://youtu.be/gT0uA7Rgnbc
Submitted September 24, 2018 at 05:54PM by RobertBrunhage
via reddit https://ift.tt/2O4SKE9
https://youtu.be/gT0uA7Rgnbc
Submitted September 24, 2018 at 05:54PM by RobertBrunhage
via reddit https://ift.tt/2O4SKE9
YouTube
Flutter: Async Await For Beginners | Asynchronous Programming in Dart
2 month of free premium Skillshare ➡️ http://bit.ly/Skillshare-Robert ⭐⭐⭐ SUPPORT ME ⭐⭐⭐ Patreon: https://www.patreon.com/join/RobertBrunhage PayPal: https:/...
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
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
Google
Google Groups
Google Groups allows you to create and participate in online forums and email-based groups with a rich experience for community conversations.
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:
Submitted September 25, 2018 at 03:52AM by OffTree
via reddit https://ift.tt/2DtU6US
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
reddit
r/FlutterDev - Any good patterns for writing protected routes?
2 votes and 0 comments so far on Reddit