rubber
고무는 사용자 정의 가능한 마테리얼 스프링 애니메이션을 갖춘 탄성 바닥 시트 위젯입니다.
Flutter용 탄성 재질 하단 시트 구현.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
An elastic material bottom sheet implementation for Flutter.
Requires Flutter 3.44 or later and Dart 3.12 or later.
This is still an early preview, some behaviors can change or being removed. Every feedback, bug report or feature request is welcome, please send it at the issue tracker
Follow the Quick Start to add it to your project. Is also available the complete example in the repository to preview the library on your device.
Common interaction options can be configured directly on the sheet:
RubberBottomSheet(
animationController: controller,
lowerLayer: const MyBackground(),
upperLayer: const MySheetContent(),
draggable: true,
snapThreshold: 0.4,
minFlingVelocity: 700,
completeFlingVelocity: 5000,
scrimColor: Colors.black54,
onScrimTap: controller.collapse,
);
Use strict bounds when the elastic overscroll effect is not appropriate:
final controller = RubberAnimationController(
vsync: this,
duration: const Duration(milliseconds: 250),
boundsBehavior: RubberAnimationBoundsBehavior.strict,
);
Use controller.addListener(...) to observe the position continuously. Status
listeners report direction and boundary transitions (forward, reverse,
completed, and dismissed). Pixel bounds are automatically recalculated
after size and orientation changes.
![]() |
![]() |
의존성 목록 3 개
{"sdk":"flutter"}{"sdk":"flutter"}^6.0.0사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