I was trying to use flutter video_player and it’s not playing or loading. One of the reasons where the url. My url of the video from the network contained empty spaces, looks like video_player does not recognize this kind of link. There should not be any empty space in url like below You may replace…
Month: June 2023
Firestore Database and permission
Here we will see about firestore database and it’s permission for read and write. From the above picture, you see there’s a Firestore Database on the left, if it’s not there, you need to select it from build menu of your console, see at the bottom of the picture on the left, you will see,…
Failed to precompile build script…This is likely caused by a misconfigured builder definition
You may get the error if you run riverpod code generation tools riverpod Failed to precompile build script .dart_tool/build/entrypoint/build.dart.This is likely caused by a misconfigured builder definition. The other day, I was using Riverpod 2.0 for code generation and state management using Flutter Riverpod Task management app. But I got the above error. There could…
Flutter Todo Model Class
This is a very common Todo model class, here is the code. It’s used throughout many applications. So it’s better you save. I have used them in many applications on Flutter. Here I have created all the fields as optional which means some fields you may, some fields you skip. This class also comes with…
Unhandled Exception: type ‘_Map‘ is not a subtype of type ‘String?’
Unhandled Exception: type ‘_Map<String, dynamic>’ is not a subtype of type ‘String?’ The other day I was working with restful api call in my flutter app and I got the above error. We often get this error, and how to solve this error? Before solving you need to understand why you have this error at…