202,522 questions
2
votes
1
answer
3k
views
Flutter: Better approach for sending bulk SMS without user interaction on Android
In our project, we need to send bulk SMS to our entire customer list (around 200 users in the list), for their monthly dues.
We will:
send first sms to all users
second sms to pending payment users
...
1
vote
1
answer
64
views
Which Flutter default plugins are important?
I am relatively new to flutter and app development. I noticed that whenever a new flutter project is created, there are many default plugins pre-loaded into the project and this makes the app take up ...
10
votes
2
answers
5k
views
Flutter Streambuilder rebuilds constantly
I have a stream builder listening to Firestore, and it kinda works. The main issue is that the streambuilder keeps rebuilding (if it doesn't cost me extra reads then no worries, but if it does then it'...
0
votes
0
answers
1k
views
SliverAppBar cannot scroll
SliverAppBar cannot scroll
SliverAppBar and SliverList cannot scroll,work well only inside root Scaffold,if not,can't scroll anything
problem code
return CupertinoApp(
localizationsDelegates: ...
0
votes
2
answers
439
views
How can i globally handle a user interaction?
I want to handle a user interaction globally.
what solution is best for it ?
1
vote
2
answers
6k
views
How to automatically set value for a text field based on value from another text field in Flutter?
Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text("Postal Code"),
TextField(
controller: ...
0
votes
1
answer
2k
views
show dialog when there is a problem in the internet network
I mean when I log in, but the network to the database there is a problem, an information dialog will appear that the network has a problem. I'm confused about using else if here..
_login() async {...
6
votes
4
answers
17k
views
Flutter app, Theme.of(context) style doesn't work on text
Trying to apply a text color to my header tiles in my list view. I define a headline text style with red text color (yes I have also tried this with Colors.red).
When I create the tile, I use the ...
0
votes
1
answer
188
views
I want to avoid to recreate the AppBar and Drawer when I change the tool that I am using
I am creating an app that has by default the google map satellite view at the center of the application, but I have other tools in my app, so I would like to keep the same AppBar and the same Drawer ...
1
vote
1
answer
6k
views
how to encode and send to server json list by dio
i have class that generate json list this is my class
class Tool{
String Name;
bool selection;
String englishName;
Map<String, dynamic> toJson() {
return {
'Name': ...
1
vote
1
answer
6k
views
How to store maps to a firestore array
I have xyz document inside abc collection.
I want to add a map to an array inside document xyz.
I can add a single array item using this code
CollectionReference collection = this.collection(...
0
votes
1
answer
538
views
Flutter - Syntax in Android Manifest for AdMob support
I have seen that now, to use AdMob into android app, it is mandatory to include the following lines into the AndroidManifest.xml
<meta-data
android:name="com.google.android.gms.ads....
-1
votes
1
answer
502
views
Why do I get _state != _PlatformViewState.disposed is not true exception while updating HtmlView in flutter_web?
I am trying to use HtmlView to show Google maps in my flutter_web application but unable to update the map reliably when markers change. It works fine half the time. Please take a look at the code ...
0
votes
2
answers
223
views
Laravel search results to contain HTML and rendered in Flutter UI
I've got a flutter app that connects to a database built on Laravel. In essence, our users will have a profile, and their profile will match with certain kinds of posts. When these posts are matched ...
1
vote
1
answer
712
views
How to manage/save state for a widget with many checkboxes?
I'm creating a Flutter app to store progress for board game characters, I want to allow a user to check up to 18 checkboxes, where the checkboxes are grouped in threes:
My first approach was to code ...
1
vote
0
answers
62
views
Flutter - failure while builing my first app with a virtual device using android studio [duplicate]
I am learning Flutter with a course of Udemy. By using Android Studio, I tried to build my first app in a virtual device (Nexus 6) and I got this error message:
Launching lib\main.dart on Android ...
1
vote
0
answers
252
views
In flutter, json data is not appearing in listview initially
At first, the list of publications was shown in ListTile. However, when I changed the String query, it doesn't show any data at all, and I can't search it. I want to show it as a ListView, but I want ...
9
votes
2
answers
11k
views
How to use passed parameters in swift setMethodCallHandler - self?.methodName(result: result)
I'm trying to send arguments in an onPressed function in Flutter through a method channel to Swift, and pass those arguments as parameters to the Swift method that is called.
I've been tasked with ...
2
votes
1
answer
25k
views
type 'Future<dynamic>' is not a subtype of type 'List<dynamic>' in type cast
I'm trying to get all the documents inside a determined collection from my firestore and after that, I want to set them in a list of documents which each position of the list represents a document. ...
1
vote
1
answer
205
views
I would like to create a fixed Appbar for all my screens
I am trying to use the same Appbar for all my screens, but I don't want to add the same code many times, so I thought about creating the class MyAppbar that would have my default Appbar, so that I ...
1
vote
2
answers
64
views
Where do I put commands that run once at beginning?
I really miss C programming. Flutter is quite confusing.
Here is the problem:
We have a function within the Stateful class Home. That creates a page called myMenu.
class Home extends ...
2
votes
0
answers
244
views
How Can solve it?
When I try to run main.dart in USB device (Nokia 3.1 Plus) I have this in the Debug Console :
FAILURE: Build failed with an exception.
Where:
Script 'C:\src\flutter\flutter\packages\flutter_tools\...
3
votes
1
answer
893
views
Set appbar actions dynamically from child tab in flutter
First of all, I might have got it wrong on how to design to solve my problem, so feel free to come up with completely different ideas.
I have a page in my app with tabs. These tabs inherit from a ...
0
votes
1
answer
5k
views
flutter: invalid radix-10 number while using acceleromter
at the sizeaccelerometer2.numberx = int.parse(accelerometer[0]); line an error occures:
I/flutter ( 9802): Invalid radix-10 number (at character 1)
I don't really know what to do. I think there is ...
0
votes
1
answer
1k
views
Is there a way for multiple FutureBuilders to use the same future from a ChangeNotifier?
I have a class (that extends ChangeNotifier - Provider package) that has a function that returns a Future. What I'm trying to do is have it so that multiple futureBuilders in my UI code can receive ...
1
vote
1
answer
1k
views
Flutter: update page before running method in setState()
I need the run a method in a setState() after some previous variables in the same setState() have been updated. At the moment it waits for the method to complete before updating the page.
(I'm new to ...
3
votes
1
answer
1k
views
Is there a downside for using flutter packages?
Does using many packages in one app effect performance or bundle size?
I’m mostly familiar with web and trying to understand more about how it is when it comes to mobile apps.
8
votes
2
answers
7k
views
Flutter SharedPreferences value to Provider on applcation start
I'm trying to to set a value from sharedpreferences to provider at application start.
this what I have so far, sharedpreferences to widget is working:
https://gist.github.com/andraskende/...
16
votes
3
answers
15k
views
How to parse a complex(nested) object to JSON and send it to server using HTTP in flutter?
Hi I have a class that have other classes nested in it. I want to covert an object of this into a JSON string and send it to the server.
I have tried many answers both from stack overflow and ...
1
vote
0
answers
149
views
flutter_sound not recording any voice
I need to record voice and send it with Firebase. I am using flutter_sound but the plugin doesn't generate a recorded file and I don't know why.
Future<String> result =flutterSound....
3
votes
2
answers
1k
views
Flutter: Is flavor the best way to make multiple apps with the same codebase?
I'm going to make 10-50 different apps with the same codebase. So I'll probably have to use flavors. But is there a simpler way?
The only thing that's going to be different in the apps is the title, ...
0
votes
1
answer
1k
views
Remove all local history entries in Flutter
I have a StatefulWidget that adds to its Navigator's local history via ModalRoute.of(context).addLocalHistoryEntry(). When certain changes occur, I want to reset the widget's state and clear any local ...
2
votes
2
answers
892
views
Firebase cloud function returns null in Flutter because it's still running
UPDATE: I'm getting this out my firebase console: Function execution took 2906 ms, finished with status code: 200
And 15 seconds later, I get: the console.log DOC DOES EXIST
I'm running this cloud ...
3
votes
2
answers
9k
views
How to parse nested JSON array in Flutter?
I'm using json_model plugin for making PODO class. I've successfully parsed the main array. But I can't put the images key that contains array of map in PODO class using that plugin and can't parse ...
4
votes
1
answer
484
views
Dismissible without border radius
I'm creating a Dismissible with Flutter and my Container child have a border radius of 40.0 and when I long press (Flat Button animation) it shows that is rounded BUT when I drag it's not, like you ...
0
votes
3
answers
675
views
type 'future<dynamic>' is not a subtype of type 'function'
when i run my app in debug mode it shows me the error "type 'future' is not a subtype of type 'function'" all over the screen and also in the debug console. Can someone help me? I imagine it's a ...
0
votes
1
answer
703
views
changing a nested child fields from its parent in flutter?
I have a widget A that has a nested widget B. I need to update a field on B (maybe by calling a function of B) when user click on a button in A. How can I do it?
EDIT: more details
Widget B is a ...
1
vote
0
answers
162
views
AnnotatedRegion for changing statusBarColor
I'm using AnnotatedRegion to change the system status bar color like described here.
My problem is: After leaving the page, how do I go back to the original color?
1
vote
1
answer
202
views
BuiltValue is not a subtype of type 'BuiltRegister' error
I just learn how can i use BuiltValue in flutter. my implemented webservice with Chopper work fine before using this library.
now after changing to use BuiltValue i get error and i can't resolve this ...
4
votes
1
answer
1k
views
How do you vertically align text in TextFormField with a suffix in flutter?
I want my form text to be vertically centered and in line with the suffix since it's annoying me that it isn't.
Inside my InputDecoration, I've tried setting contentPadding to EdgeInsets.zero but ...
2
votes
1
answer
88
views
How to shrink parent ignorint children size without errors
I want to animate the container to height 0. And I want the children to shrink to it, but obviously it throws overflow pixels error. And I dont know how to make the children shrink without errors.
...
0
votes
1
answer
940
views
flutter - how to set error style of TextFormField?
I want to change the style of the error that appear automatic after validate field. Can I do it? there is no field of error design in TextFormField API
1
vote
1
answer
124
views
Updating Gradle
Im trying to mix a map with a side menu ,
but I am having an error on Debug Console which returns me as "Gradle Error"
I already tried to updtade the gradle (but i did not make it)
and i tried to ...
0
votes
0
answers
449
views
Flutter console output shows no exceptions, errors or other debug data
I don't get any data in my console when the app runs into an exception/error.
For example
final Map<String, String> notification = Map.from(message['notification']);
run without problem, but ...
3
votes
0
answers
710
views
A problem occurred evaluating project ':app'
I cloned a working project from git , and starting to run it but this error shown up. However on another laptop it works fine showing no errors. that I thought the problem is my laptop, but trying to ...
0
votes
1
answer
6k
views
Flutter google map not rendering when changing camera position
I am trying to show a Stack widget containing a Google Map on the bottom and an icon (car) on top, in a way that the car should be following the path on the road given by different GPS coordinate ...