Questions tagged [flutter]

Flutter is an open-source, mobile app SDK to help developers and designers build modern mobile apps for iOS and Android.

0
votes
0answers
4 views

SQFlite slow transactions

Is there something wrong with my code below? Cause transaction takes 5x to 10x more time than without transaction. final db = await DBProvider.instance.database; final Random random = Random(); ...
-4
votes
0answers
18 views

How to implement post api in flutter

I am implementing post API in flutter for login with parameters like G mail and Phone Number. I have confused to make that. I need a complete solution of calling a Post API. Will anyone help me ...
0
votes
0answers
7 views

does buildSuggestions of showSearch method run continuously?

I'm new in flutter and I have a function to search working with API,and i have created a function called _fetchData() inside StatefulWidget: _fetchData() async { print("fetchData Run"); print(...
0
votes
0answers
12 views

Fixed Title with scroll elements

I'm new to flutter and I'm trying to make simple one screen, with FIXED TITLE and below it scrolable "child or Column" with few elements like in the screenshot. There will be two elements initially ...
0
votes
0answers
11 views

How do I get the phone number when there is an incoming call in flutter?

How do I get the phone number of an incoming call and SMS in flutter?
0
votes
1answer
10 views

Flutter - Expansion Panel Header - Whole header clickable

I've build a list of expansion panel and I find it annoying that you have to press the arrow to expand it. Intuitively, you want to expand the panel when you click anywhere on the header (feedback ...
0
votes
1answer
16 views

Flutter : Custom TextFormField is not saving values onSaved

onSaved is not saving my values in the main class from where i am calling this class i want to generate custom form as per api return data and bind the data in form and then it should validate as ...
-1
votes
1answer
14 views

Flutter - How to align selected item from DropdownButton?

I am unable to align the selected item from DropdownButton to the center. I have tried child: Center() under the DropdownMenuItem, it is able to align those items however after I have selected one of ...
1
vote
1answer
26 views

The method 'add' was called on null

I try to parse my firebase collection and return a list of Service type. Here I have replaced my firebase call and parsing with a hard code for simplify it. Future<List<Service>> ...
0
votes
1answer
12 views

flutter webview keyboard cannot show up

I tried to integrate the webview, in the flutter app. After adding the code in the example, the page loads normally, but when I click on the input box in the page, no soft keyboard pops up,
0
votes
2answers
17 views

How do you call one future and then pass that return value into another future to run?

I am trying to take a picture with my Android camera, upload that picture to Google Firebase Storage, get the downloadable URL of that image on Storage, and update the user's photo feed on Firestore. ...
-2
votes
1answer
19 views

Why do I lose value of variable?

I am passing a value from a previous Stateful Widget screen into another Stateful Widget screen. Why am I am losing the value of searchTermID once it gets to the point after it calls the constructor? ...
-1
votes
1answer
25 views

I have a problem with image loading in flutter. It says you should find a a key in assets

I want to know why the photo not appear Image.asset('assets/Images/food.jpg',width: 600,height: 240), Text('food paradise') and this is the error Invalid schema detected in pubspec.yaml, please ...
0
votes
1answer
16 views

How to get html meta data using flutter webview

I need to get meta data from html head using flutter_webview. In this case I need to get value from <!-- Chrome, Firefox OS and Opera --> <meta name="theme-color" content="#4285f4"> so I ...
0
votes
0answers
13 views

How to get Firestore fields and update local variables for widgets

I can't get Firestore to look up items with a document ID and obtain the fields from those documents to update my local variables. I am attempting to use QR codes for a library checkout system ...
0
votes
0answers
11 views

Static Final Firestore and CollectionReference

I'm using Flutter and created a "util class" (abstract) for Firebase, something like this: abstract class FirebaseUtil { static final Firestore _firebaseRef = Firestore.instance; static ...
0
votes
0answers
7 views

Url not resolve on release apk but resovle on debug

