포그라운드 Push 표시 · 퀘스트 알림 다국어 제목 · 약관 미동의 계정의 행성 가입·성운 생성 차단

This commit is contained in:
Sn-Kinos
2026-10-06 01:18:50 +09:00
parent dce2f64362
commit cf3dd06774
6 changed files with 66 additions and 5 deletions
+8 -1
View File
@@ -194,7 +194,14 @@ class _FancakeAppState extends State<FancakeApp> with WidgetsBindingObserver {
..showSnackBar(
SnackBar(
behavior: SnackBarBehavior.floating,
content: Text(notice.title.isEmpty ? notice.body : notice.title),
// action 이 있으면 기본으로 남아 있으므로(Flutter 3.29+) 시간이 지나면 닫히게 한다.
persist: false,
duration: const Duration(seconds: 4),
content: Text(
[notice.title, notice.body].where((s) => s.isNotEmpty).join('\n'),
maxLines: 3,
overflow: TextOverflow.ellipsis,
),
action: SnackBarAction(
label: (_messengerKey.currentContext ?? context).l10n.commonView,
onPressed: () => _openFromPush(notice),