feat: split settings into category pages and add an about page

- the settings screen is now an index: 通用 → 聊天, 外观 → 主题 / 宠物,
  帮助与关于 → 关于; each row opens its own page, the controls moved
  there unchanged
- 关于 shows the app version, the server's OpenCode (/api/info) and
  OpenChamber (/api/version) versions with a refresh, and the open-source
  licenses, listed per package with their full text on tap
- the app version is read from the platform at startup
  (package_info_plus), so pubspec.yaml is the only place it is written;
  the pairing/relay handshake now sends it too instead of a constant that
  had drifted
This commit is contained in:
blumia committed 2026-11-25 12:39:48 +08:00
1 parent 00564fe94b
commit 2185054aab
11 files changed
+736 -192

No files matched your search

+6 -1
View File
@@ -5,8 +5,13 @@ import 'pets/pet_library.dart';
import 'screens/home_screen.dart';
import 'screens/servers_screen.dart';
import 'state.dart';
import 'version.dart';
void main() {
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
// The version goes into every connection's handshake; read it once here so
// nothing waits for it later.
await loadAppVersion();
runApp(const OpenChamberApp());
}