Solian/lib/widgets/navigation/app_navigation.dart
2024-05-28 22:13:23 +08:00

40 lines
888 B
Dart

import 'package:flutter/material.dart';
import 'package:get/utils.dart';
abstract class AppNavigation {
static List<AppNavigationDestination> destinations = [
AppNavigationDestination(
icon: const Icon(Icons.public),
label: 'social'.tr,
page: 'social',
),
AppNavigationDestination(
icon: const Icon(Icons.contacts),
label: 'contact'.tr,
page: 'contact',
),
AppNavigationDestination(
icon: const Icon(Icons.workspaces),
label: 'realms'.tr,
page: 'realms',
),
AppNavigationDestination(
icon: const Icon(Icons.account_circle),
label: 'account'.tr,
page: 'account',
),
];
}
class AppNavigationDestination {
final Widget icon;
final String label;
final String page;
AppNavigationDestination({
required this.icon,
required this.label,
required this.page,
});
}