패키지, 저장소 및 앱 카테고리 검색

flutter_speed_dial 표지
패키지 상세v7.0.0

flutter_speed_dial

레이블, 애니메이션 아이콘, 다중 방향 자식 등과 함께 아름답고 동적인 마테리얼 디자인 스피드 다이얼을 구현하는 Flutter 플러그인.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
11.5만
좋아요
1.3천
Pub 점수
140

패키지 설치

flutter pub add flutter_speed_dial

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

다이나믹하고 시각적으로 매력적인 마테리얼 디자인 스피드 다이얼을 구현하는 플러터 플러그인입니다. 애니메이션 아이콘, 레이블, 다중 방향의 자식 위치 지정 및 부드러운 전환을 지원합니다. 제한된 공간을 가진 앱에서 탐색을 향상시키기에 이상적이며, 단일 플로팅 버튼에서 여러 작업에 접근할 수 있는 직관적인 방법을 제공합니다. 이 플러그인은 Android, iOS, 웹, macOS, Windows, Linux를 포함한 모든 주요 플랫폼과 호환됩니다.

사용 사례

  • 모바일 앱 탐색 개선
  • 여러 작업에 빠르게 접근할 수 있도록 제공
  • 작은 레이아웃에서 UI 효율성 향상
  • 대시보드에 상호작용 요소 추가하기
  • 현대적이고 제스처 친화적인 인터페이스 만들기

주요 기능

  • 애니메이션 아이콘 전환
  • 자식 작업에 대한 레이블 지원
  • 다중 방향 자식 배치
  • 사용자 정의 가능한 스피드 다이얼 동작
  • 크로스 플랫폼 호환성
  • 부드러운 열기/닫기 애니메이션

적합한 대상

  • 모바일 앱 개발자
  • Material Design 컴포넌트를 찾고 있는 UI/UX 디자이너
  • 작은 액션 메뉴가 필요한 앱
  • 다중 플랫폼을 대상으로 하는 개발자
  • Material Design 지침을 사용하는 프로젝트

고려 사항

  • 많은 자식이 있을 경우 성능에 영향을 미칠 수 있습니다
  • 신중한 레이아웃 계획이 필요합니다
  • 내장 옵션을 초과한 사용자 정의 제한
  • 복잡한 중첩 상호작용에 적합하지 않음
  • 간단하고 집중된 작업 세트에 가장 적합

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Flutter Speed Dial

Flutter package to render a Material Design Speed Dial.

Support the development

To sustain the development of this library we need someone who can help this library either through code or by donating it. Donation will help us to live up in the world of unmaintained open source packages and to dedicate more time in improving this to live up to the mark. We will also add the name of the contributors or the donaters in the README section.

To donate directly you can use below link, don't forget to leave a message there:

Buy Me A Coffee

Or become a Github sponser by clicking on the Sponser button in this repository.

GitHub release License Classic API Docs Usage

Usage

The SpeedDial widget is built to be placed in the Scaffold.floatingActionButton argument, replacing the FloatingActionButton widget. You can set its position using Scaffold.floatingActionButtonLocation argument. It can also be used with Scaffold.bottomNavigationBar and Snackbar.

Null safety is available from version 3.0.5 ( It is also backward compatible, meaning you can use it with non null safe code too )

Labels

SpeedDial can take any Widget as label SpeedDial will use Extended FloatingActionButton property if label is specified. It also have activeLabel property by which you can specify the label which is shown when SpeedDial is open. It also comes with its labelTransitionBuilder which defaults to fade transition.

Also Every child's button have label property which accepts String which can be styled by using labelStyle. If you want to specify a widget then you can use labelWidget.
If the label parameter is not provided, then the label will be not rendered.

Types of child for SpeedDial (Ordered by their priority)
Animated Icon using animatedIcon property SpeedDial's AnimatedIcon has two specific parameters:
  • animatedIcon takes an AnimatedIconData widget
  • animatedIconTheme takes IconThemeData
Widget using child & activeChild property SpeedDial's Widget has two specific parameters:
  • child takes a widget and is the default placeholder if dial is not open.
  • activeChild takes a widget and is the child's Widget which is used when dial is open, not required.
IconData using icon & activeIcon property SpeedDial's IconData has three specific parameters:
  • icon takes a IconData and is the default placeholder if dial is not open.
  • activeIcon takes a IconData and is the child's IconData which is used when dial is open, not required.
  • iconTheme takes its IconThemeData which includes color and size.

The package will handle the animation by itself.

Handle spacing

There are various properties for SpeedDial by which you can adjust the spacing:

  1. spacing - This parameter handles the space b/w speed dial and its children.

  2. spaceBetweenChildren - As the name suggests, this is used to adjust the space b/w every child element

  3. childPadding - This will adjust the padding of children speed dial button, this will help you to control the size of the children button more effectively.

  4. childMargin - This will help you to adjust the margin b/w children speed dial button and its label.

Close on WillPop

Closes automatically on back button press, if dial is open. If you don't want this behaviour then simply change the value of closeDialOnPop to false.

How to use openCloseDial property:
  1. Create a value notifier named isDialOpen:
ValueNotifier<bool> isDialOpen = ValueNotifier(false);
  1. Then set openCloseDial to isDialOpen in your SpeedDial:
SpeedDial(
  ...
  openCloseDial: isDialOpen,
  ...
)
  1. Now you can change the state of dial open:
isDialOpen.value = false;
Example Usage

See Example Code for more info.

Issues & Feedback

Please file an issue to send feedback or report a bug,
If you want to ask a question or suggest an idea then you can open an discussion.
Thank you!

Contributing

Every pull request is welcome.

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트