Update i18n text, disable warning

This commit is contained in:
2023-08-29 14:30:01 +08:00
parent f10e04cb8d
commit 054575097b
5 changed files with 16 additions and 10 deletions

View File

@@ -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,