FLUTTER ECOSYSTEM

MaherSafadii/Drops-Flutter

iOS 사운드 끄기 모드 알림의 플러터 구현

Drops-Flutter 프로젝트 이미지
Stars
25
Forks
9
최근 푸시(UTC)
2025. 3. 9.
프로젝트 상태
활성
MaherSafadii GitHub avatar
GITHUB User

MaherSafadii ↗

언어DartSwiftHTMLKotlinObjective-C

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 3 개
  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}
  • flutter_lints개발 의존성^5.0.0

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

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.

Features

https://raw.githubusercontent.com/MaherSafadii/Drops-Flutter/HEAD/screenshots/example.gif

Getting started

Add to your dependencies:

dependencies:
  drops: ^0.0.1

Then import:

import 'package:drops/drops.dart';

Usage

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  

Additional information

Report any bugs if any via github.