[Flutter] bottom sheet 둥근 모서리, 딜레이 추가
예시
방법
Future.delayed(Duration(milliseconds: 1000)).then((_) { // 1초 뒤에 동작
showModalBottomSheet(
context: context,
isScrollControlled: true, // 추가
backgroundColor: Colors.transparent, // 추가
builder: (context) => Container(
height: MediaQuery.of(context).size.height * 0.75, // 반응형 사이즈(숫자 조절)
decoration: new BoxDecoration(
color: Colors.white,
borderRadius: new BorderRadius.only(
topLeft: const Radius.circular(25.0), // 적절히 조절
topRight: const Radius.circular(25.0), // 적절히 조절
),
),
child: Center(
child: Text("Modal content goes here"),
),
),
);
});
참고
https://stackoverflow.com/a/60072706
Author And Source
이 문제에 관하여([Flutter] bottom sheet 둥근 모서리, 딜레이 추가), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@namtaehyun/Flutter-bottom-sheet-둥근-모서리-딜레이-추가저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)