124 questions
1
vote
0
answers
76
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
45
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
17
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
95
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
188
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
50
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 ...
0
votes
0
answers
30
views
dart run build_runner serve causing app_localizations.dart import warnings
Hi whenever I run dart run build_runner serve --delete-conflicting-outputs, I get following response:
Unable to find modules for some sources, this is usually the result of either a
bad import, a ...
1
vote
0
answers
69
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
...
0
votes
0
answers
59
views
How to configure build_runner using multiple builders
I have been using build_runner for generating Built Values. Recently I installed the protoc_builder then my built values stopped being generated.
I am using the following config:
targets:
$default:
...
0
votes
1
answer
1k
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
63
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
213
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
51
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
104
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....
0
votes
0
answers
31
views
In my flutter project, how do I get my code-generated graphql hooks synchronized with my generated freezed models?
I'm working with Flutter and using the following libraries:
graphql
graphql_flutter
graphql_codegen
flutter-freezed
I've successfully set up schema generation using flutter-freezed following this ...