Make range selection hint replaceable

This commit is contained in:
Ming Ming 2022-07-25 13:04:46 +08:00
parent 8eccce506c
commit 0c06fe0607

View file

@ -234,12 +234,15 @@ mixin SelectableItemStreamListMixin<T extends StatefulWidget> on State<T> {
// show notification on first entry to selection mode each session
if (!wasSelectionMode) {
if (!SessionStorage().hasShowRangeSelectNotification) {
SnackBarManager().showSnackBar(SnackBar(
content: Text(platform_k.isWeb
? L10n.global().webSelectRangeNotification
: L10n.global().mobileSelectRangeNotification),
duration: k.snackBarDurationNormal,
));
SnackBarManager().showSnackBar(
SnackBar(
content: Text(platform_k.isWeb
? L10n.global().webSelectRangeNotification
: L10n.global().mobileSelectRangeNotification),
duration: k.snackBarDurationNormal,
),
canBeReplaced: true,
);
SessionStorage().hasShowRangeSelectNotification = true;
}
}