커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
(해결버튼을 잘못눌렀어요) 이전 질문 이어서
[왕초보] 플러터(Flutter)로 시작하는 앱개발 종합반 v0
0주차
북마크
박*기
댓글
1
추천
0
조회수
6
조회수
6
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.








작성한 코드 및 에러 메세지

Launching lib\main.dart on Android SDK built for x86 in debug mode...

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:182:9: Error: Expected '.' before this.

  this.1actions,

    ^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:182:9: Error: Expected an identifier, but got '.1'.

Try inserting an identifier before '.1'.

  this.1actions,

    ^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:182:9: Error: Expected '}' before this.

  this.1actions,

    ^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:208:15: Error: Can't access 'this' in a field initializer to read 'elevation'.

 }) : assert(elevation == null || elevation >= 0.0),

       ^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:208:36: Error: Can't access 'this' in a field initializer to read 'elevation'.


 }) : assert(elevation == null || elevation >= 0.0),

                  ^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:209:60: Error: Can't access 'this' in a field initializer to read 'bottom'.

    preferredSize = _PreferredAppBarSize(toolbarHeight, bottom?.preferredSize.height);


                              ^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:209:45: Error: Can't access 'this' in a field initializer to read 'toolbarHeight'.

    preferredSize = _PreferredAppBarSize(toolbarHeight, bottom?.preferredSize.height);

                      ^^^^^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:1269:9: Error: No named parameter with the name 'clipBehavior'.

    clipBehavior: clipBehavior,

    ^^^^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:177:3: Context: Found this candidate, but the arguments don't match.


 AppBar({

 ^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:270:17: Error: Final field 'leading' is not initialized.

Try to initialize the field in the declaration or in every constructor.


 final Widget? leading;

        ^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:279:14: Error: Final field 'automaticallyImplyLeading' is not initialized.

Try to initialize the field in the declaration or in every constructor.

 final bool automaticallyImplyLeading;

       ^^^^^^^^^^^^^^^^^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:315:17: Error: Final field 'title' is not initialized.

Try to initialize the field in the declaration or in every constructor.

 final Widget? title;

        ^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:357:23: Error: Final field 'actions' is not initialized.

Try to initialize the field in the declaration or in every constructor.

 final List<Widget>? actions;

           ^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:369:17: Error: Final field 'flexibleSpace' is not initialized.

Try to initialize the field in the declaration or in every constructor.

 final Widget? flexibleSpace;


        ^^^^^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:381:30: Error: Final field 'bottom' is not initialized.

Try to initialize the field in the declaration or in every constructor.


 final PreferredSizeWidget? bottom;

               ^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:409:17: Error: Final field 'elevation' is not initialized.


Try to initialize the field in the declaration or in every constructor.

 final double? elevation;

        ^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:431:17: Error: Final field 'scrolledUnderElevation' is not initialized.

Try to initialize the field in the declaration or in every constructor.

 final double? scrolledUnderElevation;

        ^^^^^^^^^^^^^^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:438:37: Error: Final field 'notificationPredicate' is not initialized.

Try to initialize the field in the declaration or in every constructor.

 final ScrollNotificationPredicate notificationPredicate;


                  ^^^^^^^^^^^^^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:452:16: Error: Final field 'shadowColor' is not initialized.

Try to initialize the field in the declaration or in every constructor.

 final Color? shadowColor;

        ^^^^^^^^^^^


/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:463:16: Error: Final field 'surfaceTintColor' is not initialized.

Try to initialize the field in the declaration or in every constructor.


 final Color? surfaceTintColor;

        ^^^^^^^^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:481:22: Error: Final field 'shape' is not initialized.

Try to initialize the field in the declaration or in every constructor.

 final ShapeBorder? shape;

           ^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:506:16: Error: Final field 'backgroundColor' is not initialized.

Try to initialize the field in the declaration or in every constructor.

 final Color? backgroundColor;

        ^^^^^^^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:531:16: Error: Final field 'foregroundColor' is not initialized.

Try to initialize the field in the declaration or in every constructor.

 final Color? foregroundColor;

        ^^^^^^^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:545:24: Error: Final field 'iconTheme' is not initialized.

Try to initialize the field in the declaration or in every constructor.

 final IconThemeData? iconTheme;

            ^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:563:24: Error: Final field 'actionsIconTheme' is not initialized.

Try to initialize the field in the declaration or in every constructor.

 final IconThemeData? actionsIconTheme;

            ^^^^^^^^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:572:14: Error: Final field 'primary' is not initialized.

Try to initialize the field in the declaration or in every constructor.

 final bool primary;

       ^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:581:15: Error: Final field 'centerTitle' is not initialized.

Try to initialize the field in the declaration or in every constructor.

 final bool? centerTitle;

       ^^^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:588:14: Error: Final field 'excludeHeaderSemantics' is not initialized.

Try to initialize the field in the declaration or in every constructor.

 final bool excludeHeaderSemantics;

       ^^^^^^^^^^^^^^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:599:17: Error: Final field 'titleSpacing' is not initialized.

Try to initialize the field in the declaration or in every constructor.

 final double? titleSpacing;

        ^^^^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:610:16: Error: Final field 'toolbarOpacity' is not initialized.

Try to initialize the field in the declaration or in every constructor.

 final double toolbarOpacity;

        ^^^^^^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:621:16: Error: Final field 'bottomOpacity' is not initialized.


Try to initialize the field in the declaration or in every constructor.

 final double bottomOpacity;

        ^^^^^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:637:17: Error: Final field 'toolbarHeight' is not initialized.

Try to initialize the field in the declaration or in every constructor.

 final double? toolbarHeight;


        ^^^^^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:644:17: Error: Final field 'leadingWidth' is not initialized.

Try to initialize the field in the declaration or in every constructor.

 final double? leadingWidth;

        ^^^^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:661:20: Error: Final field 'toolbarTextStyle' is not initialized.

Try to initialize the field in the declaration or in every constructor.

 final TextStyle? toolbarTextStyle;

          ^^^^^^^^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:679:20: Error: Final field 'titleTextStyle' is not initialized.

Try to initialize the field in the declaration or in every constructor.

 final TextStyle? titleTextStyle;

          ^^^^^^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:701:31: Error: Final field 'systemOverlayStyle' is not initialized.

Try to initialize the field in the declaration or in every constructor.

 final SystemUiOverlayStyle? systemOverlayStyle;

               ^^^^^^^^^^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:716:14: Error: Final field 'forceMaterialTransparency' is not initialized.

Try to initialize the field in the declaration or in every constructor.

 final bool forceMaterialTransparency;

       ^^^^^^^^^^^^^^^^^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:719:15: Error: Final field 'clipBehavior' is not initialized.

Try to initialize the field in the declaration or in every constructor.


 final Clip? clipBehavior;

       ^^^^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/search.dart:577:13: Error: No named parameter with the name 'leading'.

      leading: widget.delegate.buildLeading(context),

      ^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:177:3: Context: Found this candidate, but the arguments don't match.


 AppBar({

 ^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/date_picker.dart:1570:11: Error: No named parameter with the name 'iconTheme'.

     iconTheme: iconTheme,

     ^^^^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:177:3: Context: Found this candidate, but the arguments don't match.

 AppBar({

 ^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/about.dart:872:11: Error: No named parameter with the name 'title'.


     title: _PackageLicensePageTitle(

     ^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:177:3: Context: Found this candidate, but the arguments don't match.

 AppBar({


 ^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/about.dart:1297:9: Error: No named parameter with the name 'title'.


    title: title,

    ^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:177:3: Context: Found this candidate, but the arguments don't match.

 AppBar({


 ^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/about.dart:1385:13: Error: No named parameter with the name 'title'.


      title: widget.title,

      ^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:177:3: Context: Found this candidate, but the arguments don't match.

 AppBar({

 ^^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/about.dart:1459:17: Error: No named parameter with the name 'title'.

        title: widget.title,

        ^^^^^

/C:/src/flutter/packages/flutter/lib/src/material/app_bar.dart:177:3: Context: Found this candidate, but the arguments don't match.

 AppBar({

 ^^^^^^

Target kernel_snapshot failed: Exception


FAILURE: Build failed with an exception.


* Where:

Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1201


* What went wrong:

Execution failed for task ':app:compileFlutterBuildDebug'.

> Process 'command 'C:\src\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 3s

Exception: Gradle task assembleDebug failed with exit code 1

Exited (sigterm)





취소
 공유
취소
댓글 0
댓글 알림
나의얼굴