v2.0.0fancy_drawer
귀하의 플러터 앱을 위한 세련되고 애니메이션 처리된 사용자 정의 가능한 드로어
52좋아요 5030일 다운로드150Pub 점수
AndroidiOSWebmacOSWindowsLinux
귀하의 플러터 앱을 위한 아름다운 사용자 정의 가능한 드로어 경험 🎯📱
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

A beautiful drawer experience for your flutter app .
import 'package:fancy_drawer/fancy_drawer.dart';
...
FancyDrawerController _controller;
@override
void initState() {
super.initState();
_controller = FancyDrawerController(
vsync: this, duration: Duration(milliseconds: 250))
..addListener(() {
setState(() {}); // Must call setState
}); // This chunk of code is important
}
@override
void dispose() {
_controller.dispose(); // Dispose controller
super.dispose();
}
...
FancyDrawerWrapper(
backgroundColor: Colors.white, // Drawer background
controller: _controller, // Drawer controller
drawerItems: <Widget>[], // Drawer items
child: Scaffold(), // Your app content
);
drawerItems Drawer items are widgets needed to render
child child is the main app content
controller is
needed to init and maintain the animation
backgroundColor Set to white background
itemGap
set to 10.0
hideOnContentTap controls if drawer will hide on
content tap or not , set to truecornerRadius set to 8.0
의존성 목록 2 개
{"sdk":"flutter"}{"sdk":"flutter"}사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