본문 바로가기

Layout12

Flutter 플러터: 수평 리스트 뷰에서의 최소 높이, Flutter: Minimum height on horizontal list view 질문 저는 Flutter에서 항목의 가로 스크롤링 목록을 만들려고 하고, 그 목록이 자식에 따라 필요한 높이만 차지하도록하고 싶습니다. 디자인상으로 “ListView는 교차 방향에서 사용 가능한 공간에 맞게 확장하려고합니다” (Flutter docs에서) 이것은 뷰포트의 전체 높이를 차지한다는 것을 알 수 있습니다. 그러나 이것을하지 않도록하는 방법이 있습니까? 아마도 이와 유사한 것이 이상적입니다 (물론 작동하지 않는 것): new ListView( scrollDirection: Axis.horizontal, crossAxisSize: CrossAxisSize.min, children: [ new ListItem(), new ListItem(), // ... ], ); 저는 ListView를 높이가 고.. 2023. 6. 14.
Flutter 컨테이너 위젯을 수직으로 부모 요소에 채우도록 만드세요., Make container widget fill parent vertically 질문 TL;DR Need the container to fill the vertical space so that it can act as a ontap listener. Have tried most solutions but nothing seems to work. So what I am trying to do is to make my container fill up the vertical space while still having a fixed width. Two first is what I have and third is what I want. The idea is to have the container transparent with a gesture ontap listener. If anyone h.. 2023. 6. 12.
Flutter 플러터에서 행의 요소 간 간격 설정하기, Set the space between Elements in Row Flutter 질문 코드: new Container( alignment: FractionalOffset.center, child: new Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ new FlatButton( child: new Text('Don\'t have an account?', style: new TextStyle(color: Color(0xFF2E3233))), ), new FlatButton( child: new Text('Register.', style: new TextStyle(color: Color(0xFF84A2AF), fontWeight: FontWeight.bold),), onPressed: moveToRegister, .. 2023. 5. 15.
Flutter 플러터에서 두 항목을 극단에 맞추어 정렬 - 하나는 왼쪽에, 다른 하나는 오른쪽에, Flutter align two items on extremes - one on the left and one on the right 질문 저는 두 항목을 왼쪽과 오른쪽 끝에 맞추려고 노력하고 있습니다. 왼쪽에 맞춰진 하나의 행과 그 하위에 오른쪽에 맞춰진 하위 행이 있습니다. 그러나 하위 행이 부모에서 정렬 속성을 가져오는 것 같습니다. 이것은 내 코드입니다. var SettingsRow = new Row( mainAxisAlignment: MainAxisAlignment.end, crossAxisAlignment: CrossAxisAlignment.center, mainAxisSize: MainAxisSize.max, children: [ Text("Right",softWrap: true,), ], ); var nameRow = new Row( mainAxisAlignment: MainAxisAlignment.start, cross.. 2023. 5. 13.