Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
New post on Flutter Dev Google group:

Trying To Convert String Into Currency Format Fails
I am trying to format the input entered by the user into a currency format where every 3 digits are separated by a comma eg. 25,636 or 123,456 using the flutter intl library, however I keep getting an error Class 'String' has no instance getter 'isNegative'. Receiver: "22" (This is value I have

January 29, 2020 at 09:09AM by Mr harilall
https://ift.tt/2GxOx6t
New post on /r/flutterdev subreddit:

Can you recommend Flutter courses (with or without certificates)? Location does not matter
I need to plan my training, can you recommend any good courses even if upcoming? thank you

January 29, 2020 at 10:32AM by hopelessprogrammer01
https://ift.tt/3aPmihy
New post on /r/flutterdev subreddit:

Ultimate data generator( generate offline data and images)
[release] :) Hi everyone, I recently made a flutter package for generating clear and neat data offline ( as well as images) I got tired of using lorem ipsum when I was prototyping my UI. Here is the link to the package: https://pub.dev/packages/ultimate_data_generator . Here is the link to the demo APK: https://drive.google.com/file/d/17Hg2KtwUxi_1z82vz2UYkndsZYjcsig2/view?usp=sharing . Data can be generated in 6 different categories The food category (images, vegan, vegetarian, non-vegetarian food names, and ingredients ) . The industry category . The social media category: can generate bio, comments and even reviewsThe human category: basic human data such as name, full name, email, username, iD, job occupation etc... . The places category: Can generate the name of places like colleges, hospitals, hotels, restaurant names. Country name and city names are also included . The general purpose category: countains data that I couldn't categorize, like '' generate percentage'' etc... . feel free to DM me if you have any questions My Instagram: instagram.com/emilecode/ .

January 29, 2020 at 10:06AM by emile977
https://ift.tt/2GxevHl
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