Github에 flutter로 만든 웹사이트를 올릴때,
flutter build web
으로 빌드
web 폴더 push
index 파일의 경로를 /
에서 ./
로 수정
Row나 Column 위젯에서,
리스트의 일부만 특정한 함수를 적용하고 싶다면, 리스트를 2개로 가르고, 1번리스트에만 기능을 적용한다. 그리고 두개의 리스트를 +로 합쳐준다.
아래 예시는 리스트 중 3개의 Container Widget
중 1,2번만 색상이 변경되는 경우를 만들어 본 것이다.
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: colortilelist +
[
Container(
color: Colors.amber,
child: Padding(padding: EdgeInsets.all(50.0)),
),
],
),
별거 아닌걸 너무 장황하게 적었나?
'Dead Code > Flutter_Dart' 카테고리의 다른 글
[다트] dart 3.0 - records 괄호 지옥 (0) | 2023.05.26 |
---|---|
[플러터] 구글 Sheets 를 DB로 사용해서 갤러리 만들기 #1 (0) | 2023.05.11 |
[플러터] Rive animation 실행은 해보자 #2 (0) | 2023.04.24 |
[플러터] 자질구래한 methods (0) | 2023.04.20 |
[플러터] Rive 오랜만에 사용 (0) | 2023.03.26 |
[플러터] Rive animation 실행은 해보자 #1 (0) | 2022.09.16 |
[플러터] reorderableList - 리스트 순서 바꾸기 (0) | 2022.09.14 |
[플러터] 위젯 사이즈 확인하기 (0) | 2022.09.13 |
[플러터] 탭한 위치의 위치값 찾기 (0) | 2022.09.13 |
[플러터] web - NetworkImage, 이미지 안뜰 때 (0) | 2022.09.01 |