Closed dlcodns closed 1 year ago
http://work6.mrds.kr/bbs/board.php?bo_table=flutter&wr_id=56&page=3
양쪽 컬럼 모두 crossAxisAlignment: CrossAxisAlignment.start mainAxisAlignment: MainAxisAlignment.start, 이렇게 해봤는데 위로 정렬이 안됩니다. 계속 안되면 그냥 이대로 갈게요!
ListView( children: [ Row( children: [ Expanded( flex: 1, child: Column( crossAxisAlignment: CrossAxisAlignment.start, // 위로 정렬 children: [ Container( width: MediaQuery.of(context).size.width * 0.5, decoration: BoxDecoration( borderRadius: BorderRadius.circular(10), border: Border.all(width: 10, color: const Color(0xffEEEAFF)), ), child: Image.asset('miso.jpg', fit: BoxFit.contain), ), Container( width: MediaQuery.of(context).size.width * 0.5, decoration: BoxDecoration( borderRadius: BorderRadius.circular(10), border: Border.all(width: 10, color: const Color(0xffEEEAFF)), ), child: Image.asset('TY.png', fit: BoxFit.contain), ), Container( width: MediaQuery.of(context).size.width * 0.5, decoration: BoxDecoration( borderRadius: BorderRadius.circular(10), border: Border.all(width: 10, color: const Color(0xffEEEAFF)), ), child: Image.asset('heart.jpg', fit: BoxFit.contain), ), Container( width: MediaQuery.of(context).size.width * 0.5, decoration: BoxDecoration( borderRadius: BorderRadius.circular(10), border: Border.all(width: 10, color: const Color(0xffEEEAFF)), ), child: Image.asset('miso.jpg', fit: BoxFit.contain), ), ], ), ), Expanded( flex: 1, child: Column( crossAxisAlignment: CrossAxisAlignment.start, // 위로 정렬 children: [ Container( width: MediaQuery.of(context).size.width * 0.5, decoration: BoxDecoration( borderRadius: BorderRadius.circular(10), border: Border.all(width: 10, color: const Color(0xffEEEAFF)), ), child: Image.asset('heart.jpg', fit: BoxFit.contain), ), Container( width: MediaQuery.of(context).size.width * 0.5, decoration: BoxDecoration( borderRadius: BorderRadius.circular(10), border: Border.all(width: 10, color: const Color(0xffEEEAFF)), ), child: Image.asset('kitty.png', fit: BoxFit.contain), ), Container( width: MediaQuery.of(context).size.width * 0.5, decoration: BoxDecoration( borderRadius: BorderRadius.circular(10), border: Border.all(width: 10, color: const Color(0xffEEEAFF)), ), child: Image.asset('TY.png', fit: BoxFit.contain), ), ], ), ), ], ), ] ),
http://work6.mrds.kr/bbs/board.php?bo_table=flutter&wr_id=56&page=3
양쪽 컬럼 모두 crossAxisAlignment: CrossAxisAlignment.start mainAxisAlignment: MainAxisAlignment.start, 이렇게 해봤는데 위로 정렬이 안됩니다. 계속 안되면 그냥 이대로 갈게요!