skip to Main Content

Flutter – ontap not trigger on Scaffold body

my example code is body: GestureDetector( onTap: () { print("tap"); }, child: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[ const Text( 'You have pushed the button this many times:', ), Text( '$_counter', style: Theme.of(context).textTheme.headlineMedium, ), ], ), ), ) but…

VIEW QUESTION

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
Back To Top
Search