My app have to reach a rocket.chat server. When I use VSCode in debug mode is working. But when I build the app publish in beta version and I test it on the same phone I have the error ...
-1
votes
0answers
11 views

How to monitor changes to TabController

I want to listen to TabController's index. I can only get the first value of 0 by direct print. Is there any way to get TabController.index by clicking tabbar?
0
votes
1answer
25 views

How to write chain functions DART?

I'm writing the flutter application and need a chain function. I found some solutions but it didn't work for me. How it's written? For example.(i written custom get function) get().addHeader(value:...
0
votes
0answers
8 views

Live-streaming via camera for firebase with flutter/dart

Is it possible to add live-streaming via flutter/dart? Is the camera on dartpub good enough? I want the livestream to be able to connect to firebase.
0
votes
0answers
13 views

How to use FlutterTts (Text to speech)

I'm creating an app and I want to use FlutterTts but when I try to create an instance it dosen't find the import for recongnizing. Here is what I tried https://pub.dartlang.org/packages/flutter_tts
0
votes
0answers
18 views

get the contents of my dropdownbutton in a variable

Hello I'm a student and a flutter apprentice, I'm trynna get the contents of my dropdownbutton in a variable in order to fetch all the informations on my showDialog (_showDialogVerif) as you can see ...
0
votes
2answers
16 views

How to print several markers google map api 0.5.7 Flutter

I am trying to use google map api last version (0.5.7) but on my map there is only one marker that is printed but there are many markes on the database and it was working well before I tried to put ...
0
votes
0answers
12 views

PlatformException throw unexpected

I call method in ScopedModel from outside ScopedModel (on button press). But PlatformException is not catch as I expect. PlatformException is only catch in ScopedModel Method try/catch. It is not ...
0
votes
0answers
20 views

How to recreate the Facebook Messenger gradient effect in Flutter

I'm building an application and I want to create an effect similar to this in a ListView. https://css-tricks.com/recreating-the-facebook-messenger-gradient-effect-with-css/ If I would know the widget'...
1
vote
1answer
16 views

How to get access scoped-model models

