Questions tagged [flutter]

Flutter is an open-source UI software development kit / framework created by Google. Flutter apps are written in the Dart language. It is used to develop cross platform applications for Android, iOS, Linux, Mac, Windows, Google Fuchsia, and the web from a single codebase. Flutter was released in May 2017. Largest open-source platform built using UI elements.

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

Flutter) Android Setting Error " error: unexpected element <provider> found in <manifest>. "

I'm going to use flutter_downloader to download the file. For that, AndroidManifest.xml added the following code as instructed. <manifest xmlns:android="http://schemas.android.com/apk/res/...
user avatar
0 votes
2 answers
18 views

Display an image from the asset in the documentation

I'm writing documentation about a variable and I would like to include an image that is inside the project. For example: assets/ |- icons/ | |- my-image.svg lib/ |- my_file.dart I know it is ...
user avatar
0 votes
2 answers
12 views

Why does my widget's build method think I am returning NULL?

I don't understand why this is giving an error. All of my if/else paths will always return something, but the code seems to think there is a path that ends in NULL? The error: The following ...
user avatar
  • 1,288
0 votes
0 answers
11 views

Firebase Auth - How to update user email and execute catch if email is already registered

I know in order to update a user's email the user must have been recently been logged in which I have taken care of with reauthenticateWithCredential(credential) Where I'm at now is trying to update ...
user avatar
0 votes
0 answers
10 views

Flutter : Create a User avatar with pop-up image

How to implement this design, I've tried containers and masking. I've tried clipping and containers but it's not working perfectly. The clipping is circular.
user avatar
0 votes
0 answers
4 views

Is there any plugin that expose REST Apis for prescription

I am working on a third party application & I want to upload the prescription via woocomerce checkout API I want to give a button where user can upload their image from local storage & I want ...
user avatar
0 votes
2 answers
21 views

type 'String' is not a subtype of type 'Map<String, UserNote>' in type cast?

In order to make an HTTP request using Post method, I've created a method called AddNotes as shown below: Future<void> addNotes(UserNote userNote) async{ String url = "dashboard/...
user avatar
-1 votes
0 answers
9 views

Speech to text Recognizer not available when targeting Android

