분류, 패키지 및 저장소 검색

advance_notification 표지
패키지 상세v1.0.6

advance_notification

독특한 디자인을 가진 스낵바 및 알림을 위한 고급 알림 패키지입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
100
좋아요
41
Pub 점수
130

패키지 설치

flutter pub add advance_notification

패키지 개요

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

advance_notification 패키지는 고유하고 현대적인 디자인을 가진 시각적으로 두드러지는 스낵바 및 알림 컴포넌트를 통해 플러터 앱을 강화합니다. 표준 플러터 알림과 구분되는 사용자 정의 가능한 알림을 제공하여 다양한 플랫폼에서 사용자 경험을 향상시킵니다. 안드로이드, iOS, 웹, macOS, Windows, 리눅스를 지원하며, 대상 장치에 관계없이 일관된 알림 스타일을 보장합니다. 이 패키지는 매력적이고 애니메이션 효과가 있으며 반응성이 뛰어난 피드백 메커니즘으로 UI를 향상시키고자 하는 애플리케이션에 이상적입니다.

사용 사례

  • 모바일 및 웹 앱에서 사용자 피드백 향상
  • 사용자 정의 스타일로 컨텍스트 알림 표시
  • 매력적인 알림을 통한 앱 참여도 향상
  • UI에 부드러운 전환 효과 통합하기
  • 작업 또는 오류에 대한 시각적 신호 제공
  • 고유한 테마로 토스트 메시지 사용자 지정

주요 기능

  • 독창적이고 현대적인 알림 디자인
  • 크로스 플랫폼 호환성
  • 사용자 정의 가능한 외관 및 동작
  • 시각적 매력용 애니메이션 전환
  • 여러 알림 유형 지원
  • 간단한 API를 통한 간편한 통합

적합한 대상

  • 독특한 UI 요소를 찾는 개발자
  • 정교한 사용자 피드백 시스템이 필요한 앱
  • 다중 플랫폼 대상 프로젝트
  • 디자인 중심의 플러터 애플리케이션
  • 알림을 위한 반복 코드를 줄이고자 하는 팀
  • 미학을 우선시하는 프론트엔드 개발자

고려 사항

  • 복잡한 레이아웃을 위해 추가적인 스타일 조정이 필요할 수 있습니다
  • 기본 사용법을 넘어서는 문서가 제한적
  • 고주파 알림과 관련된 성능 영향 가능성
  • 미니멀리즘 디자인 선호에 적합하지 않습니다
  • 애니메이션을 위해 외부 종속성에 의존합니다
  • 시각적 구분이 우선시될 때 가장 효과적입니다

원본 README

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

Advance_Notification

Advance_Notification is a Flutter package with custom snackabar.

Development is continue

  • There are many new features planned for Advance_Notification.

Installing

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  smart_notification: <latest_version>
2. Install it

You can install packages from the command line:

Run this command with flutter:

flutter pub add smart_notification
3. Import it

Now in your Dart code, you can use:

import 'package:smart_notification/smart_notification.dart';

Getting Started || Usage

Why Advance Notification

The Advance_Notification provide multiple design of snackbar notification.

Examples

Advance_Notification have three mode in snackbar => BASIC,ADVANCE,MODERN.

-  Note: 
- Veriosn 1.0.6 or above , we change iconposition, type, mode String type to enum type.
- So you can use like -> 
- iconPosition:IconPosition.LEFT or IconPosition.RIGHT  or IconPosition.CENTER AND
- type:sType.DARK or sType.ERROR or sType.WARNING or sType.PRIMARY or sType.INFO or sType.LIGHT or sType.SUCCESS  AND
- mode: Mode.BASIC or Mode.MODERN or Mode.ADVANCE
1: Basic Mode

You can use basic snackbar with background color, text color, position

1.1 => Example

Note: For basic mode you don't need to write mode.

AdvanceSnackBar(message: "Hello...").show(context);

Note: Basic with background color.

 AdvanceSnackBar(
     message: "Notification Message", 
     bgColor: Colors.blueAccent).show(context);
1.2 => Example

Note: Basic with background color or text color.

AdvanceSnackBar(
    message: "Notification Message",
    bgColor: Colors.tealAccent,
    textColor: Colors.red).show(context);
1.3 => Example

Note: Basic with background color or text or fixed position.

AdvanceSnackBar(
    message: "Notification Message",
    bgColor: Colors.tealAccent,
    textColor: Colors.red,
    isFixed: false).show(context);
2: Advance mode

You can use advance mode snackbar with many features. It has default close button. You can override the close button event, color and icon image.

2.1 => Example
 AdvanceSnackBar(
     message: "Notification Message",
     mode: "ADVANCE",).show(context);
2.2 => Example

You can add your custom duration for hide notification. default duration is 4 seconds. We have multiple types in Advance mode like : PRIMARY,SECONDARY,LIGHT,DARK,SUCCESS,INFO,WARNING,ERROR,default type is SUCCESS.


AdvanceSnackBar(
    message: "Notification Message",
    mode: "ADVANCE",
    duration: Duration(seconds: 5),).show(context);
2.3 => Example

Note: Change bgColor, text color close iconColor.

