2 months ago, I create a project with PascalCase named and it is fine, there is no problem with my project. And now, after I upgrade at flutter stable 2.0.0. The name of my package has a reminder like this
Use lowercase_with_underscores for package names
what should I do? Is there a solution without downgrade the flutter sdk or changing my Package Name?
thanks in advance..
The flutter & dart stranded you must to use the package name must in lower case.
By Using the linter you can disable or ignore the warning
Refer the warning data : https://dart-lang.github.io/linter/lints/file_names.html.
How to disable the warning: https://dart.dev/guides/language/analysis-options#disabling-individual-rules
I hope it will help you.
Related
I got flutter upgarade and imported a project from git.
and I want to run this app but Dart support is disabled.
Flutter SDK path seems apllied but Dart ( on Setting > Languages & Frameworks > Dart seems not be able to be enabled.
How could I solve this situation?
enter image description here
To solve this problem, you need to set the flag to "Enable Dart support for the following modules"
I had same issue and checking both boxes would do anything, it would always reset back. My fix is:
delete the repository
clone again with terminal (don't use Studio) and set different name for poject: git clone (url) newName
And it works.
There are many libraries I use every day from pub and they work. But today I run into a problem with qr_code_scanner. After installing it with flutter pub add qr_code_scanner and running flutter pub get, I get in code:
Same with auto import for classes from this file like QRViewController. What I also did is running flutter upgrade, flutter clean and everything else that came to my mind - still getting this error with that package.
Any other thoughts how can I solve it?
Some of the packages you are using are upgraded to flutter3 and some are still Flutter version < 3. Which is why you might be facing an issue. If you are trying to build an older project I would recommend you to downgrade your package versions which is compatible with flutter < 3 and use flutter version < 3. If you are adding any packages through pub add you might get an error if the pub get is not resolved. Please check the same in terminal.
For anyone who will have the same issue, I found a workaround. I've also tried few other libraries that beside the fact was installed couldn't access them from anywhere in code.
So after all every pub.dev lib is just the code right? You can download the source file and add it into your lib folder. Well, you have to upgrade it manually if needed but at the end it works and that's the main goal!
EDIT:
Another possible solution, as I found out, I did reset my Mac, upgraded environment (VS Code), done flutter clean and flutter pub get and looks like it's working as it should without mentioned workaround so probably the issue was around the coding environment rather than with Flutter and fetched libraries.
I have a Flutter project with some Infos(less than warnings) in my console in vsCode.
Like : remove unused imports ..
I got a ton of them after months of work. Is there a way to fix them all with a simple command or any tool ?
Thank you.
You can use
dart fix --apply
The dart fix command finds and fixes two types of issues:
Analysis issues identified by dart analyze that have associated automated fixes (sometimes called quick-fixes or code actions)
Outdated API usages when updating to newer releases of the Dart and Flutter SDKs.
See this doc:
https://dart.dev/tools/dart-fix
I have changed the package name and name of my application. After changing it, the build apk_file was not installing in device. Can any one have solution for this.
Note: I am using VS-Code.
PFA
I have added --no-shrink in command of building apk.
flutter build apk --no-shrink
Hope it will work.
Thank you.
That could be because of the debug and profile manifest files as well as the kotlin file, the package name needs to be changed there too.
I'm currently ugrading all my projects that use Schemacrawler. The last version I used was 15.06.01 and I'm upgrading to 16.9.4.
A lot of changes were done, I'm looking for the object that replace LintedCatalog.java.
The aim is to get the list of lints detected during a db analaysis.
The project I'm currently working on is : https://github.com/adriens/schemacrawler-additional-command-lints-as-csv.git, if you want to have a look.
Thanks in advance
Michèle,
Instead of code like createLintedCatalog, you could use a lint collector.
Sualeh, SchemaCrawler