Questions tagged [flutter]
Use this tag for questions about the Flutter cross-platform UI toolkit. If your question is platform-specific, tag the platform as well (e.g., [android], [ios], etc.). You may also wish to include the [dart] tag for coding questions.
158,191
questions
0
votes
0
answers
4
views
Flutter: Host can not be visible from the participants side in Twilio video call
I clone the video call demo from the Twilio blog and I made some changes in that project. I am creating video call using Twilio video SDK. From the host(Local Participants) side working perfectly, ...
0
votes
0
answers
9
views
How to fix "Consider checking `mounted`." error?
I've read this issue, but I've tried all the solutions provided by users and still can't fix this error.
Here is my code:
await controller.submit(
…
);
Future<void> createBroadcast(…) async {
...
1
vote
0
answers
11
views
Cannot trigger touch event programmatically in a web view on iOS
I'm trying to programmatically simulate a touch event in Flutter and it works on buttons and any other tappable widgets, however it is not working inside a web view (on websites) on iOS.
Below you can ...
0
votes
1
answer
12
views
Flutter local notification "Failed to handle method call"
I want to show notification on app but i got this error when notifications are recevied.
**
D/FLTFireMsgReceiver(14099): broadcast received for message
E/MethodChannel#dexterous.com/flutter/...
0
votes
0
answers
14
views
Flutter Firebase Phone Auth missing-client-identifier
Once i got my keys with this code on terminal:
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
[keystore image]
And I typed my keys ...
0
votes
1
answer
11
views
Flutter - I want to update the colors in an animated gradient (animate gradient package) when a carousel slider changes
I am trying to make a weather app with a carousel slider and an animated gradient background. To see the forecast, the user swipes between weather cards showing the information for each hour.
I have ...
0
votes
0
answers
13
views
flutter error: Either zero or 2 or more [DropdownMenuItem]s were detected with the same value
Here I am using Two dropdown.My dropdown will be work alternate, We selecting city fromfirst dropdown after selecting city I will get outlets then I will show outlets.
For the first time its working ...
0
votes
2
answers
23
views
show percentage indicator in flutter?
Maximum dates that show in that percentage indicator was 20
If my current pending day is 10 then it will be show like half of the progress bar.
how can I show like this?
Sample code here:
class ...
1
vote
0
answers
11
views
Global context is null
I'm using the global context as outlined in Get the Global Context in Flutter in a RetryPolicy which references an auth service when I get a 401:
class ExpiredTokenRetryPolicy extends RetryPolicy {
@...
-1
votes
0
answers
10
views
why did i get this message : Unauthorized in my flutter screen?
Unauthorized
JWT authentication user with node js express js and mongodb
It runs in the backend
Access tokens can't run in Flutter
0
votes
1
answer
12
views
SIM ICCID number - Flutter
How to get the ICCID number of a sim card inside a mobile in flutter? Is there any package that can be made use of to retrieve the same? I looked for it but could find packages to get the number only ...
0
votes
0
answers
5
views
Flutter Reorderable List View not working! getting error
Hey i'm trying to add a reorderable list view to a list but, i'm getting an issue and i don't know why.
error: package:flutter/src/widgets/framework.dart': Failed assertion: line 5403 pos 14: '...
-1
votes
1
answer
7
views
how to fix errors , after add screen using get_cli in flutter
enter image description here
how i fix this eroors
Undefined name 'ConfigEnvironments'.
Try correcting the name to one that is defined, or defining the name.
Undefined name 'Environments'.
Try ...
0
votes
0
answers
9
views
Flutter GoRouter with inner Navigators
The GoRouter package provides examples of nested navigation using ShellRoute. How could this be used to build separate navigator stacks without breaking the linking strategy.
In my app, there is a ...
0
votes
0
answers
7
views
flutter_native_splash branding image on top
Is there a way to place the branding image on top-center screen using flutter_native_splash?
in the docs it says:
To position the branding image at the bottom of the screen you can
use bottom, ...
0
votes
2
answers
29
views
comparing fields inside different classes in flutter
I'm trying to check if an id from one class already exists in the other for example:
Class pin{
String id;
int amount;
}
Class pinCol{
String id;
String name;
}
this is just an example to show there ...
-1
votes
1
answer
9
views
Is there any way to reslove google font error in flutter app?
Text(
'Hello World',
style: GoogleFonts.alike(
textStyle: Theme.of(context).textTheme.headline1)),
0
votes
2
answers
15
views
flutter ColorScheme problem with some deprecated warnings
I had some deprecated warnings in Theme . the code before :
class myTheme {
static getTheme() => ThemeData(
primaryColor: Colors.grey,
primarySwatch: Colors.grey,
backgroundColor: Colors....
-2
votes
1
answer
17
views
'A non-null String must be provided to a Text widget.', how to resolve this
assert(
data != null,
'A non-null String must be provided to a Text widget.',
),
textSpan = null
The following assertion was thrown building Consumer(dependencies: [MediaQuery, _InheritedProviderScope&...
0
votes
0
answers
8
views
moving flutter sdk files between devices without internet
I have flutter installed on a device und updated to the latest version (Flutter 3.9.0-12.0) and I need to move it to another device but the main problem is that the other device have no connection to ...
0
votes
0
answers
11
views
I want to use webview in Flutter to keep the sign-in state
I'm new to Flutter.
I'm using the ability to view a site in webview for some of my apps, and I'm tired of having to log in every time I move to a different screen because my login status disappears ...
0
votes
0
answers
20
views
How to click page below the dialog
when I was show CompositedTransformFollower widget, I find the dialog intercept click event.
enter image description here
final content = CompositedTransformFollower(
link: _link,
...
0
votes
1
answer
19
views
Trying to use a timer in dart to run a function every few seconds
I followed the documentation but it still doesn't work, here is the code:
void main() {
runApp(const MyApp());
scheduleTimeout(5 * 1000);
}
Timer scheduleTimeout([int milliseconds = 10000]) =&...
0
votes
1
answer
17
views
where can I found app:checkDebugManifest ?I'm trying to integrate zoom into my flutter app?
FAILURE: Build failed with an exception.
What went wrong:
A problem was found with the configuration of task ':app:checkDebugManifest' (type 'CheckManifest').
In plugin 'com.android.build.gradle.api....
0
votes
1
answer
28
views
In flutter,something about Datetime.now()
I want to implement a feature where the user can exit the app by pressing the back button twice,
But when i first press the button 'currentBackPressTime' and 'now' are almost ths same time,ress the ...
0
votes
0
answers
12
views
How can i customize the date picker?
I want to show the Date-Month-Year in the marked place of the Date-picker only. When i will click on the forward or backward it will be changed.
Its can be similar to the given image, i would like to ...
0
votes
0
answers
13
views
I'm not getting the result when poping back of the context in flutter
Page 1:- HomePage
SearchIcon(
onTap: () => _handleSearch(context),
),
Future<void> _handleSearch(BuildContext context) async {
Coordinates? coordinates =
await AutoRouter.of(...
0
votes
2
answers
17
views
why my flutter validator doesn't validate properly?
I am currently learning Flutter-Validation, I copy and wrote this code from a video, but it automatically passes the validation even if the the condition is false. there are two validation on Username ...
0
votes
2
answers
23
views
How to create a inner radius
How to create a inner radius in the appbar in Flutter. Please check the image.
0
votes
0
answers
10
views
Could not build the application for the simulator. Error launching application on iPhone 11 Pro
@@@@@@ Here my prroblem:
Launching lib/main.dart on iPhone 11 Pro in debug mode...
main.dart:1
Xcode build done. 17.6s
Failed to build iOS app
Error output ...
0
votes
1
answer
16
views
Flutter - How to set the tab bar indicator width and height?
I am trying to create a tab bar. Each label is wrapped with the container and the indicator should be the circular border of the label.
I want the tab indicator size to be larger than the label size
...
-1
votes
1
answer
13
views
flutter snackbar (with dismiss button)is not disappearing
I have created a snackbar with a button inside snacbar named 'undo' and also i have set snackbar duration property to 2 seconds but the snackbar is not hiding after to 2 seconds if i don't use the '...
0
votes
0
answers
11
views
How to add Ads in flutter web (Google Adsense)
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3610741546045128"
crossorigin="anonymous"></script>
<!-- demoAD -...
1
vote
0
answers
16
views
Flutter web - Privacy cookies consent banner
I use stripe and google analytics in my flutter web app. I want to add a cookie consent banner according to GDPR regulations. I tried to use the library Yett as described in this stackoverflow post. ...
0
votes
0
answers
14
views
Generate RSA signature using public key
I am trying to generate a RSA signature using a public key that is provided to me from the backend dev. But I am not able to sign without the private key. When I ask the backend dev, he says that I ...
0
votes
1
answer
8
views
Socket Exception error in android emulator
i'm new to laravel and flutter, so i configured my laravel backend successfully. I test the API using postman and posted to the database successfully, now when I try to post the data using androind ...
0
votes
0
answers
13
views
Layout Video Recording Like Instgram/ Ticktok Feature
I'm try to do record video inn different layouts like Instagram in Flutter. For this feature I used ffmpeg_kit_flutter package. I refers this solution to do this. but output video is blank, any one ...
0
votes
1
answer
27
views
How can I remove selected text highlight after unfocus?
here is the code:
@override
Widget build(BuildContext context) {
return MaterialApp(
home: GestureDetector(
onTap: () {
FocusScopeNode currentFocus = FocusScope.of(...
0
votes
0
answers
19
views
Flutter: Do not scroll to top after insert new items before first
I am working on a MacOs App for browsing pictures using Flutter. One of the main challenges is scrolling over the directories.
I want to display a subset of my pictures. A header and all pictures per ...
0
votes
1
answer
13
views
Flutter firebase: Get data from collections and sub-collections created by different users
User A has a collection called ADS. In this collection, user B(the current user) creates a sub-collection called Requests. How does user B(the current user) get data from the sub-collection he/she ...
0
votes
0
answers
24
views
Flutter / Android Studio: How to show types in code completion?
Android Studio
Android Studio doesn't show types when using code completion, but VSCode does.
VSCode
As we can see, VSCode show types when using code completion. Is there any settings in Android ...
0
votes
1
answer
31
views
How do I change the color of the sorting icon in a DataTable?
Widget DataTable has an built-in icon for sorting indication
How can I change the color or even the icon?
Scrollbar(
controller: _scrollController,
...
0
votes
0
answers
19
views
How to launch background app when FCM notification received?
I make taxi booking app, when order comes from fcm notification and app is foreground its open order page detail for driver to accept or reject the order.
But when app in background only get ...
0
votes
0
answers
12
views
MongoDb connection time in my Flutter app
I have used this package "mongo_dart: ^0.8.2" in my flutter app and connected my db with the following two lines:
var db = await Db.create("MY_URL");
await db.open();
These two ...
0
votes
0
answers
5
views
Facing problem to run flutter app using android platform on nxp board (imx8qxp)
I tried to write flutter app on android and deploy it on nxp (imx8qxp) board. For this I used meta-flutter package for yocto build. But when flashed it is crashing. Could you please help how to add ...
0
votes
0
answers
10
views
is flutterflow a good tool to build socail media app?
Need an evaluation on flutterflow if someone has used and deployed apps on store.
I havent tried using it but still exploring no code tools
2
votes
1
answer
30
views
Unable to update a prticular tile of ListView.builder using bloc
Scenario
I have a ListView.builder that creates 5 items. Each tile has a text and an icon. When the icon is tapped on it needs to toggle the font of the text between bold and normal as well as the ...
1
vote
0
answers
11
views
flutter plugin issue in GeneratedPluginRegistrant.java:
D:\1111\zoom\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:5: error: package io.flutter does not exist
import io.flutter.Log;
^
D:\1111\zoom\android\app\...
-1
votes
0
answers
19
views
how can i use redux flutter thunk action in a future builder
FutureBuilder<dynamic>(
future: store.dispatch(fetchHomeAction()), // a previously-obtained Future<String> or null
builder: (BuildContext context, AsyncSnapshot<dynamic> ...
0
votes
0
answers
21
views
How to replicate UI issue on an android emulator? (Flutter)
I'm encountering an issue when the app is used on real devices, specifically Nokia 2.4 and Xiaomi Note 6 pro, that is not there when I try to replicate it on an emulator with the same specifications ...