Unhandled Exception: Bad state: Cannot set the body fields of a Request with content-type “application/json”

[SOLVED]: Cannot set the body fields of a Request with content-type “application/json”.

While working with Flutter app and REST API, sometimes you might get an error: Unhandled Exception: Bad state: Cannot set the body fields of a Request with content-type “application/json”. This…

Read more »
Style ElevatedButton Widget with ButtonStyle()

Flutter: Style ElevatedButton Widget with ButtonStyle()

ElevatedButton widget is one of the most common button types in the Flutter framework. Thus, in this tutorial, we will learn how to style an elevated button using the ButtonStyle…

Read more »
oflutter.com - update value in the list

Flutter: How to Update Specific Value in a List

In this quick tutorial, I will show you how to update a value in a list using a dart programming language. Unfortunately, there is no method update() in the list, so we have…

Read more »
Oflutter - Image Picker and Image Cropper

Flutter: How to Pick an Image from Gallery and Crop it 2021

While developing an app using the Flutter framework, you might as yourself a question: How to pick an image from a phone gallery and then crop it. In this tutorial, we are…

Read more »
getx remove controller flutter

Flutter: How to Remove GetX Controller?

While using the Get package in your Flutter project, sometimes you might need to remove Get Controller manually. In order to do so, you can simply call Get.delete function.

Read more »