172 questions
1
vote
1
answer
71
views
How to analyze Flutter iOS app size and see which plugins/assets take the most space?
I want to analyze my Flutter app size for iOS and find out:
Which pub.dev plugins are taking how much space.
How much space my assets contribute.
The size from my own Dart code (lib/) and native ios/ ...
4
votes
1
answer
1k
views
FlutterPlugin.kt and FlutterPluginUtils.kt error while running project in Flutter 3.32.0
Hi I started getting error after I upgraded my Flutter version in MacOS Sequioa (15.5 (24F74)
Running Gradle task 'assembleDebug'...
e: file:///Users/.../development/flutter/packages/flutter_tools/...
0
votes
1
answer
106
views
Null Check used on Null value
trying to generate api client file using retrofit but getting error on one specific file which says null check operator used on null value and the error log using --verbose for build_runner is
Null ...
0
votes
1
answer
1k
views
Flutter problem when building the app from app_links
Support for Android x86 targets will be removed in the next stable release after 3.27. See
https://github.com/flutter/flutter/issues/157543 for details.
You are applying Flutter's app_plugin_loader ...
1
vote
0
answers
23
views
Why are two new lines in the `GeneratedPluginRegistrant.java` change back and forth all the time?
I have one Flutter project where pretty frequently between build the GeneratedPluginRegistrant.java has two new line changes in the import section. I commit the change and pretty soon it is changing ...
1
vote
0
answers
19
views
Analyzer exclude also suppresses errors
In my analysis_options.yaml I wrote an exclude for generated files
analyzer:
exclude:
- lib/**.g.dart
I noticed that it also suppresses errors though, not just linting warnings. This is a ...
4
votes
0
answers
3k
views
Flutter Build Failed: Execution Failed for Task ':path_provider_android:compileDebugJavaWithJavac' Due to JdkImageTransform Error
I'm encountering a build error while trying to run my Flutter project using Android Studio Hedgehog on Windows 11. The error specifically occurs during the :path_provider_android:...
0
votes
1
answer
704
views
AGP Upgrade Assistant
What went wrong:
A problem occurred configuring project ':connectivity'.
Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
Namespace not specified. ...
0
votes
2
answers
317
views
Error when I'm trying to build an android app using flutter
The error is the following:
e: /Users/Houssame/.gradle/aches/transforms-3/e5c5aa35234c44d5264fd87af440dbf9/transformed/fragment-1.7.1-api.jar!/META-INF/fragment_release.kotlin_module: Module was ...
1
vote
1
answer
91
views
Force a widget to rebuild from anywhere?
I cant really find a simple way to just rebuild a widget from outside it.
I guess this might be "by design", that you're not supposed to do it this way. But desperate times (deadlines) calls ...
0
votes
1
answer
109
views
showDialog rebuild after navigating
I am trying to show a loading after making a request and immediately after trying to navigate to another page. For this I am using a ShowDialog and a FutureProgressDialog. The problem is that when the ...
0
votes
2
answers
205
views
Do not use BuildContexts across async gaps, or guard the use with a 'mounted'check
I'm new to Flutter and I'm trying to understand the fallowing error:
"Don't use 'BuildContext's across async gaps.
Try rewriting the code to not use the 'BuildContext', or guard the use with a '...
1
vote
0
answers
510
views
Flutter: Unable to install Runner.app on iPhone Simulator - Error 149
I encountered an error while trying to run my Flutter application on the iPhone Simulator. Here's the error message:
Unable to install /Users/enkh-amgalan/Desktop/lesson/mobile/week-1/add_sub_app/...
0
votes
0
answers
55
views
can someone tell me how do i fix the issue I'm facing in my flutter project
This is the problem I'm facing while building or running on android.
It should run and build the app but I'm getting errors. The same problem is occurring with new projects.
My Gradle version is 7.5
...
1
vote
0
answers
426
views
String Interpolated base url and end point not working on Flutter Web app
I have implemented a flutter web app and created develop and release environments. I am accessing the API Url like "${ConfigEnv.baseUrl}${MyEndPointFile.jokesEndPoint}", .
The Config File ...
0
votes
1
answer
88
views
Flutter widget: AspectRatio final double aspectRatio;paint Variables must be declared using the keywords 'const', 'final', 'var' or a type name
I got a weird error when trying to run the project (It's work perfectly the previous day!). And the problem is cause by declaring the variable in AspectRatio as image below. Currently, I use flutter ...
0
votes
1
answer
416
views
Failled to run the app in the iOS emulator
issue :
\[!\] CocoaPods could not find compatible versions for pod "libphonenumber_plugin":
In Podfile:
libphonenumber_plugin (from \`.symlinks/plugins/libphonenumber_plugin/ios\`)
...
1
vote
2
answers
324
views
Flutter Not Calling Build in a Widget After setState() Despite a Change in State
I have called setState() to update the objects of the class MyErrorBox, but Flutter does not run the build function for those objects. I am new to Flutter and coding in general. The MyText class in ...
1
vote
0
answers
194
views
printing package in flutter does not work in flutter build web mode
im working on a project that require in a certain moment to generate and print a document. I've done this using pdf and printing packages. It all works fine if im in the debug mode, but not in the ...
0
votes
1
answer
107
views
Flutter FutureBuilder camera has been intialized already
I'm new to Flutter and I want to make a simple camera screen using FutureBuilder. This is my code
import 'dart:developer';
import 'package:camera/camera.dart';
import 'package:flutter/material.dart';
...
0
votes
1
answer
43
views
List without arguments causing error even called before the event
I am trying to feed one DropdownButton with a list of strings.
So my code start with :
List<String> list0 = [];
class mainPage extends StatefulWidget {
const mainPage({super.key});
@...
0
votes
1
answer
2k
views
flutter build web creates a nested assets folder so images are not loaded
from pubspec.yaml:
flutter:
assets:
- assets/images/
fonts:
- family: NunitoSans
fonts:
- asset: assets/fonts/NunitoSans-Regular.ttf
- asset: assets/fonts/NunitoSans-...
0
votes
1
answer
141
views
Unable to generate ipa using Appollo
I am trying to build a flutter webview app in ios version. I used appollo for generating the ipa file, but it turns out it cannot build the ipa file and display errors.
I run command "appollo ...
2
votes
2
answers
5k
views
Flutter build fails with 'this and base files have different roots' error [duplicate]
flutter build fails
Could not create task ':flutter_plugin_android_lifecycle:generateDebugUnitTestConfig'.
this and base files have different roots: D:\untitled\build\flutter_plugin_android_lifecycle ...
0
votes
0
answers
71
views
Could not resolve all files for configuration ':classpath'. While Running Flutter build apk
While run Flutter build apk getting thia error....Could not resolve all files for configuration ':classpath'.
This is my build.gradle...
App level gradle
App level gradle
I try run flutter clean and ...