I am trying to get access to my models at _buildProductCard widget: Widget build(BuildContext context) { return ScopedModelDescendant<ConnectedProductModel>( builder: (...
0
votes
0answers
18 views

How to create a custom shaped canvas in Flutter?

Could any of you please help me to create a custom-shaped-canvas in Flutter? My requirement is to draw with free hand using custom paint within a bounded shape. Thanks in advance.
0
votes
1answer
42 views

App store iOS app is getting rejected for Performance: App Completeness issue

After reviewing my Flutter app, it was rejected with the following information. I am not sure what the exact problem might be. Below is what apple has to say about why my app is rejected. 1 ...
1
vote
0answers
22 views

Shrink ClipRect to its content

I use a ClipRect to only show a part of a widget, but I need it to shrink to its content. Is there any way to do that? class ClipExample extends StatelessWidget { @override Widget build(...
0
votes
0answers
15 views

Flutter. Set ListView initial position on an very large ListView

I want to create an almost infinite list of element, but I want to set the initial position of the list to some specific element. Something like this image: Where index 0 would be the initial ...
0
votes
1answer
19 views

how to make row enter new line if width is filled

I have a container which contains a row .. this row has set of items .. i want when the items in the row reach the end of the container width.. to start a new row inside the container .. this is what ...
0
votes
0answers
11 views

When do you use state.didChange() in flutter?

I'm reading up about creating forms in flutter, and in the article the author does this to sync up a dropdown field with a piece of state: child: new DropdownButton<String>( ...
0
votes
0answers
8 views

Per platform dependencies

I need to include a dependency only for the Android version, is it possible? And if so can something similar to #if DEBUG #else be used to add it in some .dart files only for the android version of ...
0
votes
1answer
11 views

How to fix FirebaseAuth.instance.currentUser() in flutter app using firebase_auth package? It is always returning null

I am using the firebase_auth package to implement the authentication functionality in my flutter application and for auto-login of user I need a response from FirebaseAuth.instance.currentUser() which ...
0
votes
0answers
31 views

Flutter dart function skipping to end of function after await

I have a function with the keyword async and after the await is done, it skips a bunch of lines of codes and goes to the end of the function after the await is done. Does anyone know what I am doing ...
0
votes
0answers
5 views

getting _CompileTimeError while running WebViewScaffold

i am working on a flutter project which shows the details of a selected news and uses the url of its source information, i want to show that website on my flutter app using WebViewScaffold. this is my ...
0
votes
0answers
11 views

Accessing multiple calendars in flutter

We need the ability to access multiple google / Apple calendars from flutter. We are using the plugin "device_calendar: ^0.0.7". It works great but now the requirement is the ability to connect to ...
0
votes
1answer
19 views

how to getIdtoken on authenticaion

I just need to print Idtoken of user's once he is authenticated. I'm using phone authentication of firebase in flutter. FirebaseAuth.instance.currentUser().then((user) { if (user != null) ...
0
votes
2answers
23 views

I'm trying to Build An App To Fetch Data Online Using HTTP GET but it return an emty list

I'm trying to load json data using HTTP Get Request but it doesn't sho any thing and doesn't even display the list. It's the first time I use the API and I'm not really understand how it works, please ...
0
votes
1answer
14 views

Impressions or tracking on Flutter widget

I want to track if a widget is show on the screen. Like a card in a list view. There is a widget in Flutter like GestureDetector for impression or tracking?
0
votes
0answers
13 views

How to Create Facebook Post Widget in Flutter

I'm now learning how to develop flutter apps. I would like to know how to create a Facebook post like widget such that when its content exceeds the post's widget height, the content that overflows ...
0
votes
0answers
15 views

How to have persistent badge icon on iOS using Flutter

Is it possible to use flutter to keep the notification badge on the app icon even after opening and closing the app? Ex.: user has a badge of value 6, opens app to read one message, closes app, badge ...
0
votes
0answers
14 views

How to get SHA256 code for object in dart?

I need to get sha256 code (hex string) for Object. I can get this for String - the result will be equal (verified on some online sites); But I dont know how to get sha256 for dart Object, not for ...
0
votes
1answer
37 views

How to use timer in flutter app for changing data?

I am using shared preferences to store the token, email, username and other user details when a user logs in using firebase authentication. The firebase token expires in every one hour so I need to ...
-1
votes
1answer
20 views

Remove blank space at the beginning and end of a text (not in between)

I have a chat app, and I want to remove blank space from user input at the beginning and at the end of a message. so -> "BLANKSPACE hi my name is BLANKSPACE Matthias BLANKSPACE" should be "hi ...
0
votes
1answer
13 views

Flutter signing app with same key.jks not working

I developed my Flutter Android application on Windows 10 and released it internally on Google Play. Now I switched from Windows 10 to Mac and trying to update my Google Play app but getting the ...
0
votes
0answers
15 views

How to enable TabBarView swiping between tabs, only in one direction from a particular tab?

I mean the user can swipe backwards but not forward from a particular tab, is there any way this can be achieved? any help is very much appreciated.Thanks.
0
votes
0answers
16 views

How to call dispose when using BLoC pattern and StatelessWidget

I am trying to understand BLoC pattern but I cannot figure out where or when to call dispose() in my example. I am trying to understand various state management techniques in Flutter. I came up with ...
-1
votes
2answers
35 views

How to vertically align text Blocks on the left in flutter

I am trying to align three Text() on the left side of the page. These texts are inside Padding() blocks and these inside a Column(). Here is how it looks: And here is the code: Column( ...
0
votes
1answer
26 views

unable to open a browser URL through flutter app

I am making a news app, which shows a list of news with title, description and url of its source website. this is my newsDetail.dart page import 'package:flutter/material.dart'; import 'package:...