Category "flutter"

Failed to package flutter xcode

I am trying to run my flutter project on my ios device, but I got an error in the xcode that says "Failed to package /Users/user/StudioProjects/project." Any so

Create Gradient on Top Right of the page in Flutter

Hy everyone, I need to know, how can I create gradient on top right of the page like this picture? I tried with this code, but it's still not working for me: S

flutter onesignal add problems "Expected to find project root in current working directory."

When I want to add onesignal to flutter, I get the following error. How can I solve it? PROBLEM PHOTO

LateInitializationError: Field '_instance@141084504' has not been initialized

When using getX and Flutter I get following error: LateInitializationError: Field '_instance@141084504' has not been initialized This is the code: import 'dart:

Argument type 'String?' cannot be assigned to parameter type 'String', Triggering Dart's Null Safety either way

In this current snippet I have declared notification to be nullable but get an null safe error for the if loop's notification.body and notification.title. Here'

Can't watch object instance with Riverpod

In a Flutter web project, I'm having this issue with Riverpod: Consumer( builder: (context, watch, child) { final om=watch(human); return Text(om.na

How to use the data from different model and context?

I made the small app, and designed like this: return MultiProvider( providers: [ ChangeNotifierProvider(create: (context) => AModel()),

The argument type 'OrderItem' can't be assigned to the parameter type 'OrderItem'

I am unable to assign my one class to another even though I have imported the lib for them. I am following a course . In this I will fetch the orders from fireb

Android Studio gone nuts all of a sudden

Firstly, Look at the screenshot that I've attached, It is giving me red lines (look to the right) in my entire code (386 errors in 766 lines) all of a sudden (

Flutter settings.name incomplete on page reload

I have a route setup. In the browser, it looks like this. localhost:1234/#/member/D8B5D7F17639A28FE83C47AFFC69592E? I use an onGenerateRoute function like this

What to do when listview.builder does not fit screen width in Flutter

The following is what is returned from a Flutter widget: return Center( child: Column( children: [ SizedBox(

Flutter Firestore: FirestoreBuilder with initial data

I'm making my first Flutter app and I encounter a problem and doesn't found any solution for it. I have a view where I render a Firestore document, and there is

flutter google_mobile_ads reqires higher android SDK version

I want to add google ads to my app. I rearrange pubspec file and AndroidManifest.xml file in android\app\main. but I get error as The plugin google_mobile_ads r

First file created with Flutter leads to white screen

I got Flutter installed. No problems with flutter doctor. Installed Dart en Flutter in Android Studio, opened a new Flutter project and chose for Flutter (and f

Changing AudioHandler.mediaItem without a Queue

I am working on my first Flutter app which implements basic stream functionality. Upon starting, the app loads a stream from source A. The app contains navigati

How to overwrite color of ElevatedButton with LinearGradient?

I am trying to do ElevatedButton with LinearGradient, I am giving it to Container around my button, but it's not affecting it. I tried to set backgroundColor of

How to use jitsi_meet package in production?

I am using jitsi_meet package in flutter for live streaming. But I have read that, you can't directly upload the jitsi_meet apk to the play store. You have to c

Select center item of ListView Flutter

I need to implement a scrollable list, so that the element in the center is automatically highlighted. How to keep track of the central element and constantly h

How can I test that Flutter BlocListener navigates and renders an initial Welcome page

I am trying to test that a WelcomePage widget is found when my App is first run and no authentication has yet happened. No matter what I try, I cannot verify th

Firebase Read Data Issue (Bad state: Snapshot has neither data nor error)

Showing this problem every time suddenly, There was no issue at first. AVD can run app but in physical device its not even running Column( children: [