I have this error in android when using speech to text package. Error E/SpeechToTextPlugin( 5572): Speech recognition not available on this device E/flutter ( 5572): [ERROR:flutter/lib/ui/...
user avatar
0 votes
0 answers
19 views

Flutter How to update list in cubit?

I am using Cubit state managament. I have two page in bottom navigation bar. They are Categories and Words page. I listed all categories inside the categories page, and I updated,deleted and added ...
user avatar
1 vote
1 answer
14 views

How do I alter the background color so that it fits inside the CircularPercentIndicator?

I'm trying to alter it so that the area within the Circle gets colored, but not the entire square as shown below. I used fillColor to change the background, Here's what I have Here's my goal Stack( ...
user avatar
  • 63
0 votes
0 answers
10 views

an error occurred node js connect mongodb

node:internal/modules/cjs/loader:936 throw err; ^ Error: Cannot find module './logic/products' Require stack: E:\wz\route\products.js E:\wz\app.js at Function.Module._resolveFilename (node:internal/...
user avatar
0 votes
0 answers
9 views

Flutter Callback in Pageview causing Exception

I'm trying to create a pageview that I can load a widget into that is defined in another file. This works fine, except when I try to add a callback, I get the following error: FlutterError (setState()...
user avatar
0 votes
0 answers
5 views

How to get flutter widget-test-finder to identify DropdownButtonFormField?

I'm trying to write a widget test for a DropdownButtonFormField in Flutter. I can't get the widget finder to find the DropdownButtonFormField. I've tried a few different variations of this test, and ...
user avatar
0 votes
1 answer
20 views

setState cannot be called within function

I am trying to write a setState((){}) function in my code. But I am getting an error when I call it. I am trying to do the following setState(() { index += 1; }); When I try to do this, I am ...
user avatar
0 votes
0 answers
6 views

Amplify DataStore: How to know when sync is finished?

How can we know that DataStore has finished the sync? When doing the first await DataStore.query(MyEntity) after the user logged in, DataStore is returning right away and not waiting for the data to ...
user avatar
0 votes
0 answers
12 views

Flutter overlay with unclickable background

i am using overlay in flutter and if the overlay pop up i want to prevent the user from clicking the buttons behind it like this before click after click
user avatar
0 votes
0 answers
6 views

flutter TextField use cause KeyboardListener alway show keyboard on event

using KeyboardListener to gain barcode from scanner, i can't resolve a incredibly stupid problem. scanning first with keyboardListener work perfectly. events are gained, barcode too, no virtual ...
user avatar
0 votes
2 answers
17 views

Error Running the Application on Android Mobile

I was working on a small flutter project suddenly I couldn't run the app to any android mobile. (on Web it's running Perfectly). It Shows this Error: Could not locate aapt. Please ensure you have ...
user avatar
0 votes
1 answer
12 views

App crashes when LinearProgressIndicator is placed inside a Row

I have the following code in my Flutter project: Row( children: <Widget>[ Text("data"), LinearProgressIndicator(), ...
user avatar
0 votes
0 answers
9 views

Error happened when install video_player library

I got an error today when I installed video_player library that says: Execution failed for task ':app:checkDebugDuplicateClasses'. > A failure occurred while executing com.android.build.gradle....
user avatar
0 votes
0 answers
13 views

How to correct the Buildcontext and context

I am getting an error while loading this page on Flutter, and while trying to add the data to the database. I think there is some problems in the context given by me. I am getting an error: [ERROR:...
user avatar
0 votes
1 answer
18 views

CocoaPods fail for Flutter Gallery

I am trying to start Flutter Gallery with flutter run -d macos. It fails: ... Error: To set up CocoaPods for ARM macOS, run: arch -x86_64 sudo gem install ffi Exception: Error running pod install ...
user avatar
  • 4,515
-1 votes
1 answer
11 views

Flutter add Text styling to a custom class

I want to add text styling to the Score class in this widget. I have another widget that uses this widget to generate a circle with a number in it. Center( child: Container( width: 100.0, ...
user avatar
0 votes
1 answer
12 views

How to document Flutter widgets and screens classes in my app?

I don't know what is the common way and best practices used in documenting UI widgets and components in a Flutter app, I could find a good resource on how to document dart code in general here And how ...
user avatar
0 votes
0 answers
5 views

Flutter - RichText not appear when called

I'm fairly new to Flutter, I created this script where the Accuracy function adds green TextSpan to the AccuracySpeech list if the spoken word is present in the text string or otherwise it is red. The ...
user avatar
  • 121
0 votes
1 answer
16 views

How can i add Row children dynamically in flutter?

How can i add row children dynamically based on the input i get from the calling screen. Lets say i get five from the calling screen passed to the current Screen. How can i add 5 row children before i ...
user avatar
0 votes
1 answer
15 views

How do you change the CircularPercentIndicator's circle area color?

I know that backgroundColor changes the line color, and that progressColor also changes part of the line color. What changes the area color? Here's what I have Here's my goal Stack( children: <...
user avatar
  • 63
0 votes
1 answer
14 views

2 bloc and 1 widget

I have widget (FirstWidget) and 2 providers to this widget on 2 different pages. First screen: BlocProvider<FirstBloc>( create: (context) => FirstBloc() child: FirstWidget(), ) Second ...
user avatar
0 votes
0 answers
12 views

How to implement Certificate Transparency for Flutter

I want to implement Certificate Transparency for Flutter on both iOS and Android but without success, can anyone help me with a Flutter example? I could not find any article or package on https://pub....
user avatar
0 votes
2 answers
12 views

Why Last value of a class object String assign to first one object in flutter

Click Here to see Dartpad Screenshot void main(){ Student file1 = Student.empty; Student file2 = Student.empty; file1.name = 'ABC'; file2.name = 'DEF'; print(file1.name); print(file2.name); } class ...
user avatar
0 votes
1 answer
14 views

Flutter unzip folder is empty (flutter_archive 4.2.0)

In the following code I select a zip file with filePicker that is in the downloads folder of the device, I say that the extraction point will be the same folder but when I select the file and perform ...
user avatar
0 votes
0 answers
11 views

Flutter FirebaseAuth error The function can't be unconditionally invoked because it can be 'null' Want to get QR Code

I want to create a flutter code to generate and show the QR Code. The QR Code is the current logged-in user uid from firebase. But I've got an error in firebase auth. How can I fix this?
user avatar
-1 votes
0 answers
13 views

Flutter - iOS. When will the app close from backgound

I have an app that makes some important api calls on the splash screen. Now, the splash screen is only called when the app is opening, after being closed. However, if the app is in the background, and ...
user avatar
  • 1,292
0 votes
1 answer
21 views

How can I rebuild a statefullwidget page with a parameter changes

enter image description here [import 'package:flutter/material.dart'; import 'package:flutter_application_product/core/fit_container.dart'; class ProductImages extends StatefulWidget { ...
user avatar
  • 3
0 votes
0 answers
26 views

how remove this white line in vs code [duplicate]

This is line how remove please explain and send any video ya full explanation i am very irritate this line
user avatar
  • 1
-2 votes
0 answers
10 views

Authorization on site from application

Site - closed social club. API is deny, only web interface. For authorization need login\pass and google Recaptcha. need advice how normal people do implementation of authorization in that case.
0 votes
1 answer
22 views

Flutter: Error when loading scaffold body from a row page seperate file

I have a home file that contains a bottom app bar, I use it to navigate through 4 other pages by returning them in the Scaffold's body property, I also have an authentification file which also returns ...
user avatar
0 votes
0 answers
4 views

should i use change data capture from server to be able to implement a mobile app notificaition like facebook or instagram

I am new to both flutter and NodeJS. I need your thoughts to help me figure out, how should I implement a mobile app notification like Facebook or Instagram functionality ?. On my backend, I want to ...
user avatar
  • 13
0 votes
0 answers
21 views

Print out the if statement numerous times over - Flutter

Im having trouble posting the if statement repeatedly over within the application. The information comes from an api, and I want this information displayed to the user more than once, I would like ...
user avatar
0 votes
0 answers
6 views

dartUri: Unresolved uri: dart:web_sql dartUri: Unresolved uri: dart:ui

This article is coming up after I run the VS code google chrome run how to fix it dartUri: Unresolved uri: dart:web_sql dartUri: Unresolved uri: dart:ui
user avatar
-1 votes
0 answers
13 views

Google Places CORS Error, serving Flutter Web, Even When Redirecting with NGROK --host-header-rewrite flag?

StackOverflow Community, I have a problem that someone may have solved before, but I find it truly confounding.I'm running a flutter web server on a vm in Azure with flutter run --release -d web-...
user avatar
0 votes
1 answer
17 views

How to update my list in flutter when inserting a record?

When I save a record it doesn't update my list. Can anyone see something wrong in the code? Expanded( child: Obx( () => LazyLoadScrollView( onEndOfPage:...
user avatar
  • 214
0 votes
0 answers
10 views

Full page view - Issues with Auto-fill code - Flutter

In my flutter app, I'm implementing a full page view using - SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky); Now, It works just fine until I reach a page in the app that uses ...
user avatar
0 votes
0 answers
10 views

Flutter awesome_notifications - Bad state: Stream has already been listened to and StreamBuilder error

I am getting the error Bad State: Stream has already been listened to and my console outputs this as well The relevant error-causing widget was: StreamBuilder<User?> StreamBuilder:file:///users/...
user avatar
  • 113
0 votes
1 answer
20 views

Which to use Positioned or Align With Stack in Flutter

enter image description here I want to make this layout, what I did was using stack and positioned, I createad a layout. but after creating the layout it did not scrolling and the layout is not like ...
user avatar
0 votes
0 answers
18 views

flutter getx rxlist in obx error show widget

hi i am using getx on my project . I have RxList and i use Obx for shows my data : RxList dasteBandi = [].obs; void changeTodasteBandi(int index) { dasteBandi.removeAt(index); } and widget is : Obx( ...
user avatar
0 votes
0 answers
16 views

Error while building Bottom Navigation Bar Flutter

I'm new to Flutter and I'm trying to learn by imitating an app so please do not bash me too hard. First of all, I have this main_page.dart that looks like this. This is without the BottomNavigationBar ...
user avatar
  • 77
-1 votes
0 answers
20 views

Flutter- Future<int> is not changing to int

I am trying to make a PopupMenuButton that takes items from my firebase collection, counts the number of items, then makes that many tabs in the Popup area. However, it keeps telling me that I need to ...
user avatar
0 votes
0 answers
7 views

I have issues with cookies in web-scraping - Flutter (Issues with cookies)

GetAttendanceRequest() async { var client = http.Client(); var posturl = Uri.parse('https://posturl'); var geturl = Uri.parse('https://geturl'); try { // Getting the cookie 🍪 var ...
user avatar
0 votes
0 answers
9 views

'streamChatState != null': You must have a StreamChat widget at the top of your widget tree

I am new to flutter and im trying to run a chat app with getstream chat api and firebase. I keep running into an error every time i try to sign in or sign up Screenshot this is main.dart this is my ...
user avatar
  • 3

15 30 50 per page
1
2 3 4 5
2494