v0.0.5bottom_drawer
하단 드로어 위젯으로, 사용자 정의 드로어 헤더와 본문을 지원하며, 리스트 본문을 지원하고 드래그하여 열고 닫을 수 있습니다.
36좋아요 44830일 다운로드150Pub 점수
AndroidiOSWebmacOSWindowsLinux
Flutter 하단 드로어 위젯입니다.
{"sdk":"flutter"}{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Bottom Drawer.
DEMO
dependencies:
bottom_drawer: ^0.0.5
import 'package:bottom_drawer/bottom_drawer.dart';
Create a bottom drawer controller.
/// create a bottom drawer controller to control the drawer.
BottomDrawerController controller = BottomDrawerController();
Build a bottom drawer widget.
/// return a bottom drawer widget.
Widget buildBottomDrawer(BuildContext context) {
return BottomDrawer(
/// your customized drawer header.
header: Container(),
/// your customized drawer body.
body: Container(),
/// your customized drawer header height.
headerHeight: 60.0,
/// your customized drawer body height.
drawerHeight: 180.0,
/// drawer background color.
color: Colors.lightBlue,
/// drawer controller.
controller: controller,
);
}
Control the bottom drawer.
/// open the bottom drawer.
controller.open();
/// close the bottom drawer.
controller.close();
For more information, see the example.