포그라운드 Push 표시 · 퀘스트 알림 다국어 제목 · 약관 미동의 계정의 행성 가입·성운 생성 차단
This commit is contained in:
+8
-1
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user