Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- webview_flutter
- static import문
- 인스턴스 메서드
- FLUTTER
- PriorityQueue
- this()
- static 메서드
- 운영체제의 분류
- 참조형 매개변수
- 기본형 매개변수
- 운영체제의 예
- stateless widget
- 조상의 생성자
- 클래스 변수
- this()와 참조변수 this 차이점
- 명예의전당(1)
- 오버라이딩과 오버로딩 차이점
- stateful widget 생명주기
- 객체 배열
- 호출스택
- 오버로딩
- 프로그래머스
- object클래스
- 운영체제란 무엇인가
- 운영체제의 목적
- 초기화 순서
- 이것이코딩테스트다
- stateful widget
- 참조형 반환타입
- 운영체제의 구조
Archives
- Today
- Total
Coram Deo
[Flutter] 장바구니 페이지 - ListView 사용하여 product 보여주기 본문
장바구니 페이지 - ListView 사용하여 product 보여주기
ListView.builder(
itemCount: cartMap.length,
itemBuilder: (context, index) {
int productNo = int.parse(cartMap.keys.elementAt(index));
Product currentProduct = productList
.firstWhere((element) => element.productNo == productNo);
return basketContainer(
productNo: productNo,
productName: currentProduct.productName ?? "",
productImageUrl: currentProduct.productImageUrl ?? "",
price: currentProduct.price ?? 0,
quantity: cartMap[productNo.toString()]);
},
),
'Flutter' 카테고리의 다른 글
[Flutter] Future builder 와 Stream builder의 차이 (0) | 2024.10.16 |
---|---|
[Flutter] go_router / go와 push의 차이 / goNamed와 go의 차이 (0) | 2024.09.30 |
[Flutter] shopping mall - 새로 배운 개념 정리 (0) | 2024.08.08 |
[Dart] 문법 정리 4 - ??와 ??= (0) | 2024.08.06 |
[Dart] 문법 정리 3 - 함수와 매개변수 (0) | 2024.08.06 |