[flutter] 위젯 배치 비율 설정

Edward Hyun·2021년 11월 16일
0

app&web-dev

목록 보기
3/178
Center(
    child: Row(
        mainAxisSize: MainAxisSize.max,
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
            Expanded(child: Text(
                    '메인 화면1',
                ),
                flex:2
            ),
            Expanded(child: Text(
                    '메인 화면2',
                ),
                flex:1
            ),
        ],
    )
)

참고 :: https://dalgonakit.tistory.com/144

profile
앱&웹개발(flutter, vuejs, typescript, react), 인공지능(nlp, asr, rl), 백엔드(nodejs, flask, golang, grpc, webrtc, aws, msa, nft, spring cloud, nest.js), 함수형 프로그래밍(scala, erlang)을 공부하며 정리합니다.

0개의 댓글