• 로그인
  • 장바구니에 상품이 없습니다.

home2 게시판 Flutter 게시판 파일 다른 컴으로 옮기고 생긴 문제..;

파일 다른 컴으로 옮기고 생긴 문제..;

2 글 보임 - 1 에서 2 까지 (총 2 중에서)
  • 글쓴이
  • #101536
    Launching lib\main.dart on Chrome in debug mode...
    Waiting for connection from debug service on Chrome...
    lib/main.dart:1:8: Error: Error when reading '../../../OneDrive/%EB%B0%94%ED%83%95%20%ED%99%94%EB%A9%B4/flutter_windows_3.13.8-stable/flutter/packages/flutter/lib/material.dart': 지정된 경로를 찾을 수 없습니다.
    import 'package:flutter/material.dart';
           ^
    lib/style.dart:1:8: Error: Error when reading '../../../OneDrive/%EB%B0%94%ED%83%95%20%ED%99%94%EB%A9%B4/flutter_windows_3.13.8-stable/flutter/packages/flutter/lib/material.dart': 지정된 경로를 찾을 수 없습니다.
    import 'package:flutter/material.dart';
           ^
    lib/main.dart:5:8: Error: Error when reading '../../../OneDrive/%EB%B0%94%ED%83%95%20%ED%99%94%EB%A9%B4/flutter_windows_3.13.8-stable/flutter/packages/flutter/lib/rendering.dart': 지정된 경로를 찾을 수 없습니다.
    import 'package:flutter/rendering.dart';
           ^
    lib/main.dart:18:21: Error: Type 'StatefulWidget' not found.
    class MyApp extends StatefulWidget {
                        ^^^^^^^^^^^^^^
    lib/main.dart:22:3: Error: Type 'State' not found.
      State<MyApp> createState() => _MyAppState();
      ^^^^^
    lib/main.dart:25:27: Error: Type 'State' not found.
    class _MyAppState extends State<MyApp> {
                              ^^^^^
    lib/main.dart:46:3: Error: Type 'Widget' not found.
      Widget build(BuildContext context) {
      ^^^^^^
    lib/main.dart:46:16: Error: Type 'BuildContext' not found.
      Widget build(BuildContext context) {
                   ^^^^^^^^^^^^
    lib/main.dart:81:20: Error: Type 'StatefulWidget' not found.
    class Home extends StatefulWidget {
                       ^^^^^^^^^^^^^^
    lib/main.dart:82:15: Error: Type 'Key' not found.
      const Home({Key? key, this.data}) : super(key: key);
                  ^^^
    lib/main.dart:86:3: Error: Type 'State' not found.
      State<Home> createState() => _HomeState();
      ^^^^^
    lib/main.dart:90:26: Error: Type 'State' not found.
    class _HomeState extends State<Home> {
                             ^^^^^
    lib/main.dart:116:3: Error: Type 'Widget' not found.
      Widget build(BuildContext context) {
      ^^^^^^
    lib/main.dart:116:16: Error: Type 'BuildContext' not found.
      Widget build(BuildContext context) {
                   ^^^^^^^^^^^^
    lib/main.dart:16:26: Error: Undefined name 'Colors'.
    var a = TextStyle(color: Colors.red);
                             ^^^^^^
    lib/main.dart:16:9: Error: Method not found: 'TextStyle'.
    var a = TextStyle(color: Colors.red);
            ^^^^^^^^^
    lib/main.dart:92:16: Error: Method not found: 'ScrollController'.
      var scroll = ScrollController();
                   ^^^^^^^^^^^^^^^^
    lib/style.dart:7:24: Error: Undefined name 'Colors'.
        selectedItemColor: Colors.black,
                           ^^^^^^
    lib/style.dart:6:29: Error: Method not found: 'BottomNavigationBarThemeData'.
      bottomNavigationBarTheme: BottomNavigationBarThemeData(
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    lib/style.dart:13:12: Error: Undefined name 'Colors'.
        color: Colors.white,
               ^^^^^^
    lib/style.dart:15:38: Error: Undefined name 'Colors'.
        titleTextStyle: TextStyle(color: Colors.black, fontSize: 25),
                                         ^^^^^^
    lib/style.dart:15:21: Error: Method not found: 'TextStyle'.
        titleTextStyle: TextStyle(color: Colors.black, fontSize: 25),
                        ^^^^^^^^^
    lib/style.dart:16:44: Error: Undefined name 'Colors'.
        actionsIconTheme: IconThemeData(color: Colors.black),
                                               ^^^^^^
    lib/style.dart:16:23: Error: Method not found: 'IconThemeData'.
        actionsIconTheme: IconThemeData(color: Colors.black),
                          ^^^^^^^^^^^^^
    lib/style.dart:12:16: Error: Method not found: 'AppBarTheme'.
      appBarTheme: AppBarTheme(
                   ^^^^^^^^^^^
    lib/style.dart:19:35: Error: Undefined name 'Colors'.
        bodyMedium : TextStyle(color: Colors.red),
                                      ^^^^^^
    lib/style.dart:19:18: Error: Method not found: 'TextStyle'.
        bodyMedium : TextStyle(color: Colors.red),
                     ^^^^^^^^^
    lib/style.dart:20:35: Error: Undefined name 'Colors'.
        bodyLarge:   TextStyle(color: Colors.blue),
                                      ^^^^^^
    lib/style.dart:20:18: Error: Method not found: 'TextStyle'.
        bodyLarge:   TextStyle(color: Colors.blue),
                     ^^^^^^^^^
    lib/style.dart:18:14: Error: Method not found: 'TextTheme'.
      textTheme: TextTheme(
                 ^^^^^^^^^
    lib/style.dart:5:14: Error: Method not found: 'ThemeData'.
    var theme =  ThemeData(
                 ^^^^^^^^^
    lib/main.dart:19:9: Error: The superclass, 'StatefulWidget', has no unnamed constructor that takes no arguments.
      const MyApp({super.key});
            ^^^^^
    lib/main.dart:82:45: Error: No named parameter with the name 'key'.
      const Home({Key? key, this.data}) : super(key: key);
                                                ^^^
    lib/main.dart:10:5: Error: Method not found: 'MaterialApp'.
        MaterialApp(
        ^^^^^^^^^^^
    lib/main.dart:9:3: Error: Method not found: 'runApp'.
      runApp(
      ^^^^^^
    lib/main.dart:33:5: Error: The method 'setState' isn't defined for the class '_MyAppState'.
     - '_MyAppState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'setState'.
        setState(() {
        ^^^^^^^^
    lib/main.dart:40:11: Error: Superclass has no method named 'initState'.
        super.initState();
              ^^^^^^^^^
    lib/main.dart:46:16: Error: 'BuildContext' isn't a type.
      Widget build(BuildContext context) {
                   ^^^^^^^^^^^^
    lib/main.dart:48:14: Error: The method 'Scaffold' isn't defined for the class '_MyAppState'.
     - '_MyAppState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'Scaffold'.
          return Scaffold(
                 ^^^^^^^^
    lib/main.dart:49:17: Error: The method 'AppBar' isn't defined for the class '_MyAppState'.
     - '_MyAppState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'AppBar'.
            appBar: AppBar(
                    ^^^^^^
    lib/main.dart:50:20: Error: The method 'Text' isn't defined for the class '_MyAppState'.
     - '_MyAppState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'Text'.
                title: Text('Intagram'),
                       ^^^^
    lib/main.dart:52:15: Error: The method 'IconButton' isn't defined for the class '_MyAppState'.
     - '_MyAppState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'IconButton'.
                  IconButton(
                  ^^^^^^^^^^
    lib/main.dart:53:22: Error: The method 'Icon' isn't defined for the class '_MyAppState'.
     - '_MyAppState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'Icon'.
                    icon:Icon(Icons.add_box_outlined),
                         ^^^^
    lib/main.dart:53:27: Error: The getter 'Icons' isn't defined for the class '_MyAppState'.
     - '_MyAppState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'Icons'.
                    icon:Icon(Icons.add_box_outlined),
                              ^^^^^
    lib/main.dart:61:34: Error: The method 'Text' isn't defined for the class '_MyAppState'.
     - '_MyAppState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'Text'.
            body: [Home(data : data),Text('샵페이지')]

    , ^^^^ lib/main.dart:62:30: Error: The method 'BottomNavigationBar' isn't defined for the class '_MyAppState'. - '_MyAppState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing method, or defining a method named 'BottomNavigationBar'. bottomNavigationBar: BottomNavigationBar( ^^^^^^^^^^^^^^^^^^^ lib/main.dart:72:13: Error: The method 'BottomNavigationBarItem' isn't defined for the class '_MyAppState'. - '_MyAppState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing method, or defining a method named 'BottomNavigationBarItem'. BottomNavigationBarItem(icon: Icon(Icons.home_outlined), label: '홈'), ^^^^^^^^^^^^^^^^^^^^^^^ lib/main.dart:72:43: Error: The method 'Icon' isn't defined for the class '_MyAppState'. - '_MyAppState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing method, or defining a method named 'Icon'. BottomNavigationBarItem(icon: Icon(Icons.home_outlined), label: '홈'), ^^^^ lib/main.dart:72:48: Error: The getter 'Icons' isn't defined for the class '_MyAppState'. - '_MyAppState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'Icons'. BottomNavigationBarItem(icon: Icon(Icons.home_outlined), label: '홈'), ^^^^^ lib/main.dart:73:13: Error: The method 'BottomNavigationBarItem' isn't defined for the class '_MyAppState'. - '_MyAppState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing method, or defining a method named 'BottomNavigationBarItem'. BottomNavigationBarItem(icon: Icon(Icons.shopping_bag_outlined), label: '샵'), ^^^^^^^^^^^^^^^^^^^^^^^ lib/main.dart:73:43: Error: The method 'Icon' isn't defined for the class '_MyAppState'. - '_MyAppState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing method, or defining a method named 'Icon'. BottomNavigationBarItem(icon: Icon(Icons.shopping_bag_outlined), label: '샵'), ^^^^ lib/main.dart:73:48: Error: The getter 'Icons' isn't defined for the class '_MyAppState'. - '_MyAppState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'Icons'. BottomNavigationBarItem(icon: Icon(Icons.shopping_bag_outlined), label: '샵'), ^^^^^ lib/main.dart:66:13: Error: The method 'setState' isn't defined for the class '_MyAppState'. - '_MyAppState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing method, or defining a method named 'setState'. setState(() { ^^^^^^^^ lib/main.dart:82:15: Error: 'Key' isn't a type. const Home({Key? key, this.data}) : super(key: key); ^^^ lib/main.dart:96:11: Error: Superclass has no method named 'initState'. super.initState(); ^^^^^^^^^ lib/main.dart:116:16: Error: 'BuildContext' isn't a type. Widget build(BuildContext context) { ^^^^^^^^^^^^ lib/main.dart:117:8: Error: The getter 'widget' isn't defined for the class '_HomeState'. - '_HomeState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'widget'. if(widget.data.isNotEmpty){ ^^^^^^ lib/main.dart:118:14: Error: The getter 'ListView' isn't defined for the class '_HomeState'. - '_HomeState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'ListView'. return ListView.builder(itemCount: widget.data.length, controller: scroll,itemBuilder: (c,i) { ^^^^^^^^ lib/main.dart:118:42: Error: The getter 'widget' isn't defined for the class '_HomeState'. - '_HomeState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'widget'. return ListView.builder(itemCount: widget.data.length, controller: scroll,itemBuilder: (c,i) { ^^^^^^ lib/main.dart:119:17: Error: The method 'Column' isn't defined for the class '_HomeState'. - '_HomeState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing method, or defining a method named 'Column'. return Column( ^^^^^^ lib/main.dart:121:15: Error: The getter 'Image' isn't defined for the class '_HomeState'. - '_HomeState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'Image'. Image.network('http://codingapple1.github.io/kona.jpg'), ^^^^^ lib/main.dart:122:15: Error: The method 'Container' isn't defined for the class '_HomeState'. - '_HomeState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing method, or defining a method named 'Container'. Container( ^^^^^^^^^ lib/main.dart:123:32: Error: The method 'BoxConstraints' isn't defined for the class '_HomeState'. - '_HomeState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing method, or defining a method named 'BoxConstraints'. constraints: BoxConstraints(maxWidth: 600), ^^^^^^^^^^^^^^ lib/main.dart:124:27: Error: The getter 'EdgeInsets' isn't defined for the class '_HomeState'. - '_HomeState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'EdgeInsets'. padding: EdgeInsets.all(20), ^^^^^^^^^^ lib/main.dart:126:23: Error: The method 'Column' isn't defined for the class '_HomeState'. - '_HomeState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing method, or defining a method named 'Column'. child: Column( ^^^^^^ lib/main.dart:127:38: Error: The getter 'CrossAxisAlignment' isn't defined for the class '_HomeState'. - '_HomeState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'CrossAxisAlignment'. crossAxisAlignment: CrossAxisAlignment.start, ^^^^^^^^^^^^^^^^^^ lib/main.dart:129:26: Error: The getter 'Image' isn't defined for the class '_HomeState'. - '_HomeState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'Image'. Image.network(widget.data[i]['image'] ), ^^^^^ lib/main.dart:129:40: Error: The getter 'widget' isn't defined for the class '_HomeState'. - '_HomeState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'widget'. Image.network(widget.data[i]['image'] ), ^^^^^^ lib/main.dart:130:26: Error: The method 'Text' isn't defined for the class '_HomeState'. - '_HomeState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing method, or defining a method named 'Text'. Text( '좋아요${widget.data[i]['likes'] ?? ""}'), ^^^^ lib/main.dart:130:38: Error: The getter 'widget' isn't defined for the class '_HomeState'. - '_HomeState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'widget'. Text( '좋아요${widget.data[i]['likes'] ?? ""}'), ^^^^^^ lib/main.dart:131:26: Error: The method 'Text' isn't defined for the class '_HomeState'. - '_HomeState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing method, or defining a method named 'Text'. Text(widget.data[i]['글쓴이']?? ""), ^^^^ lib/main.dart:131:31: Error: The getter 'widget' isn't defined for the class '_HomeState'. - '_HomeState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'widget'. Text(widget.data[i]['글쓴이']?? ""), ^^^^^^ lib/main.dart:132:26: Error: The method 'Text' isn't defined for the class '_HomeState'. - '_HomeState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing method, or defining a method named 'Text'. Text(widget.data[i]['content']?? ""), ^^^^ lib/main.dart:132:31: Error: The getter 'widget' isn't defined for the class '_HomeState'. - '_HomeState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'widget'. Text(widget.data[i]['content']?? ""), ^^^^^^ lib/main.dart:144:10: Error: The method 'Text' isn't defined for the class '_HomeState'. - '_HomeState' is from 'package:instarbibibibi/main.dart' ('lib/main.dart'). Try correcting the name to the name of an existing method, or defining a method named 'Text'. return Text('로딩중임'); ^^^^ Failed to compile application. 스크린샷 2023-10-20 115638 컴 바꿔서 export import로 파일 옮기고 Run했는데 Console에 이렇게 떠요 ㅠㅠ 위에글이 Console 내용이에요
    #101548

    codingapple
    키 마스터
    새로 플러터 프로젝트 만들고 코드부분만 복붙해서 씁시다
2 글 보임 - 1 에서 2 까지 (총 2 중에서)
  • 답변은 로그인 후 가능합니다.

About

현재 월 700명 신규수강중입니다.

  (09:00~20:00) 빠른 상담은 카톡 플러스친구 코딩애플 (링크)
  admin@codingapple.com
  이용약관
ⓒ Codingapple, 강의 예제, 영상 복제 금지
top

© Codingapple, All rights reserved. 슈퍼로켓 에듀케이션 / 서울특별시 강동구 고덕로 19길 30 / 사업자등록번호 : 212-26-14752 온라인 교육학원업 / 통신판매업신고번호 : 제 2017-서울강동-0002 호 / 개인정보관리자 : 박종흠