BotToast는 간편한 통합과 사용자 정의를 위해 설계된 간단하고 기능이 풍부한 Flutter 토스트 라이브러리입니다. Android, iOS, Web, macOS, Windows, Linux 등 여러 플랫폼에서 토스트 메시지를 표시하기 위한 깔끔하고 직관적인 API를 제공합니다. 다양한 토스트 유형, 애니메이션 및 위치 옵션을 지원하여 복잡함 없이 앱 내 사용자 피드백을 강화합니다. 가볍고 개발자 친화적인 라이브러리로, 빠른 알림 및 상태 업데이트에 이상적입니다.
//custom apivar cancel = BotToast.showCustomNotification(...)
var cancel = BotToast.showCustomText(...)
var cancel = BotToast.showCustomLoading(...)
var cancel = BotToast.showAnimationWidget(...)
...
cancel(); //close
5. Modify Global Configuration
/// For example: Globally change the animation duration for standard notifications to 1 second.BotToast.defaultOption.notification.animationDuration = constDuration(seconds: 1);
/// For more default options, refer to the following configurations:/// [BotToast.defaultOption.simpleNotification] corresponds to the default values of [showSimpleNotification]./// [BotToast.defaultOption.notification] corresponds to the default values of [showNotification]./// [BotToast.defaultOption.customNotification] corresponds to the default values of [showCustomNotification]./// [BotToast.defaultOption.text] corresponds to the default values of [showText]./// [BotToast.defaultOption.customText] corresponds to the default values of [showCustomText]./// [BotToast.defaultOption.loading] corresponds to the default values of [showLoading]./// [BotToast.defaultOption.customLoading] corresponds to the default values of [showCustomLoading]./// [BotToast.defaultOption.attached] corresponds to the default values of [showAttachedWidget]./// [BotToast.defaultOption.animation] corresponds to the default values of [showAnimationWidget]./// [BotToast.defaultOption.enhanced] corresponds to the default values of [showEnhancedWidget].
3.0 version
Major changes:
Reimplemented the underlying initialization logic, the code is simpler and more general, and no longer depends on Navigator