Fair icon indicating copy to clipboard operation
Fair copied to clipboard

运行fair的example报错

Open hixiaoan opened this issue 2 years ago • 1 comments

Xcode's output: ↳ Writing result bundle at path: /var/folders/s3/pwlp8skj5b5cps6j12nr14xm0000gn/T/flutter_tools.UHbYQW/flutter_ios_build_temp_dirztajXO/temporary_xcresult_bundle

../flutter_version/flutter_2_5_0/lib/src/widgets/$$c.dart:390:13: Error: No named parameter with the name 'capLeftEdge'.
            capLeftEdge: props['capLeftEdge'] ?? true,
            ^^^^^^^^^^^
/opt/flutter/packages/flutter/lib/src/cupertino/picker.dart:354:9: Context: Found this candidate, but the arguments don't match.
  const CupertinoPickerDefaultSelectionOverlay({
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../flutter_version/flutter_2_5_0/lib/src/widgets/$$c.dart:469:13: Error: No named parameter with the name 'maxLengthEnforced'.
            maxLengthEnforced: props['maxLengthEnforced'] ?? true,
            ^^^^^^^^^^^^^^^^^
/opt/flutter/packages/flutter/lib/src/cupertino/text_field.dart:209:9: Context: Found this candidate, but the arguments don't match.
  const CupertinoTextField({
        ^^^^^^^^^^^^^^^^^^
../flutter_version/flutter_2_5_0/lib/src/widgets/$$c.dart:530:13: Error: No named parameter with the name 'maxLengthEnforced'.
            maxLengthEnforced: props['maxLengthEnforced'] ?? true,
            ^^^^^^^^^^^^^^^^^
/opt/flutter/packages/flutter/lib/src/cupertino/text_field.dart:373:9: Context: Found this candidate, but the arguments don't match.
  const CupertinoTextField.borderless({
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../flutter_version/flutter_2_5_0/lib/src/widgets/$$w.dart:2184:44: Error: Undefined name 'Overflow'.
            overflow: props['overflow'] ?? Overflow.clip,
                                           ^^^^^^^^
../flutter_version/flutter_2_5_0/lib/src/widgets/$$w.dart:2184:13: Error: No named parameter with the name 'overflow'.
            overflow: props['overflow'] ?? Overflow.clip,
            ^^^^^^^^
/opt/flutter/packages/flutter/lib/src/widgets/basic.dart:3708:3: Context: Found this candidate, but the arguments don't match.
  Stack({
  ^^^^^
../flutter_version/flutter_2_5_0/lib/src/widgets/$$w.dart:2780:13: Error: No named parameter with the name 'autovalidate'.
            autovalidate: props['autovalidate'] ?? false,
            ^^^^^^^^^^^^
/opt/flutter/packages/flutter/lib/src/widgets/form.dart:40:9: Context: Found this candidate, but the arguments don't match.
  const Form({
        ^^^^
../flutter_version/flutter_2_5_0/lib/src/widgets/$$w.dart:2797:13: Error: No named parameter with the name 'autovalidate'.
            autovalidate: props['autovalidate'] ?? false,
            ^^^^^^^^^^^^
/opt/flutter/packages/flutter/lib/src/widgets/form.dart:262:9: Context: Found this candidate, but the arguments don't match.
  const FormField({
        ^^^^^^^^^
../flutter_version/flutter_2_5_0/lib/src/widgets/$$w.dart:3100:47: Error: Method not found: 'DefaultTextEditingActions'.
      'DefaultTextEditingActions': (props) => DefaultTextEditingActions(
                                              ^^^^^^^^^^^^^^^^^^^^^^^^^
../flutter_version/flutter_2_5_0/lib/src/widgets/$$m.dart:336:13: Error: No named parameter with the name 'maxLengthEnforced'.
            maxLengthEnforced: props['maxLengthEnforced'] ?? true,
            ^^^^^^^^^^^^^^^^^
/opt/flutter/packages/flutter/lib/src/material/text_field.dart:276:9: Context: Found this candidate, but the arguments don't match.
  const TextField({
        ^^^^^^^^^
../flutter_version/flutter_2_5_0/lib/src/widgets/$$m.dart:3797:31: Error: Member not found: 'class__sharp'.
        'class__sharp': Icons.class__sharp,
                              ^^^^^^^^^^^^
../flutter_version/flutter_2_5_0/lib/src/widgets/$$m.dart:3798:33: Error: Member not found: 'class__rounded'.
        'class__rounded': Icons.class__rounded,
                                ^^^^^^^^^^^^^^
../flutter_version/flutter_2_5_0/lib/src/widgets/$$m.dart:3799:34: Error: Member not found: 'class__outlined'.
        'class__outlined': Icons.class__outlined,
                                 ^^^^^^^^^^^^^^^
../flutter_version/flutter_2_5_0/lib/src/widgets/$$m.dart:7351:37: Error: Member not found: 'pie_chart_outlined'.
        'pie_chart_outlined': Icons.pie_chart_outlined,
                                    ^^^^^^^^^^^^^^^^^^
lib/best_flutter_ui/custom_drawer/drawer_user_controller.dart:70:20: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
 - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('/opt/flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance?.addPostFrameCallback((_) => getInitState());
                   ^
lib/best_flutter_ui/fitness_app/traning/training_screen.dart:29:28: Warning: Operand of null-aware operation '!' has type 'AnimationController' which excludes null.
 - 'AnimationController' is from 'package:flutter/src/animation/animation_controller.dart' ('/opt/flutter/packages/flutter/lib/src/animation/animation_controller.dart').
            parent: widget.animationController!,
                           ^
lib/best_flutter_ui/fitness_app/traning/training_screen.dart:66:28: Warning: Operand of null-aware operation '!' has type 'AnimationController' which excludes null.
 - 'AnimationController' is from 'package:flutter/src/animation/animation_controller.dart' ('/opt/flutter/packages/flutter/lib/src/animation/animation_controller.dart').
            parent: widget.animationController!,
                           ^
lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart:47:27: Warning: Operand of null-aware operation '!' has type 'Animation<double>' which excludes null.
 - 'Animation' is from 'package:flutter/src/animation/animation.dart' ('/opt/flutter/packages/flutter/lib/src/animation/animation.dart').
          opacity: widget.mainScreenAnimation!,
                          ^
Failed to package /Users/wuxiaoan/Desktop/flutter_dy_demo/fair/example.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order

Result bundle written to path:
	/var/folders/s3/pwlp8skj5b5cps6j12nr14xm0000gn/T/flutter_tools.UHbYQW/flutter_ios_build_temp_dirztajXO/temporary_xcresult_bundle

dependency_overrides: fair_version: path: ../flutter_version/flutter_2_5_0

hixiaoan avatar Aug 01 '22 15:08 hixiaoan

您本地的 Flutter SDK 版本号多少?运行的是哪一个 example 工程?

yancechen avatar Aug 02 '22 00:08 yancechen