mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-06-06 05:49:03 +08:00
Update i18n text, disable warning
This commit is contained in:
@@ -2,3 +2,5 @@ include: package:flutter_lints/flutter.yaml
|
||||
analyzer:
|
||||
exclude:
|
||||
- "**/*.g.dart"
|
||||
errors:
|
||||
unnecessary_non_null_assertion: ignore
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
{
|
||||
"title": "E-Hentai Downloader Dashboard"
|
||||
"title": "E-Hentai Downloader Dashboard",
|
||||
"serverHost": "EH Downloader Server Host",
|
||||
"apiPath": "API Path"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
{
|
||||
"title": "E-Hentai 下载器面板"
|
||||
}
|
||||
"title": "E-Hentai 下载器面板",
|
||||
"serverHost": "EH Downloader 服务器主机",
|
||||
"apiPath": "API 路径"
|
||||
}
|
||||
|
||||
@@ -27,7 +27,6 @@ void main() async {
|
||||
if (isDesktop) {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
await windowManager.ensureInitialized();
|
||||
await windowManager.setTitle("E-Hentai Downloader Dashboard");
|
||||
}
|
||||
runApp(const MainApp());
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'globals.dart';
|
||||
|
||||
@@ -71,9 +72,9 @@ class _SetServerPageState extends State<SetServerPage> {
|
||||
Container(
|
||||
padding: const EdgeInsets.symmetric(vertical: 8),
|
||||
child: TextFormField(
|
||||
decoration: const InputDecoration(
|
||||
border: OutlineInputBorder(),
|
||||
labelText: 'EH Downloader Server URL',
|
||||
decoration: InputDecoration(
|
||||
border: const OutlineInputBorder(),
|
||||
labelText: AppLocalizations.of(context)!.serverHost,
|
||||
),
|
||||
initialValue: _serverUrl,
|
||||
onChanged: _serverUrlChanged,
|
||||
@@ -81,9 +82,9 @@ class _SetServerPageState extends State<SetServerPage> {
|
||||
Container(
|
||||
padding: const EdgeInsets.symmetric(vertical: 8),
|
||||
child: TextFormField(
|
||||
decoration: const InputDecoration(
|
||||
border: OutlineInputBorder(),
|
||||
labelText: 'API Path',
|
||||
decoration: InputDecoration(
|
||||
border: const OutlineInputBorder(),
|
||||
labelText: AppLocalizations.of(context)!.apiPath,
|
||||
),
|
||||
initialValue: _apiPath,
|
||||
onChanged: _apiPathChanged,
|
||||
|
||||
Reference in New Issue
Block a user