반응형
SizeBox 사용
SizedBox(
width: 200, // set the width to 200
child: OutlinedButton(
onPressed: () {
// add your onPressed logic here
},
child: Text('My Button'),
),
);
Container 사용
Container(
width: 200, // set the width to 200
child: OutlinedButton(
onPressed: () {
// add your onPressed logic here
},
child: Text('My Button'),
),
);
반응형
'프로그램 개발해서 돈벌기 > flutter' 카테고리의 다른 글
flutter에서 MaterialApp 배경색 변경 (0) | 2023.03.23 |
---|---|
flutter 버튼 중 onFocusChange를 갖고 있는 버튼들은? (0) | 2023.03.23 |
부동 소수점 연산 버그로 발생한 실제 사건을 Dart 코드로 검증 해 보고 해결해 보기 (0) | 2023.01.25 |
10. 클래스 (class) - 완전 초보 Dart 언어 기초 문법 : flutter (0) | 2022.12.31 |
flutter에서 Named route 화면 전환을 이용하여 첫(시작) 로딩 화면( Splash Screen ) 만들기 (0) | 2022.12.30 |
댓글