AdvanceSnackBar(
    message: "Notification Message",
    mode: "ADVANCE",
    duration: Duration(seconds: 5),
    bgColor: Colors.red,
    textColor: Colors.black,
    iconColor: Colors.black,).show(context);
2.4 => Example

Note: With this example you can change textSize or show notification icon.

AdvanceSnackBar(
        message: "Notification Message",
        mode: "ADVANCE",
        duration: Duration(seconds: 5),
        bgColor: Colors.red,
        textColor: Colors.white,
        iconColor: Colors.white,
        textSize: 22,
        isIcon: true,
    ).show(context);

2.5 => Example

Note: Every type has own icon you can show and hide with isIcon.

AdvanceSnackBar(
        message: "Notification Message",
        mode: "ADVANCE",
        duration: Duration(seconds: 5),
        type: "ERROR",
        textSize: 20,
        isIcon: true,
    ).show(context);
2.6 => Example

Note: Change type icon position.

AdvanceSnackBar(
        message: "Notification Message",
        mode: "ADVANCE",
        duration: Duration(seconds: 5),
        type: "ERROR",
        textSize: 20,
        isIcon: true,
        iconPosition: "RIGHT",
    ).show(context);
2.7 => Example

Note: You can also add tittle.

AdvanceSnackBar(
        message: "Notification Message",
        tittle: "Tittle message",
        mode: "ADVANCE",
        type: "ERROR",
        textSize: 20,
        isIcon: true,
        closeIconPosition: "LEFT", 
    ).show(context);

2.8 => Example

Note: You can change divider color (hr line).


AdvanceSnackBar(
        message: "Notification Message",
        tittle: "Tittle message",
        mode: "ADVANCE",
        type: "ERROR",
        textSize: 20,
        isIcon: true,
        dividerColor: Colors.red,
        closeIconPosition: "LEFT", 
    ).show(context);

2.9 => Example

Note: With child you can add an extra widgets it can be a button, icon, image, etc.

AdvanceSnackBar(
        message: "Notification Message ",
        mode: "ADVANCE",
        type: "PRIMARY",
        tittle: "Tittle message",
        iconPosition: "RIGHT",
        child: Padding(
            padding: const EdgeInsets.only(left: 2),
            child: Icon(
            Icons.all_inbox,
            color: Colors.red,
            size: 25,
            ),
        ),
        isIcon: true)
    .show(context);
2.10 => Example

Note: You can override onclick function of close button.

AdvanceSnackBar(
        message: "Notification Message ",
        mode: "ADVANCE",
        type: "PRIMARY",
        onClick: () 
        {
            print("Hello");
        },
        isIcon: true).show(context);

3: Modern mode

Modern mode have all advance mode features and it have some new features. It has a unique design. You can change advance mode design with add a single word "MODERN". In modern mode you can't change divider color we are working on it.

3.1 => Example
AdvanceSnackBar(
        message: "Notification Message",
        mode: "MODERN",).show(context);

3.2 => Example

Note: You can change the type like advance mode.

AdvanceSnackBar(
        message: "Notification Message",
        mode: "MODERN",type: "WARNING")).show(context);
3.3 => Example
AdvanceSnackBar(
        message: "Notification Message",
        mode: "MODERN",
        type: "ERROR",
        isIcon: true)
    .show(context);
3.4 => Example
AdvanceSnackBar(
        message: "Notification Message content",
        mode: "MODERN",
        type: "ERROR",
        tittle: "Tittle message",
        isIcon: true)
    .show(context);

The component takes 1 compulsory prop - message. Other props are optional. The table below explains more.
Prop Mode Type Description/Purpose Default Required
tittle Advance,Modern String It is for notification tittle. "" NO
message All String It is for notification Message. "" YES
duration Advance,Modern Duration Duration of notification hide. "Duration(seconds: 4)" NO
isIcon Advance,Modern String Icon show in advance and modern. false NO
isFixed Basic bool It will work in basic mode only. "" true
isClosable Advance,Modern bool Hide/show close icon. true NO
isDivider Advance,Modern bool It will show when you add tittle. true NO
isChildLeft Advance,Modern bool It swap close icon and child widget left to right. true NO
type Advance,Modern String These are default design of snackbar PRIMARY, SECONDARY, LIGHT, DARK, SUCCESS, INFO, WARNING, ERROR. NO
mode String BASIC, ADVANCE, MODERN. BASIC NO
iconPosition Advance,Modern String You can change icon position of types icons. "LEFT" NO
closeIconPosition Advance,Modern String You can also change closeIconPosition. "RIGHT" NO
onClick Advance,Modern function Override the closeButton onclick function. "" NO
icon Advance,Modern widget You can change icon. "" NO
child Advance,Modern widget You can add extra widget. "" NO
borderRadius Advance,Modern double Can change borderRadius. 10 NO
mHeight Advance,Modern double Can change snackbar height. 40 NO

Bugs or Requests

If you encounter any problems feel free to open an issue. If you feel the library is missing a feature, please raise a ticket on GitHub and I'll look into it. Pull request are also welcome.

카테고리

소스 저장소

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

아직 데이터가 없습니다.