Category "flutter"

How do you detect the host platform from Dart code?

For UI that should differ slightly on iOS and Android, i.e. on different platforms, there must be a way to detect which one the app is running on, but I couldn'

Mockito generate an invalid override for Methods that have as parameter an other generated class (generated from Moor)

We generate our database entities with moor. We have an database service as an facade for all database access. There we have the method Future<DatabaseEntry?

I want to build a dynamic Tab Bar and corresponding pages which contains a list of items corresponding to that tab using complex JSON data in flutter

I'm trying to build a dynamic Tab bar using flutter that displays tabs with the tab names corresponding to my JSON data and then for each key I want to map the

Can't play sound in Flutter Android using just_audio

So, I'm trying to have this sound from Flutter assets when I click the button. And I've tried many different packages by this moment and none of them seems to w

Flutter: Play sound on button press

I'm very new to programing and especially flutter. I want to write an soundboard, basically a list of buttons and the job of each button is to play a sound that

How to make a phone call from a flutter app

I try to make a phone call from my Flutter app. With the following code: UrlLauncher.launch('tel: xxxxxxxx'); I found this Function on the GitHub flutter repo:

How to set data to TextEditingController using StreamBuilder?

I'm loading some data from database (data that user previously saved, for editing). I used StreamBuilder to set data. I have form , which i used to display data

How to update a single item in flutter list, as a best way

How to update a single item in flutter list? I need best way. Why I am saying best way? I need to update a single item and dont want when update a single ite

What is the default Curve behavior for PageView in Flutter?

The PageController of a PageView has a function animateToPage which allows to define the curve effect during page swipe. Future<void> animateToPage(

Flutter stuck on 'flutter' command - no output to console and it doesn't ever finish

I started following this tutorial about Flutter, and I followed each step until the installation of Flutter on windows, even added flutter to PATH. Now, once I

How to share files with a different extension

As I said in the title, I'm trying to share files converting an image file to PNG format. I have tried to use the packages share_plus and social_share. I have

Flutter stuck on 'flutter' command - no output to console and it doesn't ever finish

I started following this tutorial about Flutter, and I followed each step until the installation of Flutter on windows, even added flutter to PATH. Now, once I

Listen to real-time change in Flutter from node.js api (mysql database)

I created my own api for (get/post/put/delete) methods using node js.....and implemented in flutter....how can i get real time change (change state without ref

Remove debug banner from this specific main.dart

Not sure where to add the: debugShowCheckedModeBanner: false, I'm trying to build for ios with xcode. Here is the current main.dart: Not sure what I need to cha

Flutter Emulator Error Connecting to Service Protocol

I am having an Issue with Flutter in Android studio, where whenever I run my flutter app, it will print this error; "Error connecting to the service protocol: H

In Dart, is it possible to pass an argument in a singleton?

class Peoples { late int id; late String name; static final Peoples _inst = Peoples._internal(); Peoples._internal(); factory Peoples() { retur

How to catch platformException in flutter/dart?

I am getting Exception has occurred. PlatformException (PlatformException(sign_in_canceled, com.google.android.gms.common.api.ApiException: 12501: , null)) w

CocoaPods could not find compatible versions for pod "Firebase/CoreOnly"

I've update my flutter package to the last versions and now IOS doesn't work anymore. When I try to update the pods it's shows this error: [!] CocoaPods c

Obx ListView not updating after value changes

I am having a RxList called todoData. On the basis of this list, a ListView.builder builds a list and in each list there is a button. When this button is clicke

How to get the snapshot.error in Flutter 2?

I updated my Flutter app to Flutter 2, and now when I try to get the snapshot.error in my StreamBuider I get this These are validators with Streams. class Logi