mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-13 11:53:41 +00:00
feat: extension support (#78)
This commit is contained in:
118 files changed
+6971
-780
No files matched your search
@@ -15,6 +15,14 @@ void showErrorMessage(msg) {
|
||||
Get.snackbar(title, msg.toString());
|
||||
}
|
||||
|
||||
var _showMessageFlag = true;
|
||||
|
||||
void showMessage(title, msg) {
|
||||
Get.snackbar(title, msg);
|
||||
if (_showMessageFlag) {
|
||||
_showMessageFlag = false;
|
||||
Get.snackbar(title, msg);
|
||||
Future.delayed(const Duration(seconds: 3), () {
|
||||
_showMessageFlag = true;
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user