96,218 questions
            
            
            1
            vote
        
        
            0
            answers
        
        
            40
            views
        
    Flutter: "thread 7 is not paused" message in Call Stack of VS Code. What does this mean?
                I am trying an example code and every time I hit the Hot Restart button the message in the VS Code editors CALL STACK sidebar display changes, incrementing the number by one.
Thread 7 is not paused
...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            74
            views
        
    When I wrap it in SingleChildScrollView, it overflows
                enter image description here
SingleChildScrollView(
        child: Wrap( 
          direction: Axis.horizontal,
          alignment: WrapAlignment.start,
          spacing: 5,
          runSpacing: 5,
...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            50
            views
        
    What should I do? Dart warning: Unnecessary cast. but If I don't do this, my code will fail. its happend when jsonlist convert to List<T>
                When I use Flutter(dart) to develop a platform app in Android Studio, I want to encapsulate a general json to any type List tool(_fromJsonList). Below is my lowest level conversion function and type ...
            
        
       
    
            1
            vote
        
        
            0
            answers
        
        
            49
            views
        
    How do I make this graph in flutter?
                I am working on a Flutter project where I need to replicate the graph shown in the attached image. I've tried using both Syncfusion Flutter Charts and fl_chart, but I couldn't find a way to perfectly ...
            
        
       
    
            2
            votes
        
        
            1
            answer
        
        
            61
            views
        
    Theme color not updated properly inside a ListView in Flutter
                Recently I faced the following issue:
I have a Card inside a ListView, I wanted to theme the card by setting the color to Theme.of(context).colorScheme.surfaceContainer but the issue now is that when ...
            
        
       
    
            1
            vote
        
        
            2
            answers
        
        
            71
            views
        
    I am getting this error while trying to run the emulator in Android Studio
                FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
> Multiple build operations failed.
      Cannot parse result path string:          ...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            37
            views
        
    Why doesn't piping nullable stream into a non-nullable stream controller cause a runtime but not a compile-time error?
                The following code compiles:
import 'dart:async';
void main() {
  final streamNullable = StreamController<int?>();
  final streamNotNullable = StreamController<int>();
  
  streamNullable....
            
        
       
    
            1
            vote
        
        
            2
            answers
        
        
            39
            views
        
    Does GetX dispose of controller data when navigating to a different screen with another controller?
                I am using multiple GetX controllers in my Flutter app, and I’ve noticed that when I navigate to a different screen that uses a different GetxController, the data in the previous controller seems to ...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            35
            views
        
    Ripple effect behind a widget (no press)
                I am currently struggling to create a ripple effect behind a given widget. I am only able to create circular ripples.
The requirements are as such
The ripple should appear as if coming from behind ...
            
        
       
    
            2
            votes
        
        
            2
            answers
        
        
            86
            views
        
    Dart/Linter (Flutter) no longer detects const constructors?
                I am just getting back into coding with Flutter, and it used to be the case that my IDE would tell me when it was better to use const constructors (I use VS Code). I haven't seen that at all in my ...
            
        
       
    
            -1
            votes
        
        
            0
            answers
        
        
            31
            views
        
    Flutter/dart library for recording audio from mic as Uint8list as live stream
                I have been researching  Flutter library for recording audio from mic in Uint8list format as live stream for example record sound per second and store it's byte equivalent. and my goal is to broadcast ...
            
        
       
    
            1
            vote
        
        
            2
            answers
        
        
            62
            views
        
    How can I make sure the inputted email is a real one
                I am new to flutter and dart, but have some fundamentals of programing. When I enter a random email with a random password, Firebase will create a user with that email and password via ...
            
        
       
    
            1
            vote
        
        
            0
            answers
        
        
            30
            views
        
    How to check if the file is actually being uploaded from my device's local storage?
                I basically have a webpage that accepts files like docx, xlsx, and text, passes them to a REST API, does some conversion, and then outputs an application/octet-stream file with the name: <file_name&...
            
        
       
    
            1
            vote
        
        
            2
            answers
        
        
            58
            views
        
    can't find the class name "MyApp" in widgets_test.dart file
                -> In the above code I am having problem in my widgets_test.dart file where its telling can't find the class name in my above code.
-> But I have changed my code like there is no "MyApp&...
            
        
       
    
            1
            vote
        
        
            0
            answers
        
        
            388
            views
        
    Android Studio Error handling SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML file of version 4
                My program versions from flutter terminal:
Flutter 3.27.3 • channel stable •
https://github.com/flutter/flutter.git Framework • revision
c519ee916e (3 weeks ago) • 2025-01-21 10:32:23 -0800 Engine •
...
            
        
       
    
            2
            votes
        
        
            1
            answer
        
        
            42
            views
        
    How to reduce size of check in ChoiceChip
                I am currently using Flutter to develop my application.
I currently have some ChoiceChip's I am using. As an exmaple, this is one of them:
ChoiceChip(
  iconTheme: IconThemeData(size: 5),
  label: ...
            
        
       
    
            -1
            votes
        
        
            0
            answers
        
        
            26
            views
        
    Customize Stepper top indicator in Flutter
                I want to create a generic Stepper that take's any number of steps (widget).
StepIndicator
class StepIndicator extends ConsumerWidget {
  final int positionInStep; // no need of it I guess
  final int ...
            
        
       
    
            1
            vote
        
        
            0
            answers
        
        
            37
            views
        
    How do I animate column/row size with Flutter TableView?
                Using the package two_dimensional_scrollables I want to expand and animate the size of a specific column when tapping on it. The code below listens to the user action to change the column size and ref....
            
        
       
    
            0
            votes
        
        
            2
            answers
        
        
            51
            views
        
    Flutter upgrade command gets stuck, no output at all
                Recently, when I try to upgrade Flutter, itself, it gets stuck and there is no output in console. Then it waits infinitely, and is totally stuck.
Even adding --verbose does not help.
Sometimes a ...
            
        
       
    
            1
            vote
        
        
            2
            answers
        
        
            30
            views
        
    appbar overlaps webviewWidget
                When scrolling the webview, its top part goes behind the sliverappbar. How can this be fixed? sliverappbar has a pinned property that solves this problem, but SliverToNestedScrollBoxAdapter does not.
`...
            
        
       
    
            1
            vote
        
        
            0
            answers
        
        
            84
            views
        
    OneSignal Notification Click Listener Not Working in Flutter
                your textI'm integrating OneSignal with my Flutter app and trying to capture notification click events. While the OneSignal dashboard shows that the event is recognized, my Flutter function is not ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            48
            views
        
    Flutter NestedScrollView with SliverAppBar Leaves Extra Space Underneath
                Title:
Flutter NestedScrollView with SliverAppBar Leaves Extra Space Underneath
Body:
I'm using a NestedScrollView with a SliverAppBar that has a search bar as its title. The app bar collapses ...
            
        
       
    
            1
            vote
        
        
            0
            answers
        
        
            49
            views
        
    In FlutterFlow, how do I pass a Widget Builder into a Custom Code Widget and modify its parameters or state?
                In FlutterFlow, in my custom code Widget I want to pass in a Component (ExhibitCellStatic) as a Widget Builder and use it as an overlay. However, I want to modify its data before including it in my ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            27
            views
        
    Is it possible to add a clickable Google map POI eventlistener in flutter
                I'm making an android app that use google map SDK. My app need to to be able to click on the POI that are shown to get the place information, however, I am unable to get the POI info. The was a ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            50
            views
        
    Create a stream that will emit a single constant value to every subscription once
                I want to create a stream that can emit a single value to every subscriber, no matter when they subscribed.
Ideally, the following code should print out two 42 before done, but none of the given ...
            
        
       
    
            2
            votes
        
        
            1
            answer
        
        
            74
            views
        
    Not able to rename/move file after adding sandbox capabilities in my Flutter Mac Application
                Code Block:
 String originalPath = '/Users/dhavalkansara/Library/Containers/com.myapp.apps/Data/Library/Caches/encryption-decryption/dummy copy 8.pdf.txt';
    String newPath = '/Users/dhavalkansara/...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            26
            views
        
    Flutter screen parameter key moving from one screen to other
                onPressed: () {
                    Navigator.push(
                      context,
                      MaterialPageRoute(
                          builder: (context) => ProtocolListScreen()),
   ...
            
        
       
    
            -1
            votes
        
        
            1
            answer
        
        
            78
            views
        
    Why does vscode give me the following error even though I installed everything without any problems?
                FAILURE: Build failed with an exception.
Where:
Build file 'C:\Users\asali\OneDrive\Masa�st�\flutter_application_1\flutter_application_1\flutter_application_2\android\app\build.gradle' line: 2
What ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            16
            views
        
    Flutter Submodules Cause Dart Files to Be Unrecognized in Android Studio
                Issue:
I have a Flutter project with git submodules, and Android Studio does not recognize Dart files when I open the project. The issue happens across multiple versions of Android Studio (both ...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            47
            views
        
    Very strange message when analyzing the source code
                Very strange message when analyzing the source code.
int? x;
if (x == null) {
  //
}
The operand can't be null, so the condition is always 'true'.
Remove the condition.dartunnecessary_null_comparison
...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            44
            views
        
    Get a property value from a referenced collection in a listView item in flutterflow
                I have the following structure in a Flutterflow page:
ListView(
    Container(
        Text()
   )
)
The listView is bound to a collection named peresented_foods with the following structure:
...
            
        
       
    
            4
            votes
        
        
            2
            answers
        
        
            217
            views
        
    How can I scroll to a substring in a TextField
                My textfield has a lot of text and is scrollable. I want to scroll to a specific substring or index (marked with red) when I click on a button. How can I achieve this?
I have tried following solution:
...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            30
            views
        
    Flutter/Dart- DAO interfaces- can't overload method parameters
                Wanted to create an interface for DAOs that can be "overloaded" with different method params types:
abstract class DaoInterface {
  Future<List<Object?>> findAll();
  Future<...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            28
            views
        
    Problem with hive and riverpod implementation and async funtions
                Hey im building an app (I cant go deep into the functionality), im using hive as my local database and riverpod as my state management tool.
i just want to store appsettings in my local database and ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            77
            views
        
    Flutter:- MainActivity.kt:4:8 Unresolved reference: io
                I'm getting the below issue.
Running Gradle task 'assembleDebug'...
e: file:///Users/technologies/Documents/MyComputer/project_git/android/app/src/main/kotlin/com/example/testproject/MainActivity.kt:4:...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            58
            views
        
    How to merge table rows in Flutter
                i want to show a table like the one in the image : 
i found some widgets i can use like Table and Datatable but none of them give me the possibility to merge the columns like shown in he picture for ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            25
            views
        
    How to run this code emulator @react in the terminal :flutter
                When I type this code: emulator @reactto run the emulator it shows:
emulator: The term 'emulator' is not recognized as a name of a cmdlet, function, script file, or executable program.
I don't know ...
            
        
       
    
            1
            vote
        
        
            2
            answers
        
        
            44
            views
        
    Why isn't my image filling the space with BoxFit.fill in Flutter?
                I am trying to make an image in a Row widget (second ListView item) fill the entire available space, but it is not working as expected.
I’ve set the BoxFit.fill property, but the image does not ...
            
        
       
    
            1
            vote
        
        
            0
            answers
        
        
            68
            views
        
    Manual garbage collecting in dart
                I have a problem: some operations (uploading a huge file by chunks) occupy pretty large chunks of RAM (2-3 mb each). During that uploading process, my app occasionally suffers from some freezes. ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            54
            views
        
    Exception in thread "main" java.lang.RuntimeException: Timeout of 120000 reached waiting for exclusive access to file
                I'm begining with flutter and when I run my project I have this problems. Could everyone help me fix this error. I've post my debug console here
My JDK version is 17 and gradle is 7.3.3. I tried to ...
            
        
       
    
            4
            votes
        
        
            0
            answers
        
        
            508
            views
        
    Getting google api headers & flutter_facebook_auth dependencies error
                Getting these errors on my code. Tried upgrading the dependencies of google_api_headers & facebook, but the issue continues.
Current dependencies -   google_api_headers: ^1.0.0,
...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            43
            views
        
    Flutter pdf - Exception has occurred. TooManyPagesException
                when i'm generating pdf for smaller data/text its working fine but when i try to generate with large data it throws Exception has occurred. TooManyPagesException
here's my generatePdf method:
void ...
            
        
       
    
            -1
            votes
        
        
            0
            answers
        
        
            38
            views
        
    Suddenly, errors started popping up all over the application code: The getter 'EdgeInsets' isn't defined for the class 'FlBorderData'
                Suddenly, errors started popping up all over the application code: The getter 'EdgeInsets' isn't defined for the class 'FlBorderData'
The name 'all' isn't a class.
Try correcting the name to match an ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            26
            views
        
    Flutter device orientation lock info
                Do you know a way to get info about orientation locked or not?
I used package https://pub.dev/packages/rotation_check, but its working only on android, what about iOS? Is it possible?
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            36
            views
        
    using camera package in flutter and the live feed it is showing is always horizontally tilted but the image it captures is correct
                I am trying to make a pdf converter application and i have used camera package to implement camera feature in my app but the thing is, the live feed it shows is horizonatally tilted i don't know why i ...
            
        
       
    
            0
            votes
        
        
            2
            answers
        
        
            68
            views
        
    Is there a way to directly callback from C/C++ to Dart on the Android platform?
                I know that it's possible to call C/C++ from Dart using FFI, but it seems that on Android, there's no way to call Dart directly from C/C++.
While Dart_PostCObject is used to send data from C/C++ to ...
            
        
       
    
            0
            votes
        
        
            3
            answers
        
        
            78
            views
        
    I have a problem with a Init State when Login Out from Firebase
                I have an app that loads a list of stores a client has activated in a subscription.
I use a SetState and InitState to load the information and it works, but when i go back to the main page and press ...
            
        
       
    
            1
            vote
        
        
            2
            answers
        
        
            58
            views
        
    Flutter:Do an operation if await takes more then 2 seconds
                final response = await _errorReportRepository.sendErrorReport(event.errorReport);
Hi,I want to do an operation if this await takes more than 2 seconds and not stop the process.
Like an example. If it ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            45
            views
        
    Bluetooth package for Bluetooth classic devices in flutter
                I have Bluetooth classic device and I have used bluetooth_classic package and succeeded on getting the device in scan.
but I am not able to stop the subscription which I started during scanning ...
            
        
       
    
            1
            vote
        
        
            4
            answers
        
        
            57
            views
        
    How to handle the error type 'Null' is not a subtype of type 'bool' in type cast?
                How to write it properly to avoid Unhandled Exception: type 'Null' is not a subtype of type 'bool' in type cast?
    final reLoadPage = await ...; // can be null
    if (reLoadPage as bool ?? false) {...