Top Snackbar Flutter는 화면 상단에 깔끔하고 사용자 친화적인 피드백 메시지를 제공하도록 설계된 알림 패키지입니다. 작업 흐름을 방해하지 않으면서도 액션, 상태 또는 이벤트에 대해 사용자를 안내하는 간단하고 사용자 정의 가능한 방법을 제공합니다. 통합의 용이성을 고려하여 Android, iOS, Web, macOS, Windows, Linux 등 다양한 플랫폼을 지원합니다. 부드러운 애니메이션과 장치 간 일관된 스타일을 통해 UX를 향상시킵니다. 즉각적이고 비방해적인 피드백이 필요한 앱에 이상적입니다.
If you need to show the user some information in a nice way, you can use this package. The API is as simple
as API for regular Material method showDialog. If you need to use your own widget to display, you
can pass it into showTopSnackBar function.
Getting Started
In order to show a CustomSnackBar you need to call a showTopSnackBar function. You can pass there any widget you want
but we have a CustomSnackBar for example.
showTopSnackBar(
Overlay.of(context),
CustomSnackBar.success(
message:
"Good job, your release is successful. Have a nice day",
),
);
showTopSnackBar(
Overlay.of(context),
CustomSnackBar.info(
message:
"There is some information. You need to do something with that",
),
);
showTopSnackBar(
Overlay.of(context),
CustomSnackBar.error(
message:
"Something went wrong. Please check your credentials and try again",
),
);