From 0a8c9fb20880c59f5ad55ecfc7490d42e1f9c510 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 10 Nov 2024 19:47:48 +0800 Subject: [PATCH] :sparkles: Heavy development hint --- assets/translations/en-US.json | 4 ++++ assets/translations/zh-CN.json | 4 ++++ lib/screens/home.dart | 21 ++++++++++++++++++++- 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/assets/translations/en-US.json b/assets/translations/en-US.json index 022f6be..1ba2f40 100644 --- a/assets/translations/en-US.json +++ b/assets/translations/en-US.json @@ -1,4 +1,6 @@ { + "nextVersionAlert": "Heavy Development Alert", + "nextVersionNotice": "You are using Solian 2.0 Preview, which is the first version of Solian 2.0. The current stable branch (sn.solsynth.dev) is 1.4. This version is still under heavy development, some features may not be stable, and not all features are supported. You can roll back to 1.4.X version via TestFlight, or continue to experience the new version (sn-next.solsynth.dev).", "screen": "Screen", "screenHome": "Home", "screenExplore": "Explore", @@ -32,6 +34,8 @@ "loading": "Loading...", "delete": "Delete", "report": "Report", + "repost": "Repost", + "reply": "Reply", "fieldUsername": "Username", "fieldNickname": "Nickname", "fieldEmail": "Email address", diff --git a/assets/translations/zh-CN.json b/assets/translations/zh-CN.json index 11d8944..1cdd65d 100644 --- a/assets/translations/zh-CN.json +++ b/assets/translations/zh-CN.json @@ -1,4 +1,6 @@ { + "nextVersionAlert": "高强度开发提示", + "nextVersionNotice": "您正在使用的是 Solian 2.0 的抢先体验版本,目前稳定分支(sn.solsynth.dev)版本为 1.4。该版本还在剧烈的开发中,部分功能可能不稳定,也并非所有功能都支持了。您可以通过 TestFlight 回滚到 1.4.X 或者继续体验新版本(sn-next.solsynth.dev)。", "screen": "页面", "screenHome": "首页", "screenExplore": "探索", @@ -32,6 +34,8 @@ "preview": "预览", "delete": "删除", "report": "检举", + "repost": "转帖", + "reply": "回贴", "fieldUsername": "用户名", "fieldNickname": "显示名", "fieldEmail": "电子邮箱地址", diff --git a/lib/screens/home.dart b/lib/screens/home.dart index 8fee8df..88df570 100644 --- a/lib/screens/home.dart +++ b/lib/screens/home.dart @@ -1,6 +1,8 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:flutter/material.dart'; +import 'package:material_symbols_icons/symbols.dart'; +import 'package:styled_widget/styled_widget.dart'; import 'package:surface/widgets/navigation/app_scaffold.dart'; +import 'package:flutter/material.dart'; class HomeScreen extends StatefulWidget { const HomeScreen({super.key}); @@ -16,6 +18,23 @@ class _HomeScreenState extends State { appBar: AppBar( title: Text("screenHome").tr(), ), + body: Column( + children: [ + MaterialBanner( + leading: const Icon(Symbols.construction), + content: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text('nextVersionAlert').tr().bold(), + Text('nextVersionNotice').tr(), + ], + ).padding(vertical: 16), + actions: [ + const SizedBox(), + ], + ), + ], + ), ); } }