SolidBottomSheet는 Flutter용으로 고도로 사용자 정의 가능한 바텀 시트 위젯으로, Scaffold의 bottomSheet 속성에 원활하게 통합되도록 설계되었습니다. 부드러운 애니메이션, 외관 및 동작에 대한 완전한 제어를 제공하며, 모바일, 웹, 데스크톱을 포함한 모든 주요 플랫폼을 지원합니다. 최소한의 설정으로 개발자는 앱 디자인에 맞게 반응형이고 시각적으로 매력적인 바텀 시트를 신속하게 구현할 수 있습니다. 이 패키지는 유연성을 희생하지 않고도 사용의 용이성을 강조합니다.
사용 사례
접을 수 있는 콘텐츠 패널 구현
드래그 제스처를 사용하여 상호작용 모달 만들기
동적 폼 또는 필터 만들기
사용자 정의 탐색 드로어 설계
확장 가능한 정보 카드 추가
주요 기능
완전히 사용자 정의 가능한 외관
부드러운 드래그 전개 애니메이션
크로스 플랫폼 지원
Scaffold와의 간단한 통합
사용자 정의 가능한 높이 및 스냅 포인트
중첩 스크롤을 지원합니다
적합한 대상
빠른 바텀 시트 구현을 원하는 개발자
다양한 플랫폼 간 일관된 하단 시트 UX가 필요한 앱
시트 스타일링에 대해 세밀한 제어를 원하는 디자이너
복잡한 바텀 시트 상호작용을 가진 프로젝트
고려 사항
복잡한 레이아웃을 위해 추가 스타일링이 필요할 수 있습니다
많은 콘텐츠 사용 시 성능에 미치는 영향
제한된 내장 테마 옵션
매우 크거나 밀도 높은 콘텐츠 영역에는 적합하지 않음
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
Solid bottom sheet
A full customizable bottom sheet easy to implement. Just put it on your bottomSheet property on your Scaffold widget and see the magic. For more details see the README.md. Feel free to contribute. This package is open to recieve pull request on github. Enjoy! :D
Screenshots
Usage
SolidBottomSheet(
headerBar: Container(), // Your header here
body: Container(), // Your body here
),
Properties
// This controls the minimum height of the body. Must be greater or equal of 0.// By default is 0finaldouble minHeight;
// This controls the minimum height of the body. By default is 500finaldouble maxHeight;
// This is the content that will be hided of your bottomSheet. You can fit any// widget. This parameter is requiredfinalWidget body;
// This is the header of your bottomSheet. This widget is the swipeable area// where user will interact. This parameter is requiredfinalWidget headerBar;
// This flag is used to enable the automatic swipe of the bar. If it's true// the bottomSheet will automatically appear or disappear when user stops// swiping, but if it's false, it will stay at the last user finger position.// By default is truefinalbool autoSwiped;
// This flag enable that the user can toggle the visibility with just tapping on// the header bar. By default is falsefinalbool toggleVisibilityOnTap;
// This flag enable that users can swipe the body and hide or show the// solid bottom sheet. Turn on false if you don't want to let the user// interact with the solid bottom sheet. By default is false.finalbool draggableBody;
// This flag enable that users can swipe the header and hide or show the // solid bottom sheet. Turn on false if you don't want to let the user // interact with the solid bottom sheet. By default is true. finalbool canUserSwipe;
// This property defines how 'smooth' or fast will be the animation. Low is// the slowest velocity and high is the fastest. By default is medium.finalSmoothness smoothness;
// This property is the elevation of the bottomSheet. Must be greater or equal// to 0. By default is 0.finaldouble elevation;
// This flag controls if the body is shown to the user by default. If it's// true, the body will be shown. If it's false the body will be hided. By// default it's false.finalbool showOnAppear;
// This object used to control behavior internally// from the app and don't depend of user's interaction.// can hide and show methods plus have isOpened variable// to check widget visibility on a screenfinalSolidController controller;
// This method will be executed when the solid bottom sheet is completely// opened.finalFunction onShow;
// This method will be executed when the solid bottom sheet is completely// closed.finalFunction onHide;
Controller
// This is the current smoothness of the bottomSheetSmoothness smoothness;
// Returns the value of the height as streamStream<double> heightStream;
// Returns the value of the visibility as streamStream<bool> isOpenStream;
// Returns the value of the heightdouble height;
// Returns if the solid bottom sheet is opened or notbool isOpened;
// This method sets the value of the height using streamsvoidheight(double value);
// Updates the visibility value to falsevoidhide();
// Updates the visibility value to truevoidshow();