커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
1주차 5번 강의 앱바가 안 뜹니다...
[왕초보] 플러터(Flutter)로 시작하는 앱개발 종합반 v0
1주차
북마크
김*현
댓글
1
추천
0
조회수
6
조회수
6
답변 완료
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

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


앱바가 안 뜹니다.


-자바 버전: 21.0.2

-flutter 버전 3.3.2

-컴퓨터 사양: window 11 home, RAM 16GB, 프로세서 13th Gen Intel(R) Core(TM) i5-1340P  1.90 GHz


환경변수 Path도 설정해놨고, vsc에 깔아야하는 것들도 다 깔아놨습니다.



스파르타 즉문즉답스파르타 즉문즉답


작성한 코드 및 에러 메세지

import 'package:flutter/material.dart';


void main() {
  runApp(MyApp());
}


class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);


  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(),
      ),
    );
  }
}


# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.


# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml


linter:
  # The lint rules applied to this project can be customized in the
  # section below to disable rules from the `package:flutter_lints/flutter.yaml`
  # included above or to enable additional rules. A list of all available lints
  # and their documentation is published at
  # https://dart-lang.github.io/linter/lints/index.html.
  #
  # Instead of disabling a lint rule for the entire project in the
  # section below, it can also be suppressed for a single line of code
  # or a specific dart file by using the `// ignore: name_of_lint` and
  # `// ignore_for_file: name_of_lint` syntax on the line or in the file
  # producing the lint.
  rules: #25, 26 is not wave. only for readability
    prefer_const_constructors: false
    prefer_const_literals_to_create_immutables: false
    # avoid_print: false  # Uncomment to disable the `avoid_print` rule
    # prefer_single_quotes: true  # Uncomment to enable the `prefer_single_quotes` rule


# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options




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