Questions tagged [flutter-build]

146 questions
4
votes
0 answers

Flutter build runner - Enable / disabled builders through command line

I'm on a Flutter project and we are using build_runner. We are using several builders and runnning all of them takes a long time. Our file looks like this: targets: $default: builders: package1|builder1: # ... options package1 …
Valentin Vignal
  • 6,151
  • 2
  • 33
  • 73
4
votes
2 answers

Error: Type 'ui.TextHeightBehavior' not found in flutter

I got a problem when I flutter build appbundle in terminal command Compiler message: ../../flutter/packages/flutter/lib/src/widgets/basic.dart:5149:9: Error: Type 'ui.TextHeightBehavior' not found. final ui.TextHeightBehavior…
3
votes
0 answers

Flutter ios build error deprecated packages with ios deployment target 10

hello i have a flutter project. Android part works fine. i get a many error when i want to compile ios. Error output from Xcode build: ↳ ... ** BUILD FAILED ** Xcode's output: ↳ …
Salim Baskoy
  • 591
  • 5
  • 11
3
votes
0 answers

How to stop GridView Builder refreshing the widget in Flutter

I am trying to get rid of this blinking/flashing of the widget presented in the image below. This is an Alert Dialog opened. Below it's a GridView Builder which creates images. The images are refreshing when I am trying to drag and resize the height…
Roland Iordache
  • 325
  • 4
  • 20
3
votes
2 answers

How to build a release mode without a key in flutter - Flutter debug mode is so slow

Whenever I try to test my app with flutter run command it's so laggy and slow and I can't determine how is my app performance in a release mode. However for building the app in release mode for android we need to make a key for the app and it…
Taba
  • 3,850
  • 4
  • 36
  • 51
3
votes
2 answers

calling setState from the parent widget in flutter does not update the state

Parent Widget class _FamilyListPageState extends State { String initialValue = 'Search Families'; void eraseInitialValue() { <-------------- This function is passed down to the child widget setState(() { …
3
votes
2 answers

Note: Recompile with -Xlint:deprecation. Note: Some input files use or override a deprecated API

When I run flutter run or debug my code after flutter clean it shows this error Note: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\firebase_core-0.7.0\android\src\main\java\io\flutter\plugins\firebase\core\FlutterFirebaseCorePlugin.java uses or…
Arslan Kaleem
  • 1,410
  • 11
  • 25
3
votes
1 answer

Flutter gets stuck on "Running Xcode build... " when building for iOS

I have an existing Flutter project which has been working fine for two years. But now all of a sudden, when I try to build or run it on iOS, it always gets stuck on Running Xcode build... . flutter build ios --debug Running "flutter pub get" in…
Magnus
  • 17,157
  • 19
  • 104
  • 189
3
votes
0 answers

Flutter error on build: Command PhaseScriptExecution failed with a nonzero exit code

I work on a flutter app (not mine) and I got trouble de repair the iOS folder. When trying to build the project on Xcode i got an error : Command PhaseScriptExecution failed with a nonzero exit code I tried to execute manually the build command…
Eng
  • 1,617
  • 2
  • 12
  • 25
2
votes
0 answers

how to prevent flutter rebuild deactivate page

I want to use MediaQuery to create responsive app. Flutter will force the page to rebuild if the keyboard popup. It makes sense. But the problem is flutter will rebuild the page even the page is deactivated. when I routed to PageA => PageB => PageC…
Anson NG
  • 21
  • 2
2
votes
1 answer

your project requires a newer version of the kotlin gradle plugin error

When I try to build app it throws error - your project requires a newer version of the kotlin gradle plugin. [!] Your project requires a newer version of the Kotlin Gradle plugin. …
Dhaval Chaudhari
  • 417
  • 8
  • 22
2
votes
1 answer

Issue with textFormField/TextField triggering unnecessary rebuilds when focused

On focus, my textFormFields or textFields trigger unnecessary rebuilds, spike resource drains & make emulator & computer slow or even unusable. I've done considerable research on this. It seems like quite an issue & I haven't been able to resolve…
RobbB
  • 1,214
  • 11
  • 39
2
votes
1 answer

Execution failed for task ':app:compileReleaseJavaWithJavac'. Compilation failed; see the compiler error output for details. in Flutter build

I am developing an Flutter App in Android Studio. Not quite sure what went wrong. I was able to successfully run the App but when taking build the error occur. Any help would be great. Dart Sdk version is 2.10.0 Here is my build.gradle def…
abdul
  • 123
  • 3
  • 15
2
votes
1 answer

flutter build ipa works locally, but not when run on github actions on the same machine

I create an empty flutter project using Flutter 3.0.0 (also tried 2.10.5). I can build it, run it on my iPhone and archive the app from the command line. When running the same commands through Github Actions Im unable to archive my app. The same…
2
votes
7 answers

Unable to run Flutter project on Android after update

I've been trying to get my Flutter project to run after upgrading it to 2.10.4 and it's been a headache from the start. The project runs fine on a browser, but I'm having difficulty running on an Android emulator. I think I'm at the last hurdle, but…
1
2
3
9 10