Solian/lib/widgets/navigation/app_navigation.dart
LittleSheep bb67edd227 Better post display
🐛 Fix realm with post
2024-06-23 01:52:05 +08:00

40 lines
879 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.forum),
label: 'chat'.tr,
page: 'chat',
),
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,
});
}