123 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
2
answers
117
views
How to Fix swagger_dart_code_generator Generating List<int> Instead of MultipartFile for File Uploads in Flutter
What are the details of your problem?
In my Flutter project, I'm using swagger_dart_code_generator to generate Chopper-based API client code from a Swagger 2.0 JSON file for a multipart/form-data file ...
0
votes
0
answers
76
views
Understanding dart build_runner scripts AssetNotFoundException between packages when using melos
My question is about project configuration and generatting boilerplate code using build_runner: json_serializable, freezed. We are using melos.
The project is configured as a workspace. It has two ...
1
vote
0
answers
113
views
Title: Flutter build_runner "Nothing to build" but *.g.dart files are missing after pub get success
I'm developing a Flutter music app and using hive for local storage, which requires hive_generator and build_runner for code generation. I'm encountering a very persistent issue where build_runner ...
1
vote
0
answers
150
views
Can you share dependencies between flutter packages in Melos and how?
I want to manage the dependencies for two Flutter apps and a shared package within a Melos monorepo efficiently
I used this example I found in the Melos documentation:
# melos.yaml
# ...
command:
...
1
vote
1
answer
65
views
Vscode shows explorer files red after running build runner
I'm using the build runner package in my Flutter project. But whenever I ran the following command
dart run build_runner build
Some of the bloc state files turn red in the vscode file explorer. I ...
1
vote
0
answers
23
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 ...
0
votes
0
answers
157
views
How to work with relations between collections in Isar Flutter?
I am trying to generate .g.dart files to work with Isar in flutter.I have two collections InnerList and OuterList, and I want to have a relation between these two collections. When I am running the ...
0
votes
2
answers
322
views
Moving my riverpods generated files to a dedicated folder
I'm doing some cleaning in my project, therefore I want to move my generated files to an other folder to improve the readability.
I've managed to move freezed files but not riverpod
This is my build....
0
votes
1
answer
84
views
Flutter - Build_runner doesn't generate files for my imported package
I created a small library to gather all my widgets in one place. Recently, I added the complete logic for my authentication page (Dio, Retrofit, Repository, Manager, etc.) to avoid recreating this ...
1
vote
0
answers
134
views
riverpod_generator does not recognize types generated by Drift as parameters
pubspec.yaml
dependencies:
...
drift: ^2.20.2
drift_flutter: ^0.1.0
flutter_riverpod: ^2.5.1
dev_dependencies:
...
drift_dev: ^2.20.3
riverpod_generator: ^2.3.3
...
-1
votes
1
answer
2k
views
Error [SEVERE] Failed to precompile build script .dart_tool/build/entrypoint/build.dart
i Get This Error When In Specific Project run build runner
[SEVERE] Failed to precompile build script .dart_tool/build/entrypoint/build.dart. This is likely caused by a misconfigured builder ...
0
votes
2
answers
82
views
build_runner stop to working after update
When I try to run dart run build_runner build --delete-conflicting-output I have the following uotput:
Failed to build build_runner:build_runner:
../../../.pub-cache/hosted/pub.dev/macros-0.1.2-main.4/...
0
votes
1
answer
408
views
flutter use build_runner output Configuring *** in target *** but this is not a known Builder
When I try to generate a database management file using annotations and build_runner in Flutter, the output is look like:
➜ tao_bao flutter pub run build_runner build ...
1
vote
1
answer
93
views
Why does generate_for option not work with aggregate builder
When using an aggregate builder, I notice that the generate_for option on the TargetBuilderConfig in the build.yaml changes behaviour. The builder will only output if the target builder is set to ...
1
vote
1
answer
151
views
How to use Flutter with build_runner?
I'm developing a build_runner plugin that captures const widgets and converts them to images. The process should be triggered by running flutter packages pub run build_runner build to create snapshots....