v0.0.5
drops
클립보드에서 복사할 때 또는 Apple 펜슬을 연결할 때 사용되는 알림과 같은 알림을 표시하기 위한 패키지이며, 사이렌 토글을 사용할 때 아이폰에 표시되는 알림도 포함됩니다.
65좋아요 11630일 다운로드150Pub 점수
AndroidiOSWebmacOSWindowsLinux
iOS 사운드 끄기 모드 알림의 플러터 구현
{"sdk":"flutter"}{"sdk":"flutter"}^5.0.0아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A pacakge for showing alerts like the one used when copying from pasteboard or connecting Apple pencil and the alert shown on iPhones when using the silent toggle.
Add to your dependencies:
dependencies:
drops: ^0.0.1
Then import:
import 'package:drops/drops.dart';
To show a Drop all you have to do it the following:
Drops.show(context, title: 'Why did dash cross the road?',);
this displays a bare minimum Drop, to get the most, you can customize them like this:
Drops.show(
context,
title: 'Title',
subtitle: 'subtitle',
icon: CupertinoIcons.smiley_fill,
isDestructive: false,
highContrastText: true,
position: DropPosition.top,
shape: DropShape.pill,
);
Heres the full list of parameters that you can use to adjust the Drop to match your needs:
required String title
Duration duration
Duration? transitionDuration
TextStyle? textStyle
Curve curve = Curves.easeOutExpo
Curve? reverseCurve
String? subtitle
IconData? icon
bool isDestructive
TextStyle? titleTextStyle
TextStyle? subtitleTextStyle
DropPosition position
EdgeInsets? padding,
DropShape shape
bool highContrastText
Color? iconColor
int titleMaxLines
int subtitleMaxLines
Report any bugs if any via github.