본문 바로가기

CrossAxisAlignment3

Flutter 플러터: 버튼을 부모 요소의 크기로 확장하는 방법은 무엇인가요?, Flutter: How to make a button expand to the size of its parent? 질문 I am trying to create square buttons, but Expanded doesn't seem to work the same as it does with containers. Take the following code for example new Expanded( flex: 2, child: new Column( children: [ new Expanded( child:new Row( children: [ new Expanded(child: new MaterialButton(...)), new Expanded(child: new MaterialButton(....)), new Expanded(child: new Container(color: Colors.red)), new Exp.. 2023. 10. 1.
Flutter 플러터에서 열과 행 항목을 가운데 정렬하는 방법은 무엇인가요?, How to center column and row item in Flutter? 질문 나는 작은 통화 표를 가지고 있습니다. 그리드를 사용하지 않았습니다. 열과 행을 사용했습니다. 문제는 행에 있는 항목들이 아래의 엑셀 예시처럼 가운데에 표시되지 않습니다. 항목들을 가운데에 표시하기 위해 어떤 위젯을 사용해야 할까요? 예시 코드: return new Center( child: new Column( crossAxisAlignment: CrossAxisAlignment.center, children: [ new Row( mainAxisAlignment: MainAxisAlignment.center, children: [ new Padding( padding: const EdgeInsets.fromLTRB(15.0, 5.0, 15.0, 5.0), child: new Icon( Icons... 2023. 9. 24.
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.