Widget Information(BuildContext context) {
return Container(
width: MediaQuery.of(context).size.width,
padding: const EdgeInsets.only(top: 10),
// 제스터 이벤트
child: GestureDetector(
behavior: HitTestBehavior.opaque,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Container(
padding: const EdgeInsets.only(left: 30),
child: Text(
'내 정보 확인 / 변경',
style: TextStyle(fontSize: 20),
),
),
Container(
alignment: Alignment.centerRight,
),
Container(
padding: const EdgeInsets.only(right: 30),
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Container(
child: Icon(
Icons.arrow_forward_ios,
size: 15,
color: Colors.grey,
),
),
],
),
),
],
),
// GestureDetector를 이용한 onTap
onTap: () => {
HapticFeedback.mediumImpact(),
//Navigator.pushReplacement(context, CupertinoPageRoute(builder: (context)=>AppSetting())),
Navigator.of(context).push(CupertinoPageRoute(
builder: (context) => Information1(),
)),
},
),
);
}
'study > flutter' 카테고리의 다른 글
플러터(flutter) BottomSheet 날짜 선택 (0) | 2021.09.27 |
---|---|
플러터(flutter) TextField 초기값 설정 set text (0) | 2021.09.26 |
플러터(flutter) 버튼 클릭시 진동 (0) | 2021.09.24 |
플러터(flutter) 베너 달기 (이미지 이용) (0) | 2021.09.24 |
플러터(flutter) Android FCM 백그라운드, 포그라운드 알림 (0) | 2021.09.17 |