*Code View
*Screen:
*메뉴화면(Drawer) 닫기 이벤트:
TextButton(
onPressed: () {
setState(() {
widget.menuDrawerController.visibled.value = false;
Navigator.pop(context);
});
},
style: TextButton.styleFrom(
padding: EdgeInsets.only(left: SizeConfig.largePadding),
),
child: Row(
children: const [
Icon(Icons.quiz),
SizedBox(width: 20),
Text('닫기 >',
style: TextStyle(
fontSize: FontConfig.fontSize3,
fontWeight: EliceWeight.bold)),
],
)
),
Navigator.pop(context);
'App > Flutter' 카테고리의 다른 글
[ FLUTTER ] 플러터 예제 모음 (0) | 2021.10.05 |
---|---|
[ FLUTTER ] 플랫폼 체크 (0) | 2021.10.04 |
[ FLUTTER ] 이미지 사이즈비율 조정하기 (0) | 2021.10.01 |
[ FLUTTER ] Dart 소수, 정수 처리 (0) | 2021.09.30 |
[ FLUTTER ] 오늘 날짜 (0) | 2021.09.08 |