drawer_swipe 패키지는 Flutter 애플리케이션에서 다층 드로어를 생성할 수 있게 해주며, 레이어 간 이동을 위한 스와이프 기반 인터랙션을 제공합니다. 직관적인 사용자 경험을 위해 설계되었으며, 부드러운 전환과 사용자 정의 가능한 레이아웃을 지원합니다. 계층적 탐색이나 층별 콘텐츠 표시가 필요한 앱에 적합하며, 제스처 기반 접근을 통해 사용성을 향상시킵니다. 이 패키지는 가볍고 기존의 Flutter 프로젝트에 쉽게 통합됩니다.
The source code is 100% Dart, and everything resides in the /lib folder.
Show some :heart: and star the repo to support the project
GIF
💻 Installation
In the dependencies: section of your pubspec.yaml, add the following line:
drawer_swipe:<latest_version>
❔ Usage
Import this class
import'package:drawer_swipe/drawer_swipe.dart';
Use SwipeDrawer
@overrideWidgetbuild(BuildContext context) {
returnScaffold(
// add this line so you can add your appBar in Body
extendBodyBehindAppBar: true,
body: SwipeDrawer(
radius: 20,
key: drawerKey,
bodyBackgroundPeekSize: 30,
backgroundColor: Colors.red,
// pass drawer widget
drawer: buildDrawer(),
// pass body widget
child: buildBody(),
),
);
}
🎨 Customization and Attributes
SwipeDrawer attributes
Attribute Name
Example Value
Description
child
BodyWidget()
Screen Body Widget
drawer
DrawerWidget()
Drawer Body Widget
radius
20.0
body radius value the default value is 0.0
bodyBackgroundPeekSize
30.0
the distance between the main body and the faded one the default value is 50.0
backgroundColor
Colors.red
background color the default value is Colors.black
bodySize
70.0
body width when opening the drawer the default value is 80.0
curve
Curves.easeOut
animation curve default value is Curves.easeIn
Contributors ✨
Thanks goes to these wonderful people (emoji key):
Copyright (c) 2012 Pharous
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Getting Started
For help getting started with Flutter, view our online documentation.
For help on editing package code, view the documentation.