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

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