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

Learning Finance made *EASY* and *FREE*, for REAL!
*LYNANCE*Learning Finance made *EASY* and *FREE*, for REAL!Through LYNANCE you can:-Learn everything about Finance.-Stay updated with financial news and events going around the globe.-Keep upgrading your financial knowledge with the help our NEW COURSES launching EVERY MONTH.What makes it cool?IT'S FREE!Download our app from play store NOW!https://play.google.com/store/apps/details?id=com.gjam.lynance

March 18, 2021 at 07:44AM by japangorr
https://ift.tt/3ltayqP
New post on /r/flutterdev subreddit:

JS library in flutter web
Just a question from a beginner. Can we use JS library such as Plotly.js library inside the flutter web by calling it in the html script tag?

March 18, 2021 at 08:06AM by sangkaraka
https://ift.tt/3rY4ucj
New post on Flutter Dev Google group:

How about implement Simple Peer Webrtc?
How about implement Simple Peer Webrtc?

March 18, 2021 at 11:38AM by Timmy Timmy
https://ift.tt/3lrYlTe
New post on /r/flutterdev subreddit:

Have you used flutter share package?
how is your experience with flutter share package, can you share some examples?

March 18, 2021 at 11:42AM by Dhanraj_Flutterdev
https://ift.tt/3bXBgEG
New post on Flutter Dev Google group:

sniffing http
Hi guys, I need to create a prototype of app but I have some doubts. The app must sniff the network traffic into device and log it, the app must work in background. Is it possible to sniff the http traffic from other app? For example the http url digited on browser? I have doubt of privacy.

March 18, 2021 at 02:07PM by Luca Bonaldo
https://ift.tt/38RbfoG
New post on /r/flutterdev subreddit:

What are the best use cases for Flutter web?
I read a lot of comments about Flutter web in reddit. It's clear that Flutter web is not a web framework nor a web library.If it's not a web framework, then what is it?Why someone would hire Flutter web instead of react native for web or react web or view to do the job? I chose the word 'hier' on purpose, because we all hiring tools to get the job done and there is a price to pay even if it is not apparent in the first place

March 18, 2021 at 01:44PM by Intelligent_Moose770
https://ift.tt/2OCR5bn
New post on /r/flutterdev subreddit:

I got DioError [DioErrorType.RESPONSE]: Http status error [400] when send form data using dio and post method to request
I got when I request this data, I'm using Dio package to send request, I tried to replace the content type with application/json and I checked my header and my authorization, and also I got the same error.and this is my data that I passed it to the post method:FormData formData = FormData.fromMap(
{
'data': {
"text": questionController.text,
"helping_text": hintController.text,
"score": int.parse(scoreController.text),
"status": 1,
"question_type": 1,
"options": [
{
"text": answerController1.text,
"is_correct": answerCheck1,
"status": 1
},
{
"text": answerController2.text,
"is_correct": answerCheck2,
"status": 1
},
{
"text": answerController3.text,
"is_correct": answerCheck3,
"status": 1
}
]
},
// 'question_image': {
// 'question_image': questionImage,
// 'type': 'image/',
// }
},
);
await addQuestion.addApiQuestion(
// file,
formData,
widget.quizId,
// context,
);
}and this is my request code:class AddQuestion {
addApiQuestion(
formData,
quizId,
) async {
final String url = apiServer + 'quizzes/exam/$quizId/questions/add/';
try {
var response = await Dio().post(
url,
data: formData,
options: Options(
headers: {
'accept': '*/*',
'Authorization': 'Bearer ${AppHelper().getToken().access}',
'contentType': 'multipart/form-data',
},
),
);
/\We added 302 here as it indicates a redirection response from GET request*
but here it comes from the POST request, so Dio raises an Exception,
so to workaround the problem we considre it as success,
any way it's not the best way to handle this, but it's a workaround\/*
if (response.statusCode == 200 ||
response.statusCode == 201 ||
response.statusCode == 302) {
var message = json.decode(response.statusMessage);
printClassNameWithNumber(runtimeType, lineNumber,
'response of add question message ${response.statusCode.toString()}');
printClassNameWithNumber(runtimeType, lineNumber, 'body $formData');
printClassNameWithNumber(runtimeType, lineNumber, 'body $message');
return message;
} else {
// toastMessage('server error', "", context);
print('Response error code = ${response.statusCode}');
return null;
}
} catch (e) {
print('erro $e');
return null;
}
}
}

March 18, 2021 at 01:21PM by Memo_Adel
https://ift.tt/3txXuDf
New post on /r/flutterdev subreddit:

Wrote a post on Creating ListView with data from Firestore!
https://ift.tt/2NsDPVU

March 18, 2021 at 03:13PM by mukhtharcm
https://ift.tt/3eT5CKo
New post on /r/flutterdev subreddit:

Reset password
Hey everybody I hope you all are having a great day. You guys got any good tutorials on how I can create a reset password function? I am using firestore in my firebase does that make a difference than using the realtime database?

March 18, 2021 at 03:45PM by TheQuack69
https://ift.tt/3eS9BqF
New post on Flutter Dev Google group:

Helps in Maps - Dart
1. Hi guys, I was Studying and I came across this code, I didn’t understand it very well, can someone help me to leave it in the standard way? - It is like this: int value =
New post on /r/flutterdev subreddit:

Flutter localization on the Fly
I was told to add localization to an app in production at my workplace I did and it helped us reach more users but we found it painful and struggled with the old school approach of every time making changes in the code, Incase we wanted to add a new language or make any changes to localization.
So I came up with a simple solution that helped me solve this problem.Here in this post-https://maheshmnj.medium.com/flutter-localization-on-the-fly-34799d8f08df, I shared my experience of how I tackled this problem without using any third party solution.

March 18, 2021 at 06:13PM by maheshmnj
https://ift.tt/3eQ9aNL