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

m_toast 표지
패키지 상세v0.2.4

m_toast

flutter용 커스텀 토스트, 한 줄의 코드로 쉽게 토스트를 생성할 수 있습니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
120
좋아요
40
Pub 점수
140

패키지 설치

flutter pub add m_toast

패키지 개요

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

m_toast는 최소한의 코드로 사용자 정의 가능한 토스트 메시지를 표시할 수 있는 가벼운 Flutter 패키지입니다. 단순함을 위해 설계되어 한 줄의 코드로 토스트를 표시할 수 있어 앱에서 빠른 피드백에 이상적입니다. Android, iOS, Web, macOS, Windows, Linux 등 여러 플랫폼을 지원합니다. 외관, 지속 시간, 위치 등을 쉽게 맞춤 설정하여 복잡성 없이 사용자 경험을 향상시킬 수 있습니다. 폼 제출이나 버튼 클릭과 같은 작업에 대한 즉각적인 알림 제공에 특히 유용합니다.

사용 사례

  • 사용자 작업 후 빠른 피드백 표시
  • 성공 또는 오류 메시지 표시
  • 세밀한 알림을 통한 사용자 경험 향상
  • 다양한 플랫폼 간 토스트 구현 단순화
  • 비침습적 알림 제공

주요 기능

  • 한 줄로 토스트 생성
  • 사용자 지정 가능한 외관 및 시간
  • 크로스 플랫폼 지원
  • 최소한의 보일러플레이트
  • 기존의 Flutter 프로젝트와의 간편한 통합
  • 사용자 정의 가능한 위치 및 애니메이션

적합한 대상

  • 초보자 플러터 개발자
  • 간단한 알림 시스템이 필요한 앱
  • 일관된 토스트 스타일이 필요한 프로젝트
  • 빠른 구현을 원하는 개발자
  • 사용자 인터페이스 중심 애플리케이션

고려 사항

  • 제한된 고급 사용자 정의 옵션
  • 복잡한 디자인을 위해 추가 스타일링이 필요할 수 있습니다
  • 지속적인 알림에 적합하지 않습니다
  • 외부 종속성 관리에 의존합니다
  • 단지 일시적이고 짧은 메시지에만 적합

원본 README

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

MToast

pub package pub package

Toast Library for Flutter

Supported Platforms

  • Android
  • IOS
  • Android
  • Linux
  • MacOS
  • Windows

Features

  • Add toast with custom icons, color and message
  • Add toast with custom images, color and message

Getting Started

In order to add m_toast to your project add this line to your pubspec.yaml file

# add this line to your dependencies
m_toast: ^0.2.4
import 'package:m_toast/m_toast.dart';
To call the toast

ShowMToast toast = ShowMToast(context);

toast.successToast(message: "
Hello
"
);
toast.errorToast(message: "
Hello
"
);

Preview Images

Toast with custom images

MToast have default style, and you also can custom style or other behavior.

name type need desc
message String required Toast message
textColor Color optional Color of text(toast message)
backgroundColor Color optional backgroundColor
alignment ToastPosition required
iconColor Color optional If Color is not given the icon will adapt the default color
icon IconData optional Icon in Toast
image AssetImage optional Image instead of Icon
duration int optional Duration should be given in milliseconds(for eg duration: 1500)
elevation double optional Elevation(0.0)
width double optional width

Contribution

Of course the project is open source, and you can contribute to it repository link

  • If you found a bug, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.

카테고리

소스 저장소

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

아직 데이터가 없습니다.