flutter 박스 크기를 꽉차게 하는법
2024-09-11 16:28
1,680
0
0
0
본문
접기
[ ▼ 작성자 참고 Source ]
class Suse_App extends StatelessWidget {
const Suse_App({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('suse_hh')
),
body: Align(
alignment: Alignment.topRight,
child: Container(
width: double.infinity,
height: 50,
color: Colors.red,
),
),
)
);
}
}
본문
width 를 double.infinity 지정하면됨
0
0
로그인 후 추천 또는 비추천하실 수 있습니다.
댓글목록0