Перевёл домашнюю страницу
This commit is contained in:
parent
31190a78a7
commit
35712844c8
1 changed files with 10 additions and 10 deletions
|
|
@ -25,11 +25,11 @@ class HomePageController extends GetxController {
|
|||
String get currentPageName => pageNames[currentPage]!;
|
||||
|
||||
final pageNames = {
|
||||
PageType.none: "Home",
|
||||
PageType.tables: "Tables",
|
||||
PageType.users: "Users",
|
||||
PageType.assets: "Assets",
|
||||
PageType.settings: "Settings",
|
||||
PageType.none: "Домашняя",
|
||||
PageType.tables: "Таблицы",
|
||||
PageType.users: "Пользователи",
|
||||
PageType.assets: "Ресурсы",
|
||||
PageType.settings: "Настройки",
|
||||
};
|
||||
|
||||
@override
|
||||
|
|
@ -91,7 +91,7 @@ class HomePage extends GetView<HomePageController> {
|
|||
Obx(
|
||||
() => ListTile(
|
||||
leading: const Icon(Icons.table_chart),
|
||||
title: const Text("Tables"),
|
||||
title: const Text("Таблицы"),
|
||||
onTap: () {
|
||||
controller.currentPage = PageType.tables;
|
||||
},
|
||||
|
|
@ -101,7 +101,7 @@ class HomePage extends GetView<HomePageController> {
|
|||
Obx(
|
||||
() => ListTile(
|
||||
leading: const Icon(Icons.person),
|
||||
title: const Text("Users"),
|
||||
title: const Text("Пользователи"),
|
||||
onTap: () {
|
||||
controller.currentPage = PageType.users;
|
||||
},
|
||||
|
|
@ -111,7 +111,7 @@ class HomePage extends GetView<HomePageController> {
|
|||
Obx(
|
||||
() => ListTile(
|
||||
leading: const Icon(Icons.dataset_outlined),
|
||||
title: const Text("Assets"),
|
||||
title: const Text("Ресурсы"),
|
||||
onTap: () {
|
||||
controller.currentPage = PageType.assets;
|
||||
},
|
||||
|
|
@ -121,7 +121,7 @@ class HomePage extends GetView<HomePageController> {
|
|||
Obx(
|
||||
() => ListTile(
|
||||
leading: const Icon(Icons.settings),
|
||||
title: const Text("Settings"),
|
||||
title: const Text("Настройки"),
|
||||
onTap: () {
|
||||
controller.currentPage = PageType.settings;
|
||||
},
|
||||
|
|
@ -131,7 +131,7 @@ class HomePage extends GetView<HomePageController> {
|
|||
const Divider(),
|
||||
ListTile(
|
||||
leading: const Icon(Icons.logout),
|
||||
title: const Text("Logout"),
|
||||
title: const Text("Выйти"),
|
||||
onTap: () => controller.logout(),
|
||||
),
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue