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:
|
analyzer:
|
||||||
exclude:
|
exclude:
|
||||||
- "**/*.g.dart"
|
- "**/*.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) {
|
if (isDesktop) {
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
await windowManager.ensureInitialized();
|
await windowManager.ensureInitialized();
|
||||||
await windowManager.setTitle("E-Hentai Downloader Dashboard");
|
|
||||||
}
|
}
|
||||||
runApp(const MainApp());
|
runApp(const MainApp());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||||
import 'package:go_router/go_router.dart';
|
import 'package:go_router/go_router.dart';
|
||||||
import 'globals.dart';
|
import 'globals.dart';
|
||||||
|
|
||||||
@@ -71,9 +72,9 @@ class _SetServerPageState extends State<SetServerPage> {
|
|||||||
Container(
|
Container(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 8),
|
padding: const EdgeInsets.symmetric(vertical: 8),
|
||||||
child: TextFormField(
|
child: TextFormField(
|
||||||
decoration: const InputDecoration(
|
decoration: InputDecoration(
|
||||||
border: OutlineInputBorder(),
|
border: const OutlineInputBorder(),
|
||||||
labelText: 'EH Downloader Server URL',
|
labelText: AppLocalizations.of(context)!.serverHost,
|
||||||
),
|
),
|
||||||
initialValue: _serverUrl,
|
initialValue: _serverUrl,
|
||||||
onChanged: _serverUrlChanged,
|
onChanged: _serverUrlChanged,
|
||||||
@@ -81,9 +82,9 @@ class _SetServerPageState extends State<SetServerPage> {
|
|||||||
Container(
|
Container(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 8),
|
padding: const EdgeInsets.symmetric(vertical: 8),
|
||||||
child: TextFormField(
|
child: TextFormField(
|
||||||
decoration: const InputDecoration(
|
decoration: InputDecoration(
|
||||||
border: OutlineInputBorder(),
|
border: const OutlineInputBorder(),
|
||||||
labelText: 'API Path',
|
labelText: AppLocalizations.of(context)!.apiPath,
|
||||||
),
|
),
|
||||||
initialValue: _apiPath,
|
initialValue: _apiPath,
|
||||||
onChanged: _apiPathChanged,
|
onChanged: _apiPathChanged,
|
||||||
|
|||||||
Reference in New Issue
Block a user