skip to Main Content

Flutter – How to create multipart request in dio?

I used to send file to server by HTTP package like this: final request = http.MultipartRequest('POST', postUri); request.headers.addAll(Parameters.getHeader(User.accessToken!)); request.files.add(multipartFile); final responseStream = await request.send(); but now I'm using Dio package as it gives us more tools, so I implemented it…

VIEW QUESTION

Flutter Expandable Listview

I have the below list of objects that am trying to make into an expandable list grouped by month. Which is a value in the list. { "status":"Success", "payments":[ { "id":291, "user":{ "id":12, "userID":"cvWLyHRla", "name":"Bill Obama", "email":"email@user1", "username":"username1", "profilePic":null, "created_at":"2023-05-08T00:52:11.000000Z"…

VIEW QUESTION

Create custom shape in flutter

I'm working on a Flutter project and I need to create a custom shape that looks like the one shown below: I've attempted to use fluttershapemaker, but I couldn't quite achieve the exact shape I need. I've heard about the…

VIEW QUESTION

Flutter – How can I solve FAILURE: Execution failed for task ':rive_common:buildCMakeDebug[arm64-v8a]'

I got this error while trying to build my flutter application FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':rive_common:buildCMakeDebug[arm64-v8a]'. > com.android.ide.common.process.ProcessException: ninja: Entering directory `/home/mcrops/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/.cxx/Debug/13194d4d/arm64-v8a' [1/64] Building CXX object CMakeFiles/rive_text.dir/home/mcrops/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/rive_counter.cpp.o FAILED: CMakeFiles/rive_text.dir/home/mcrops/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/rive_counter.cpp.o /home/mcrops/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++…

VIEW QUESTION

Number of Lines in a Text Field in Flutter

I want to get the number of lines in a text field. Currently, I am using this method: TextField( scrollPadding: EdgeInsets.zero, controller: textEditingController, onChanged: (value) { setState(() { lineLength = 'n'.allMatches(value).length + 1; }); }, maxLines: null, textAlign: TextAlign.center, keyboardType:…

VIEW QUESTION
Back To Top
Search