Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to solved this debug error? E-commerce-app-ui-flutter #12

Open
i-coder-robot opened this issue Sep 11, 2021 · 3 comments
Open

how to solved this debug error? E-commerce-app-ui-flutter #12

i-coder-robot opened this issue Sep 11, 2021 · 3 comments

Comments

@i-coder-robot
Copy link

i have updated dependency,

android studio version 2021.1.1 Canary 11
flutter version 2.5

debug error message:

Launching lib/main.dart on sdk gphone x86 arm in debug mode...
Running Gradle task 'assembleDebug'...
../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.18.1/lib/src/picture_provider.dart:50:59: Error: No named parameter with the name 'nullOk'.
context != null ? Localizations.localeOf(context, nullOk: true) : null,
^^^^^^
../../flutter/packages/flutter/lib/src/widgets/localizations.dart:413:17: Context: Found this candidate, but the arguments don't match.
static Locale localeOf(BuildContext context) {
^^^^^^^^

FAILURE: Build failed with an exception.

@HarishSTOnline
Copy link

Update the flutter_svg package.
https://pub.dev/packages/flutter_svg/versions

I updated to the latest version by changing flutter_svg: ^0.18.0 to flutter_svg: ^0.22.0.
And ran flutter pub get.
After that, the build was successful!

@HarishSTOnline
Copy link

diff --git a/pubspec.yaml b/pubspec.yaml
index 5628656..2c14cdf 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -27,7 +27,7 @@ dependencies:
   # The following adds the Cupertino Icons font to your application.
   # Use with the CupertinoIcons class for iOS style icons.
   cupertino_icons: ^0.1.3
-  flutter_svg: ^0.18.0 # it help us to use SVG in our app
+  flutter_svg: ^0.22.0 # it help us to use SVG in our app
 
 dev_dependencies:
   flutter_test:

HarishSTOnline added a commit to HarishSTOnline/E-commerce-App-UI-Flutter that referenced this issue Oct 8, 2021
- flutter_svg package updated to latest version from 0.18.0 to 0.22.0
@HarishSTOnline
Copy link

#13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants