Перевёл настройки

This commit is contained in:
Andrew 2023-05-17 20:47:07 +07:00
parent 374196699a
commit 1eccf30c10

View file

@ -25,7 +25,7 @@ class _SettingsPanelState extends State<SettingsPanel> {
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const Text("Current user access token:")
const Text("Ключ доступа пользователя:")
.textStyle(Get.textTheme.bodySmall!),
[
Text(ApiController.to.token)
@ -37,8 +37,8 @@ class _SettingsPanelState extends State<SettingsPanel> {
ClipboardData(text: ApiController.to.token),
);
Get.snackbar(
"Copied",
"Token copied to clipboard",
"Скопировано",
"Ключ скопирован в буфер обмена",
snackPosition: SnackPosition.BOTTOM,
);
},
@ -50,21 +50,21 @@ class _SettingsPanelState extends State<SettingsPanel> {
TextFormField(
enabled: false,
decoration: const InputDecoration(
labelText: 'Endpoint',
hintText: 'Enter Tuuli Endpoint',
labelText: 'Адрес бэкенда',
hintText: 'Введите адрес бэкенда',
),
initialValue: ApiController.to.endPoint,
).expanded(),
ElevatedButton(
onPressed: () => Get.find<HomePageController>().logout(),
child: const Text("Logout to change"),
child: const Text("Выйти и изменить"),
)
].toRow(),
const SizedBox(height: 16),
[
ElevatedButton(
onPressed: () => Get.bottomSheet(const LogPrintPanel()),
child: const Text("Show app logs"),
child: const Text("Показать лог приложения"),
).expanded(),
].toRow(),
],