asuka
在單一提供者中顯示 Snackbar、對話框和模態面板。簡單且清晰。
- 星標
- 84
- 分支
- 31
- 最近推送(UTC)
- 2025年6月13日
- 專案狀態
- 已封存
原始 README
以下為英文專案原文快照,最新內容請造訪 GitHub。
Asuka package is being discontinued
We would like to inform the community that the Asuka package will be discontinued. Since Flutter has evolved and the built-in ScaffoldMessenger now provides excellent support for snackbars and related UI messages, maintaining a separate solution is no longer necessary. Asuka was created to fill a gap in the early days of Flutter, but today the official APIs are more than capable. The package will no longer receive updates or bug fixes. The repository will remain available in read-only mode for historical reference. Thank you to everyone who supported and used Asuka over the years!
ASUKA - Snackbars, Dialogs and more, the simple way.
A Simple and Clean approach to Snackbars, Dialogs, ModalSheets and more in a single provider.
Explore the docs »
·
Report Bug
·
Request Feature
Table of Contents
About The Project
Asuka is a Dart package that aims to simplify and keep a clean approach when implementing some visual elements from Flutter like Snackbars, Dialogs and ModalSheets. With few and intuitive lines of code you can have those in your project without the hassle of having to code them from scratch, while having the option of quickly removing them if need be.
This project is distributed under the MIT License. See LICENSE.txt for more information.
Sponsors
Getting Started
To get Asuka in your project follow either of the instructions below:
a) Add Asuka as a dependency in your Pubspec.yaml:
dependencies:
asuka: any
b) Use Dart Pub:
dart pub add asuka
How to Use
Add the following code where you call your Material App:
import 'package:asuka/asuka.dart';
MaterialApp(
builder: Asuka.builder,
navigatorObservers: [
Asuka.asukaHeroController //This line is needed for the Hero widget to work
],
);
Now you just have to call the named constructors for each widget that you want to use:
import 'package:asuka/asuka.dart';
Asuka.showSnackBar(SnackBar(
content: Text("Hello World"),
));
AsukaSnackbar.success("success").show();
For more examples, please refer to the Documentation
Features
- ✅ Snackbars
- ✅ Dialog
- ✅ BottomSheet
- ✅ ModalBottomSheet
- ✅ CupertinoModalPopup
- ✅ CupertinoDialog
- ✅ CupertinoDialogListener
- ✅ Overlay
Right now this package has concluded all his intended features. If you have any suggestions or find something to report, see below how to contribute to it.
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the appropriate tag. Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Remember to include a tag, and to follow Conventional Commits and Semantic Versioning when uploading your commit and/or creating the issue.
Contact
Flutterando Community
Acknowledgements
Thank you to all the people who contributed to this project, without you, this project would not be here today.
Maintaned by
Built and maintained by Flutterando.
使用的依賴
依賴清單 3 項
- flutter
{"sdk":"flutter"} - flutter_test開發依賴
{"sdk":"flutter"} - flutterando_analysis開發依賴
^0.0.2
如何選擇適合專案的儲存庫?
先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
- 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
- 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
- 使用前在 GitHub 確認 README、授權條款與 Issues。
來源與維護
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