2024-05-18 10:17:16 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:get/utils.dart';
|
|
|
|
|
|
|
|
abstract class AppNavigation {
|
|
|
|
static List<AppNavigationDestination> destinations = [
|
|
|
|
AppNavigationDestination(
|
2024-09-02 15:11:40 +00:00
|
|
|
icon: Icons.dashboard,
|
|
|
|
label: 'dashboard'.tr,
|
|
|
|
page: 'dashboard',
|
|
|
|
),
|
|
|
|
AppNavigationDestination(
|
|
|
|
icon: Icons.newspaper,
|
|
|
|
label: 'feed'.tr,
|
|
|
|
page: 'feed',
|
2024-05-18 10:17:16 +00:00
|
|
|
),
|
2024-05-28 14:13:23 +00:00
|
|
|
AppNavigationDestination(
|
2024-08-09 14:59:24 +00:00
|
|
|
icon: Icons.workspaces,
|
2024-05-28 14:13:23 +00:00
|
|
|
label: 'realms'.tr,
|
|
|
|
page: 'realms',
|
|
|
|
),
|
2024-07-13 10:54:08 +00:00
|
|
|
AppNavigationDestination(
|
2024-08-09 14:59:24 +00:00
|
|
|
icon: Icons.forum,
|
2024-09-13 15:19:33 +00:00
|
|
|
label: 'chat'.tr,
|
2024-07-13 10:54:08 +00:00
|
|
|
page: 'chat',
|
|
|
|
),
|
2024-05-18 10:17:16 +00:00
|
|
|
];
|
2024-06-27 07:50:13 +00:00
|
|
|
|
|
|
|
static List<String> get destinationPages =>
|
|
|
|
AppNavigation.destinations.map((x) => x.page).toList();
|
2024-05-18 10:17:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class AppNavigationDestination {
|
2024-08-09 14:59:24 +00:00
|
|
|
final IconData icon;
|
2024-05-18 10:17:16 +00:00
|
|
|
final String label;
|
|
|
|
final String page;
|
|
|
|
|
2024-05-28 14:13:23 +00:00
|
|
|
AppNavigationDestination({
|
|
|
|
required this.icon,
|
|
|
|
required this.label,
|
|
|
|
required this.page,
|
|
|
|
});
|
2024-05-18 10:17:16 +00:00
|
|
|
}
|