optimization: desktop UI (#747)

This commit is contained in:
lollipopkit🏳️‍⚧️
2025-05-13 04:57:37 +08:00
committed by GitHub
parent e520929411
commit 8627ff823f
52 changed files with 2459 additions and 1990 deletions

View File

@@ -20,6 +20,11 @@ class BackupPage extends StatefulWidget {
@override
State<BackupPage> createState() => _BackupPageState();
static const route = AppRouteNoArg(
page: BackupPage.new,
path: '/backup',
);
}
final class _BackupPageState extends State<BackupPage>
@@ -246,7 +251,7 @@ final class _BackupPageState extends State<BackupPage>
onTap: () async {
final data = await context.showImportDialog(
title: l10n.snippet,
modelDef: Snippet.example.toJson(),
modelDef: SnippetX.example.toJson(),
);
if (data == null) return;
final str = String.fromCharCodes(data);