رونمایی از پخته‌ترین و کاربردی‌ترین محصولات آموزشی سون‌لرن با کلی آفرهای ویژه🔥
۰ ثانیه
۰ دقیقه
۰ ساعت
۷ پریسا مسلمی
fllutter map
یلدا محصلی حل شده توسط یلدا محصلی

سلام خسته نباشید 

dependencies را چرا نمی‌شناسه اضافه شون هم کردم 

[flutter_map] flutter pub get
Resolving dependencies...
Error on line 34, column 3 of pubspec.yaml: A package may not list itself as a dependency.
   ╷
34 │   flutter_map: ^7.0.1
   │   ^^^^^^^^^^^
   ╵
The Flutter CLI developer tool uses Google Analytics to report usage and diagnostic data
along with package dependencies, and crash reporting to send basic crash reports.
This data is used to help improve the Dart platform, Flutter framework, and related tools.
Telemetry is not sent on the very first run.
To disable reporting of telemetry, run this terminal command:
flutter --disable-telemetry.
If you opt out of telemetry, an opt-out event will be sent,
and then no further information will be sent.
This data is collected in accordance with the
Google Privacy Policy (https://policies.google.com/privacy).
Please note that analytics reporting was already disabled, and will continue to be disabled.
exit code 65
با این خطا مواجهه میشه نمی‌تونم عکس بزارم میگه اپلود نشد
پریسا مسلمی ۰۷ تیر ۱۴۰۳، ۰۸:۰۹

سلام. لطفا عکس pubspec هم بذارید.

دومورد رو چک کنید: تو رفتگی وابستگی که اضافه کردید و فیلترشکن تون

یلدا محصلی ۰۷ تیر ۱۴۰۳، ۰۸:۱۷

 تو رفتگی‌ها را رعایت کردم 

فیلتر شکن هم روشنه

عکس اپلود نشد 

پریسا مسلمی ۰۷ تیر ۱۴۰۳، ۰۸:۲۴

کدش رو بفرستید. فرقی نداره

یلدا محصلی ۰۷ تیر ۱۴۰۳، ۱۱:۱۹

dependencies:
  flutter:
    sdk: flutter
  location: ^6.0.2
  flutter_map: ^7.0.1
  google_polyline_algorithm: ^3.1.0
  dio: ^5.4.3+1
  latlong2: ^0.9.1
  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^1.0.2
پریسا مسلمی ۰۸ تیر ۱۴۰۳، ۰۸:۴۳

پروژه رو که ساختید اسمش چی گذاشتید؟ اگه اسمش flutter_map (هم‌نام با پکیج) هست، علت اونه. اسمش رو عوض کنید یا پروژه‌ای جدید با نام متفاوت ایجاد کنید و کدهاتون رو کپی کنید.

بهترین پاسخ
یلدا محصلی ۰۸ تیر ۱۴۰۳، ۰۸:۵۲

سلام ممنونم افزونه‌ها درست شد فقط layer را اصلا نمیشناسه چرا؟

این خطا را میده:[{
    "message": "Too many positional arguments: 0 expected, but 1 found.\nTry removing the extra positional arguments, or specifying the name for named arguments.",
    "source": "dart",
    "startLineNumber": 53,
    "startColumn": 8,
    "endLineNumber": 53,
    "endColumn": 13
}]

پریسا مسلمی ۱۰ تیر ۱۴۰۳، ۰۷:۳۹