From 0c06fe06074cd8693f2ce0d5306e626c2f9971ea Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Mon, 25 Jul 2022 13:04:46 +0800 Subject: [PATCH] Make range selection hint replaceable --- .../widget/selectable_item_stream_list_mixin.dart | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/app/lib/widget/selectable_item_stream_list_mixin.dart b/app/lib/widget/selectable_item_stream_list_mixin.dart index 5376244b..3ee01cf8 100644 --- a/app/lib/widget/selectable_item_stream_list_mixin.dart +++ b/app/lib/widget/selectable_item_stream_list_mixin.dart @@ -234,12 +234,15 @@ mixin SelectableItemStreamListMixin on State { // 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; } }