Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
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
New post on /r/flutterdev subreddit:

Is Angela Yu's Flutter course on Udemy still relevant for Flutter 2.0?
Also, this course is "part of a series". Is the other two courses worth being taken or the course itself will suffice?Thanks for your help

March 18, 2021 at 08:02PM by notpikatchu
https://ift.tt/30VOTOt
New tweet from FlutterDev:

✨ Go behind-the-scenes with #DecodingFlutter! ✨

Don't miss the ALL NEW series of videos that aims to demystify, clarify, and explore all the things that are surprising or mysterious about #Flutter, starting soon πŸ’™

Watch the teaser πŸ‘‰ https://t.co/WQwGegIRj6 pic.twitter.com/DMFcBOHTe8β€” Flutter (@FlutterDev) March 18, 2021

March 18, 2021 at 08:00PM
http://twitter.com/FlutterDev/status/1372623847439089668
New post on /r/flutterdev subreddit:

Partner Up for Learning
Hello everyone, hope you doing well. I just wanted to share the discord server for the people who search for learning partners. You can join server to find a partner for learning different programming languages or any topics you are interested in. Here is the link for the server:BTW - There is dedicated Flutter channel as wellhttps://discord.gg/ayeGrsaSG2

March 18, 2021 at 08:12PM by heisenbug403
https://ift.tt/3r0hkp1
New tweet from FlutterDev:

πŸ”₯πŸ“Firebase Release Notes for March πŸ“πŸ”₯

Join @puf for the latest updates from Firebase, with:

πŸ‘Œ Null-safe versions of Flutter SDKs
🧠 Better ML and faster builds on Android
⏱ Perfmon SDKs open-sourced

This and more in 4 minutes.

Check it out πŸ‘‰ https://t.co/E1RBTOrBKG pic.twitter.com/AEy0AGAr0sβ€” Firebase (@Firebase) March 16, 2021

March 18, 2021 at 09:59PM
http://twitter.com/FlutterDev/status/1372654010663075844
New post on /r/flutterdev subreddit:

Flutter Video Editor (Similar to Instagram)
Hi I am building an app, which needs a story creation feature similar to instagram. How do I create/edit a video with text/Stickers overlays? Any help would be highly appreciated.

March 18, 2021 at 11:09PM by Nishmo_
https://ift.tt/3trX01A
New post on /r/flutterdev subreddit:

Quick Poll - What app UI template would you want?
Hey everybody, I've been working on flutterui.design and am constantly wondering what type of app template developers would be most interested in next.So I've created this quick poll. Please comment if you have another idea!View Poll

March 18, 2021 at 10:26PM by Apallon
https://ift.tt/30ZZPKQ