Category "dart"

Flutter File Picker package is not working at all

I followed this tutorial online: https://www.youtube.com/watch?v=LlO5jydXws0 For some reason when I press the button to open a file, it does not work or do anyt

Dart/Flutter remove boilerplate parameters in named constructor to reduce code size

I have a class with multiple named constructors. All of them have a set of defined parameters and for now I have to rewrite them all over again when I add a new

Can someone explain to me what is the details of line 5 return numberList[index] + sum(numberList, index - 1);

Can someone explain the syntax process? How line 5 will be implemented and what is the sequence for these three elements and what is the value each time in the

Dart snapshot generator failed with exit code -9

Debugging mode working well but when I tried to run it as release mode or building apk it's not working. Tried all things that I could but it's not working (Cre

"ChromeProxyService: Failed to evaluate expression" error

I get this error when I want to start my project with chrome device via flutter. The error is as follows; And vs code redirects to this line ; Because of thes

Stop flutter from chaing fontSize depending on phone font

I'm building an app there is one problem. The font is causing overflow when I set my phone font to a bigger size. I tried using this : class SizeConfig {

Exception: Context is null, please call ToastContext.init(context) first

The issue is seen on the Toast.dart and Armodel.dart. if possible please suggest me how do i implement OCR as i followed up the codes from Pubdev but still when

Problems when receiving websocket data(it's json but result is list of number)

I am a beginner developer developing with Dart. There was a problem while working with websockets. According to the API help, it's obviously JSON. but data is l

Flutter. Play raw h264 from WebSocket

I'm trying to display live video in flutter coming from video server. Video server sends raw h264 video through websocket. I know that this video can be played

Method has automatic access to build context

Here is a method that is called within my application when a 'save' button is pressed. The method accesses a ChangeNotifier instance using the Provider object a

How to make post request as form-data with Get x package in flutter?

Hi i need to send signup body as form-data in flutter with getx. here is my model clas class SignupBody { int? responseStatus; String? message; String? userId;

Error output from CocoaPods: ↳ Searching for inspections failed: undefined method `map' for nil:NilClass

So, guys, this problem happening every time when i try to add a cloud_firebase in pubspec.yaml. My mac is working on intel processor, so the solution sudo arch

How to avoid dirty elements using Provider and TabBarViews to dynamically generate forms in Flutter?

I'm relatively new to Flutter and in this app I'm making a multiple tab checklist form built from a JSON fetched from an API in my server. To store this info I'

Can I build a Frontend in FlutterFlow then export to Flutter to finish coding?

I am learning flutter and dart at the moment. I came across FlutterFlow and I was wondering, could I use FlutterFlow to build the UI of the app, then turn aroun

How to prevent changes to copied variables?

I have two variables, A and B with Map data type, when A is copied with B then I make changes in A, but B also changes. The expected result only A changed, how

The iPhone app closes immediately when I open the map [closed]

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString objectForKey:]: unrecognized selector sent to

Flutter http post request to a PHP file

I am using Flutter for mobile app development. I need to make a POST request to a PHP file in order to save data in my MySQL server. However, I check the reques

Error when listviewBuilder scrollDirection is horizontal

I got this very simple code, but somehow I get an error when I set scrollDirection to Axis.horizontal I invoke this widget in Page that has MaterialApp and Scaf

Using Dart 2.17 Super Initializer for Widget key

Now that Dart 2.17 allows for the super initializer feature it seems that I can now replace my default boilerplate class WidgetName extends StatelessWidget {

Class X is implemented in both places One of the two will be used Which one is undefined M1

I use Mac M1 and After I upgrade Xcode 13.3.1 , I got this error when I make a build for the project: Class AppleTypeCRetimerRestoreInfoHelper is implemented in