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

Help me locate the Flutter Samples source code?
I was browsing the Flutter Samples:https://flutter.github.io/samples/#/And I was looking to download the source code of one of those examples, specifically this one:https://imgur.com/qBFz6yaHowever, I couldn't find it. My google skills are failing me, can anyone help me locating it?Thanks!

January 29, 2020 at 04:01PM by sam-sung
https://ift.tt/2Oaqw9N
New post on /r/flutterdev subreddit:

What is a good rate?
I have just got a flutter job.It’s ad hoc. I live in the UK and I am fairly experienced in flutter.What would be a good rate to charge?

January 29, 2020 at 03:43PM by haulwhore
https://ift.tt/36FUUiB
New tweet from FlutterDev:

Leave a comment below and include your solved puzzle. Ready... GO!— Flutter (@FlutterDev) January 29, 2020

January 29, 2020 at 05:13PM
http://twitter.com/FlutterDev/status/1222553252568322052
New tweet from FlutterDev:

Leave a comment below and include your solved puzzle. Ready... GO!— Flutter (@FlutterDev) January 29, 2020

January 29, 2020 at 05:30PM
http://twitter.com/FlutterDev/status/1222557539742601216
New tweet from FlutterDev:

Leave a comment below and include your solved puzzle! Ready... GO!

Thanks to @flutterize and @vishna for catching the error! We promise our shoes aren't that boring! Our live coding show however... 😊— Flutter (@FlutterDev) January 29, 2020

January 29, 2020 at 08:14PM
http://twitter.com/FlutterDev/status/1222598935627173888
New post on /r/flutterdev subreddit:

Signing user out on 401 in the app with bloc, flutter_bloc and JWT auth.
Hello everyone,​I'm developing an app with bloc and flutter_bloc with JWT authentication and I cannot figure out a good way to sign a user out of the app on 401 error (Unauthenticated).Currently, I have a global Authentication BLoC that controls which screen to show by checking if the token exists in a Secure Storage. For this part, I pretty much followed the tutorial on the bloc package's official website.
 @override Widget build(BuildContext context) { return MaterialApp( home: BlocBuilder<AuthenticationBloc, AuthenticationState>( builder: (context, state) { if (state is AuthenticationAuthenticated) { return HomeScreen(); } if (state is AuthenticationUnauthenticated) { return LoginPage(); } if (state is AuthenticationLoading) { return LoadingIndicator(); } return SplashPage(); }, ), ); } 
In my services, I use Dio to make requests with some interceptors attached that add the auth header to requests and catch 401 errors.
 static dynamic errorInterceptor(DioError dioError) { if (dioError.response.statusCode == 401) { return UnauthorizedException("Unauthorized", dioError); } } 
Currently, all my other BLoCs that need to make network requests(via repositories -> services) have a dependency on AuthenticationBloc and try-catch blocks that check if the error is an instance of UnauthorizedException, then Logout event is sent to AuthenticationBloc that practically kicks the user out to login screen and removes the token from storage.It doesn't seem like a very good solution to me, considering the fact that most of the BLoCs will be dependent on AutheticationBloc.What would be the best approach for my use case?

January 29, 2020 at 10:04PM by alexrit
https://ift.tt/314rDNz
New post on /r/flutterdev subreddit:

Tables with Listview.builder
Is there any plugin which uses listview.builder to create tables with fixed header and column . I am currently using this https://pub.dev/packages/table_sticky_headers but because of too much data the table load very slow . Would also like to add bidirectional scrolling , search function and highlight row and column feature . I have not seen any plugin which meets all criteria .

January 29, 2020 at 09:53PM by nikesh03
https://ift.tt/2uIAU1P
New post on /r/flutterdev subreddit:

Displaying google maps API on custom map UI?
Hey!I am working on a geography oriented app, and I wanted to have an interactive map included.However, I would prefer designing my own map view / using something "prettier" than google maps view, and currently I'm looking for resources / comments on how to go about doing that.What alternatives are there for google maps display? is it possible to create some sort of a custom "asset" (on the app itself or on the app's webserver) and "tap" into the google maps api to spare working on anything but the graphics?​thanks in advance guys !

January 29, 2020 at 09:52PM by BarbDart
https://ift.tt/2RVTqvs
New post on /r/flutterdev subreddit:

is it appropriate to try to find/hire someone here for an 8 screen mvp connected to a fake api?
location does not matter

January 29, 2020 at 09:50PM by crabocake
https://ift.tt/3aSMpV2
New tweet from FlutterDev:

This @Google session at MWC Barcelona 2020 is on @FlutterDev and includes talks from #Googlers on the team, case studies, partners, and new demos. Find out more here : https://t.co/sqX26NGKmw #MWC20 pic.twitter.com/3FAVyW5H7U— GSMA (@GSMA) January 28, 2020

January 29, 2020 at 11:21PM
http://twitter.com/FlutterDev/status/1222646029360611329