Posts

Showing posts with the label flutter-dependencies

Flutter standard packages

As I see several dart packages published at dart package website, I am curious to know what packages does flutter endorse? The question would be vague, so I would like to focus on a specific package dio. I have contacted few flutter developers, and have been told that the package is not yet a industry standard, also I was introduced to some packages that were published just hours back, for example jaguar_retrofit. I also see dart https package used frequently in flutter documentation. This weighs me to look at what would be the most promising in the future. Can someone solve the package mystery for me, any flutter insights available? This is a valid question, but not one that you'll probably find a final answer to on stackoverflow (and it may be closed as off-topic although I won't cast that vote). You might find better luck at https://softwarerecs.stackexchange.com/ although there may not be too many dart/flutter specific people there; I don't know for sure. But reali...

Flutter - Running flutter fails, Could not find a file named “pubspec.yaml”, Update - (OS Error: Access is denied. , errno = 5)

I just solved all the necessary dependencies. Building flutter tool... Running pub upgrade... Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel beta, v0.7.3, on Microsoft Windows [Version 10.0.17134.228], locale en-US) [√] Android toolchain - develop for Android devices (Android SDK 28.0.2) [√] Android Studio (version 3.1) [√] IntelliJ IDEA Community Edition (version 2018.2) [√] Connected devices (1 available) Now when I try running the flutter app on Android Studio I get this. A:\Project\flutter_app>flutter run fatal: Not a git repository (or any of the parent directories): .git Building flutter tool... Running pub upgrade... Running "flutter packages get" in flutter_app... Could not find a file named "pubspec.yaml" in "C:\". pub get failed (66) Does anyone know what to do to resolve this issue? [Update 2 hours later] I deleted flutter and reinstalled in *C:\flutter* using the git repo https://github.com/flutter/flutter.g...

Flutter plugin configuration issue

I am working on a flutter project which uses local database. For local database I am using sqflite plugin https://pub.dartlang.org/packages/sqflite. My application is working fine without installing sqflite. However, as soon as I install sqflite. It stops running for ios. I am receiving below errors. import 1 error generated. === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug === In file included from /Users/user/Documents/DEVELOPMENT/Flutter_Dev/Flutter_project/FlutterDatabaseSQFLite-master/ios/Runner/AppDelegate.m:1: /Users/user/Documents/DEVELOPMENT/Flutter_Dev/Flutter_project/FlutterDatabaseSQFLite-master/ios/Runner/AppDelegate.h:2:9: fatal error: 'Flutter/Flutter.h' file not found import ^~~~~~~~~~~~~~~~~~~ 1 error generated. /Users/user/Documents/DEVELOPMENT/Flutter_Dev/Flutter_project/FlutterDatabaseSQFLite-master/ios/Runner/main.m:2:9: fatal error: 'Flutter/Flutter.h' file not found import ^~~~~~~~~~~~~~~~~~~ 1 error gener...

Flutter not detecting Android SDK

I've been trying to get flutter to detect the Android SDK. flutter doctor returns PS I:\Projects\Flutter\fluttertest\flutterproject> flutter doctor -v [√] Flutter (Channel beta, v0.1.5, on Microsoft Windows [Version 10.0.16299.248], locale en-US) • Flutter version 0.1.5 at I:\Source\flutter • Framework revision 3ea4d06340 (7 days ago), 2018-02-22 11:12:39 -0800 • Engine revision ead227f118 • Dart version 2.0.0-dev.28.0.flutter-0b4f01f759 [!] Android toolchain - develop for Android devices • Android SDK at C:\NVPACK\android-sdk-windows • Android NDK location not configured (optional; useful for native profiling support) • ANDROID_HOME = C:\NVPACK\android-sdk-windows X Android SDK is missing command line tools; download from "link to google" • Try re-installing or updating your Android SDK, visit https://flutter.io/setup/#android-setup for detailed instructions. [√] Android Studio (version 3.0...

how to use local flutter package in another flutter application?

How to use local flutter package in another flutter application? I created a package using following command: flutter create --template=package my_new_package and then in my application source code => main.dart import "package:my_new_package/my_new_package.dart" // can not find the package locate this file in your flutter application => pubspec.yaml make local dependency dependencies: flutter: sdk: flutter my_new_package: path: ./my_new_package

Flutter Dependencies Error DART

I am doing an App in flutter, and i had the following issue /Users/pedro/Desktop/Development/flutter/bin/flutter --no-color packages get Running "flutter packages get" in wemystic... The current Dart SDK version is 2.1.0-dev.0.0.flutter-be6309690f. Because flutter_cache_manager >=0.1.0-rc.1 depends on uuid >=0.0.7 <1.0.3 which requires SDK version <2.0.0, flutter_cache_manager >=0.1.0-rc.1 is forbidden. So, because wemystic depends on flutter_cache_manager 0.1.0-rc.1, version solving failed. pub get failed (1) Process finished with exit code 1 My dependencies in pubspec.yaml are: dependencies: flutter: sdk: flutter # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^0.1.2 firebase_auth: any google_sign_in: any flutter_html_view: any Thanks The flutter_cache_manager package is outdated and needs update https://github.com/renefloor/flutte...

Flutter lower dart version

I'm getting the following error due to Dart version of my flutter setup when I run the flutter get packages command: [project_name] flutter packages get Running "flutter packages get" in project_name... The current Dart SDK version is 2.1.0-dev.0.0.flutter-be6309690f. Because project depends on intl_translation >=0.14.0+1 <0.17.0 which requires SDK version >=1.12.0 <2.0.0, version solving failed. pub get failed (1) exit code 1 My framework version: Flutter 0.6.0 • channel beta • https://github.com/flutter/flutter.git Framework • revision 9299c02cf7 (2 weeks ago) • 2018-08-16 00:35:12 +0200 Engine • revision e3687f70c7 Tools • Dart 2.1.0-dev.0.0.flutter-be6309690f I would like to learn if there's some kind of command to lower dart-sdk version of the flutter framework, thanks in advance. In the Flutter install directory execute git checkout v"0.5.0" // for example You can check which versions are available in the Flu...