커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
숙제 카테고리 텍스트 넣어주는 과정에서 문제가 있습니다
[왕초보] 플러터(Flutter)로 시작하는 앱개발 종합반 v0
0주차
북마크
차*영
댓글
9
추천
0
조회수
16
조회수
16
답변 완료

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

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


Text에 빨간 줄이 생기면서 적용이 안됩니다 ㅠㅠ



      body: Column(

        children: [

          Padding(

            padding: const EdgeInsets.all(8.0),

            child: TextField(

              decoration: InputDecoration(

                  hintText: "영화 제목을 검색해주세요.",

                  border: OutlineInputBorder(

                      borderSide: BorderSide(color: Colors.black)),

                  suffixIcon:

                      IconButton(onPressed: () {}, icon: Icon(Icons.search))),

            ),

          ),

          Expanded(

              child: ListView.builder(

            itemCount: dataList.length,

            itemBuilder: (context, index) {

              String category = dataList[index]["category"];

              String imgUrl = dataList[index]["imgUrl"];


              return Card(

                child: Stack(

                  children: [

                    Image.network(

                      imgUrl,

                      height: 200,

                      width: double.infinity,

                      fit: BoxFit.cover,

                    )

                    Text(category)

                  ],

                ),

              );

            },

          )),

        ],

      ),

    );

  }

}





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