166 questions from the last 7 days
3
votes
1
answer
248
views
Flutter iOS 18.4 Debug Build Error: mprotect failed: 13 (Permission denied)
I am encountering an error when trying to run my Flutter application in debug mode on iOS 18.4. The build fails with the following message:
../../../flutter/third_party/dart/runtime/vm/...
2
votes
2
answers
102
views
How to fix 'cannot find symbol' error for Registrar in Razorpay_Flutter plugin on Flutter 3.29.0?
I'm using the razorpay_flutter plugin in my Flutter project, but when I try to build the app, I get the following error:
error: cannot find symbol
import io.flutter.plugin.common.PluginRegistry....
1
vote
3
answers
148
views
+500
Can I set the Android Flutter debugging port?
When launching a Flutter Android App, it launches in the Android emulator, however Flutter listens to some extra ports for debugging. These ports are random like 59044. Currently since I did not ...
1
vote
2
answers
67
views
The method 'withValues' isn't defined for the type 'Color'
i have error with withValues
my flutter version is 3.24.5
my code:
import 'package:eClassify/ui/theme/theme.dart';
import 'package:flutter/material.dart';
enum AppTheme { dark, light }
final ...
-1
votes
2
answers
63
views
How to track referrer in a Flutter app after Play Store install? [closed]
How to track referrer in a Flutter app after Play Store install?
Question:
Hey Flutter devs,
I'm working on a referral system for my Flutter app (UDealZone) which is currently live on playstore, and I ...
2
votes
1
answer
78
views
Flutter hangs on "Initializing the Flutter SDK. This may take a few minutes" after VS Code restart and executing the Flutter upgrade
Last night, I tried to update my Flutter SDK from 3.27.2 to 3.29.0.
I got an exception telling me that it couldn't upgrade Flutter SDK because there's another program using it (apology to not bring up ...
2
votes
3
answers
47
views
Why Can't I Pop This View After Async Code Completes?
I've got a bit of code that allows a user to delete their account info from my Supabase backend. From what I can tell, the "delete user" part works fine (i.e. the user gets deleted from the ...
1
vote
2
answers
75
views
Flutter doesn't load data from Firestore Database
I'm trying this code:
try {
print("via!");
QuerySnapshot qs = await FirebaseFirestore.instance
.collection('muscle_groups')
.get();
print(qs.docs.length);
...
1
vote
1
answer
104
views
Google Sign In won't work after uploading app to Play Store
I am building a flutter app and i'm testing the release on the play store with a closed testing.
The app needs the user to be authenticated using Google Sign In, and for what i've tried it works every ...
0
votes
1
answer
54
views
Widget simple declaration flutter
Is there a way to define a widget that does not inherit from statefull or statelles widget
,and when should to use it?
For example:
This is listView that displays objectCard(custom card):
ListView....
0
votes
1
answer
55
views
Why am I seeing crossed boxes on this flutter app
I am seeing crossed boxes in place of icons on this flutter app I am developing, I have tried adding custom fonts and I can't seem to get a way around this issue, here are the screenshots
image ...
0
votes
1
answer
48
views
Flutter Provider TypeError: 'Null' is not a subtype of type 'String'
Issue:
I'm using provider 6.1.2 in my Flutter project, and I'm encountering this error:
══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════
The following _TypeError was ...
2
votes
2
answers
55
views
Flutter Grid View within a Container
Can someone explain why and how to fix this
return Scaffold(
backgroundColor: Colors.black,
body: Center(
child: Container(
decoration: BoxDecoration(border: Border.all(...
0
votes
2
answers
79
views
Fixing issue for CustomScrollView for flutter
@override
Widget build(BuildContext context) {
return Scaffold(
body: RefreshIndicator(
onRefresh: () async => refreshControllers(),
child: Stack(
children: [
...
-1
votes
2
answers
40
views
My app in Dart is not able to select languages properly
I hope you can help me. I am developing an app in Dart with Flutter from Visual Studio.
I've added some languages and in one language I'm getting the following error, the rest works correctly. I have ...
1
vote
1
answer
51
views
How do i make this icon button work that is inside this stack
Widget image I have this small problem that I am not able to figure out. I have this Icon button that in in a stack and the stack consists of a transparent background(glass morphic background) and ...
0
votes
0
answers
60
views
TextStyle color does not effect on chips in flutter
The color of choice chips have a blury effect and does not show real color. Why this happen?
Choice chips :
if (index == 0) {
return ChoiceChip(
...
-1
votes
2
answers
56
views
Duplicate plugin key: VideoThumbnailPlugin
I got this error Duplicate plugin key: VideoThumbnailPlugin when I run my app in Xcode I tried multiple ways to fix it but nothing works for me.
Also I deleted every line that contain thumbnail in ios/...
1
vote
1
answer
44
views
AndroidManifest.xml file raising errors with no exception
I am working on a Flutter (3.29.0) project on Android Studio (Build #AI 231.9392.1.2311.11330709, built on January 19, 2024 Runtime version: 17.0.10+10-b829.27 amd64 VM: OpenJDK 64-Bit Server VM by ...
2
votes
1
answer
74
views
Flutter Build Fails: Registrar Not Found in razorpay_flutter & paytm_allinonesdk
I'm working on a Flutter project that includes razorpay_flutter and paytm_allinonesdk plugins. When I try to build the project, I get the following errors:
error: cannot find symbol
import io....
-1
votes
0
answers
58
views
Using Flutter as a Rendering Engine for Web-like Apps [closed]
Our team plans to develop a cross-platform rendering framework based on Flutter.
We have chosen JavaScript as our front-end language to interface with Flutter's render objects.
We plant to rewrite the ...
2
votes
1
answer
56
views
Flutter custom menu integration
I tried to implement the menu drawer on the main screen to avoid redundancy, it works on the sample screens, however, if the widget structures becomes a little bit complex, the icon button menu cannot ...
0
votes
1
answer
41
views
Why Can't I Create a Numeric Keypad in Flutter?
I am working on a form that has a TextField for a monetary amount to be input. I would like users to be shown a number pad with a decimal and a negative sign but WITHOUT all the other punctuation and ...
0
votes
1
answer
62
views
Type casting from type 'Type' in dart
I have a Flutter widget that looks like this:
class KeyboardShortcuts extends ConsumerWidget {
final Widget child;
const KeyboardShortcuts({super.key, required this.child});
@override
Widget ...
1
vote
1
answer
26
views
while using bloc arithmatic operator not working in flutter?
class CounterBloc extends Bloc<CounterEvent, CounterState> {
CounterBloc() : super(CounterState()) {
on<CounterIncrementEvent>((event, emit) {
emit(state.copyWith(count: state....
1
vote
1
answer
73
views
VSCode Flutter disable auto remove trailing comma at format
I've changed my PC and install VSCode with Flutter and I found out that formatter is auto remove trailing comma and line break if that line is not over the rulers.
like:
Something( ...
-1
votes
0
answers
46
views
Solve this Error for my project using flutter [closed]
FAILURE: Build failed with an exception.
Where:
Settings file 'D:\Android Studion\TerraSafeAI1\android\settings.gradle' line: 25
What went wrong:
Could not compile settings file 'D:\Android Studion\...
0
votes
1
answer
50
views
Execution failed for task ':dash_bubble:compileDebugKotlin'
Knowing that my android/build.gradle is:
buildscript {
ext.kotlin_version = '2.1.10'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com....
1
vote
1
answer
45
views
I published flutter web on iis server and when reload or refresh link gives 404 error
i am using flutter as a web when publish as a release mode on iis server gives HTTP Error 404.0 - Not Found when reload with url,but ok with click on links.
but localhost work fine, there no any ...
2
votes
1
answer
43
views
Flutter UI Rendering Issues on Samsung Devices
I'm encountering a persistent UI corruption issue specifically on Samsung phones. My Flutter app displays correctly on iPhones and other Android devices, but on Samsung devices, the UI exhibits ...
-1
votes
1
answer
59
views
Flutter Build Failed: Could not resolve me.carda:AndroidAwnCore (JitPack Unauthorized Error) [closed]
Execution failed for task ':app:checkDebugAarMetadata'.
Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not resolve me.carda:AndroidAwnCore:[0.8.0, 0.9.0).
Required ...
0
votes
1
answer
33
views
I have had this error showing whenever i launch my project and I have followed all the instructions. Fix this please [closed]
That is what happened after pasting a meta tag in the application tagI keep having this error "Build failed due to use of deleted Android v1 embedding."
I have corrected a lot on the ...
0
votes
1
answer
40
views
Can’t cancel a stream subscription
I have this code:
import 'dart:async';
import 'dart:math';
class TestService {
Random random = Random();
StreamController<double> streamController = StreamController<double>();
...
-2
votes
0
answers
44
views
image compression to speed data xfer over NFC [closed]
NOTE: The badge I have is sealed. What suggestions does anybody have for finding out what's inside of it without totally destroying it? It uses NFC to exchange data with a phone or a desktop reader/...
1
vote
0
answers
43
views
TypeError: Instance of '(JSObject) => void': type '(JSObject) => void' is not a subtype of type 'JavaScriptFunction?'
I recently updated Dart (3.7.1) and Flutter (3.29.0) and I had to migrate from dart:html to package:web on my project.
I made the migration and everything worked fine except Google Sign In.
I face the ...
0
votes
2
answers
46
views
Flutter how to taper or round only one Borderside
I'm new to styling or creating custom border in Flutter, may I ask how can I achieve this kind of borderside?
Currently I can only do the default BoxDecoration border. Thank you!
Container(
...
-3
votes
0
answers
53
views
Plugin [id: 'com.android.application'] not found in Flutter project with build.gradle.kts (Even After Changing Versions and Settings)
Hello everyone,
I’m facing an issue with my Flutter project, which uses Gradle with Kotlin DSL (build.gradle.kts). When I try to build the project, I keep getting the following error:
Plugin [id: 'com....
1
vote
0
answers
71
views
Implementing customnavbar and custom menu drawer in flutter
I'm creating this app UI, I'm currently on the home screen UI integrating the simple navigation functionality of a bottom navbar and the menu drawer, I noticed that when I tried to insert the custom ...
-3
votes
1
answer
44
views
Flutter android app get google ads campaign details progamatically
My flutter android application is available in playstore, and our marketing team is promoting a app using Google ads app install and app engagement ads, i want to get campaign details from ads.
https:/...
0
votes
0
answers
39
views
Location permission dialog not showing in android >11 using flutter
final permission =
await Permission.locationAlways.request();
I am using permission handler to request for the permission. Also as per guideline from the starting of the app ...
0
votes
3
answers
44
views
Flutter app won't connect to my local API
The application from the mobile phone does not connect to my local ASP Web API, although the debug version of the application running on the emulator works with it correctly, while running "...
0
votes
2
answers
49
views
How to build a side panel route in flutter
I am trying to implement this side panel view in flutter web. I don't understand how will it work. I am using AutoRoute to route to a new page. Now this isn't a new page since I want the previous page ...
0
votes
0
answers
35
views
Flutter Web Deployment on Apache - Uncaught SyntaxError: Unexpected token '<'
I have deployed my Flutter web build (/build/ folder) to the following location on my RHEL 9.5 server running Apache:
/var/www/html/flweb/
I am trying to access my Flutter web app using:
http:///flweb/...
0
votes
1
answer
35
views
Plugin Upgrader.dart flutter not work - Can't find an app in the Play Store with the id
I'm trying to make force update for user so user can't skip the update, i'm already use in_app_update and ask here My Question but not found solution
so now i use plugin Upgrader in my flutter but ...
1
vote
1
answer
29
views
Navigator.of in flutter
hi guys I am not able to navigate in my flutter pages:
when I run this command on FLOATINGACTIONBUTTON onPressFunction (
onPressed: () {
Navigator.of(context).pushNamed('/new_note');
...
-1
votes
0
answers
41
views
Why isn’t the free trial text/flag appearing in sandbox/TestFlight for my Flutter in_app_purchase yearly subscription?
I'm implementing in_app_purchase in my Flutter app for subscriptions. I have a yearly subscription configured in App Store Connect with a 3-day free trial, and the product has been approved with the ...
0
votes
1
answer
48
views
Same provider class in different pages or per page provider class?
In Flutter, is it okay to use same provider class in different pages to avoid provider code duplication or will this approach have adverse consequences unseen to me? Should I instead go for one ...
-1
votes
1
answer
45
views
CORS Issue with Odoo Authentication in Flutter App
I'm facing a CORS issue when trying to authenticate with Odoo from my Flutter application. However, the same request works fine when tested via Postman or a local Python script.
Issue:
When the ...
0
votes
2
answers
41
views
Listview - Exception caught by rendering library. The following assertion was thrown during performLayout(): BoxConstraints forces an infinite width
I want to create a listview scrollDirection: Axis.horizontal but this error appears.
Listview - Exception caught by rendering library. The following
assertion was thrown during performLayout(): ...
0
votes
0
answers
73
views
Problem Building APK with Flutter and Gradle (New Project)
I’m working on a Flutter project using VS Code. I created the project with the flutter create command, so it uses Gradle Kotlin DSL (build.gradle.kts) by default.
The main issue is that when I run ...