تابستون داره تموم میشه ها، فرصت‌ها محدودن کلی آفر جذاب در کمپین تابستون🔥👇
۰ ثانیه
۰ دقیقه
۰ ساعت
۴ Mohmmad Rasoul Abdi
سلام وقت بخیر من ارور‌های vscode
جامعه فلاتر ایجاد شده در ۱۹ بهمن ۱۴۰۰

سلام به منتور دوره و استاد شاهینی عزیز من یک سری مشکلات تو vscode خوردم سرچم کردم هنوز نتونستم پیدا کنم اول فکر کردم از پروژه دارم انجام میدم ولی رو پروژه todo هم این مشکلات پیش اومد میشه راهنمایی کنید

Launching lib\\main.dart on SM G9880 in debug mode...
/C:/Users/Rasoul/Documents/flutter/packages/flutter/lib/src/material/typography.dart:424:46: Error: Cannot invoke a non-'const' constructor where a const expression is expected.
Try using a constructor or factory that is 'const'.
  static const TextTheme whiteMountainView = TextTheme(
                                             ^^^^^^^^^
/C:/Users/Rasoul/Documents/flutter/packages/flutter/lib/src/material/typography.dart:508:41: Error: Cannot invoke a non-'const' constructor where a const expression is expected.
Try using a constructor or factory that is 'const'.
  static const TextTheme blackRedmond = TextTheme(
                                        ^^^^^^^^^
/C:/Users/Rasoul/Documents/flutter/packages/flutter/lib/src/material/typography.dart:592:41: Error: Cannot invoke a non-'const' constructor where a const expression is expected.
Try using a constructor or factory that is 'const'.
  static const TextTheme whiteRedmond = TextTheme(
                                        ^^^^^^^^^
/C:/Users/Rasoul/Documents/flutter/packages/flutter/lib/src/material/typography.dart:686:42: Error: Cannot invoke a non-'const' constructor where a const expression is expected.
Try using a constructor or factory that is 'const'.
  static const TextTheme blackHelsinki = TextTheme(
                                         ^^^^^^^^^
/C:/Users/Rasoul/Documents/flutter/packages/flutter/lib/src/material/typography.dart:783:42: Error: Cannot invoke a non-'const' constructor where a const expression is expected.
Try using a constructor or factory that is 'const'.
  static const TextTheme whiteHelsinki = TextTheme(
                                         ^^^^^^^^^
/C:/Users/Rasoul/Documents/flutter/packages/flutter/lib/src/material/typography.dart:882:43: Error: Cannot invoke a non-'const' constructor where a const expression is expected.
Try using a constructor or factory that is 'const'.
  static const TextTheme blackCupertino = TextTheme(
                                          ^^^^^^^^^
/C:/Users/Rasoul/Documents/flutter/packages/flutter/lib/src/material/typography.dart:968:43: Error: Cannot invoke a non-'const' constructor where a const expression is expected.
Try using a constructor or factory that is 'const'.
  static const TextTheme whiteCupertino = TextTheme(
                                          ^^^^^^^^^
/C:/Users/Rasoul/Documents/flutter/packages/flutter/lib/src/material/typography.dart:1054:45: Error: Cannot invoke a non-'const' constructor where a const expression is expected.
Try using a constructor or factory that is 'const'.
  static const TextTheme blackRedwoodCity = TextTheme(
                                            ^^^^^^^^^
/C:/Users/Rasoul/Documents/flutter/packages/flutter/lib/src/material/typography.dart:1140:45: Error: Cannot invoke a non-'const' constructor where a const expression is expected.
Try using a constructor or factory that is 'const'.
  static const TextTheme whiteRedwoodCity = TextTheme(
                                            ^^^^^^^^^
/C:/Users/Rasoul/Documents/flutter/packages/flutter/lib/src/material/typography.dart:1223:44: Error: Cannot invoke a non-'const' constructor where a const expression is expected.
Try using a constructor or factory that is 'const'.
  static const TextTheme englishLike2014 = TextTheme(
                                           ^^^^^^^^^
/C:/Users/Rasoul/Documents/flutter/packages/flutter/lib/src/material/typography.dart:1311:44: Error: Cannot invoke a non-'const' constructor where a const expression is expected.
Try using a constructor or factory that is 'const'.
  static const TextTheme englishLike2018 = TextTheme(
                                           ^^^^^^^^^
/C:/Users/Rasoul/Documents/flutter/packages/flutter/lib/src/material/typography.dart:1394:38: Error: Cannot invoke a non-'const' constructor where a const expression is expected.
Try using a constructor or factory that is 'const'.
  static const TextTheme dense2014 = TextTheme(
                                     ^^^^^^^^^
/C:/Users/Rasoul/Documents/flutter/packages/flutter/lib/src/material/typography.dart:1480:38: Error: Cannot invoke a non-'const' constructor where a const expression is expected.
Try using a constructor or factory that is 'const'.
  static const TextTheme dense2018 = TextTheme(
                                     ^^^^^^^^^
/C:/Users/Rasoul/Documents/flutter/packages/flutter/lib/src/material/typography.dart:1549:37: Error: Cannot invoke a non-'const' constructor where a const expression is expected.
Try using a constructor or factory that is 'const'.
  static const TextTheme tall2014 = TextTheme(
                                    ^^^^^^^^^
/C:/Users/Rasoul/Documents/flutter/packages/flutter/lib/src/material/typography.dart:1634:37: Error: Cannot invoke a non-'const' constructor where a const expression is expected.
Try using a constructor or factory that is 'const'.
  static const TextTheme tall2018 = TextTheme(
                                    ^^^^^^^^^
FAILURE: Build failed with an exception.
* Where:
Script 'C:\\Users\\Rasoul\\Documents\\flutter\\packages\\flutter_tools\\gradle\\flutter.gradle' line: 1005
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\\Users\\Rasoul\\Documents\\flutter\\bin\\flutter.bat'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 14s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

سلام وقتتون بخیر

لطفا در مرحله اول فیلتر شکنتون رو تست کنید . اطمینان حاصل کنید ک داره کار میکنه

در مرحله دوم اگر لطف کنید از pubspec.yaml یه عکس به من بدید ممنون میشم

اگر نتونستیم باهم به نتیجه برسیم حتما با انی دسک مشکل رو براتون حل میکنم

محمد حسین سخایی ۱۹ بهمن ۱۴۰۰، ۰۸:۳۷

ممنونم از پاسخگویی شما من فیلتر شکن رو هم روشن کردم و تست کردم ولی نشد بازم از اتصالشم مطمعن بودم میشه باهم در ارتباط باشیم ؟

Mohmmad Rasoul Abdi ۱۹ بهمن ۱۴۰۰، ۱۲:۰۴

فلاتر pub add رو همه که میزنم به مشکل میخوره و ارور میده


description: A new Flutter project.
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1
environment:
  sdk: ">=2.12.0 <3.0.0"
# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
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: ^1.0.2
  smooth_page_indicator: ^1.0.0+2
  hive_flutter: ^1.1.0
  percent_indicator: ^4.0.0
  dio: ^4.0.4
  intl: ^0.17.0 
  google_fonts: ^2.3.0
  flutter_localizations: 
    sdk: flutter 
dev_dependencies:
  flutter_test:
    sdk: flutter
  # The "flutter_lints" package below contains a set of recommended lints to
  # encourage good coding practices. The lint set provided by the package is
  # activated in the `analysis_options.yaml` file located at the root of your
  # package. See that file for information about deactivating specific lint
  # rules and activating additional ones.
  flutter_lints: ^1.0.0
  hive_generator: ^1.1.2
  build_runner: ^2.1.7
flutter:
  generate: true 
  uses-material-design: true
  assets:
     - assets/image/
  #   - images/a_dot_ham.jpeg
  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.dev/assets-and-images/#resolution-aware.
  # For details regarding adding assets from package dependencies, see
  # https://flutter.dev/assets-and-images/#from-packages
  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
  fonts:
    - family: Iranayekan
      fonts:
        - asset: assets/fonts/yekan_m.ttf
  #
  # For details regarding fonts from package dependencies,
  # see https://flutter.dev/custom-fonts/#from-packages
Mohmmad Rasoul Abdi ۱۹ بهمن ۱۴۰۰، ۱۲:۰۵

سلام مشکلی نیست به واتس اپ من پیام بدید با هم انی دسک بزنیم ۰۹۳۰۲۴۶۵۷۶۴

محمد حسین سخایی ۱۹ بهمن ۱۴۰۰، ۱۶:۰۵