2023-02-23 14:49:14 +00:00
|
|
|
import 'package:auto_route/auto_route.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:selfprivacy/ui/components/brand_icons/brand_icons.dart';
|
|
|
|
import 'package:selfprivacy/ui/router/router.dart';
|
|
|
|
|
|
|
|
class RouteDestination {
|
|
|
|
const RouteDestination({
|
|
|
|
required this.route,
|
|
|
|
required this.icon,
|
|
|
|
required this.label,
|
|
|
|
required this.title,
|
|
|
|
});
|
|
|
|
|
|
|
|
final PageRouteInfo route;
|
|
|
|
final IconData icon;
|
|
|
|
final String label;
|
|
|
|
final String title;
|
|
|
|
}
|
|
|
|
|
2024-05-15 10:45:24 +00:00
|
|
|
const List<RouteDestination> rootDestinations = [
|
2023-02-23 14:49:14 +00:00
|
|
|
RouteDestination(
|
2024-05-15 10:45:24 +00:00
|
|
|
route: ProvidersRoute(),
|
2023-02-23 14:49:14 +00:00
|
|
|
icon: BrandIcons.server,
|
2024-05-15 10:45:24 +00:00
|
|
|
label: 'basis.providers',
|
|
|
|
title: 'basis.providers_title',
|
2023-02-23 14:49:14 +00:00
|
|
|
),
|
|
|
|
RouteDestination(
|
2024-05-15 10:45:24 +00:00
|
|
|
route: ServicesRoute(),
|
2023-02-23 14:49:14 +00:00
|
|
|
icon: BrandIcons.box,
|
2024-05-15 10:45:24 +00:00
|
|
|
label: 'basis.services',
|
|
|
|
title: 'basis.services',
|
2023-02-23 14:49:14 +00:00
|
|
|
),
|
|
|
|
RouteDestination(
|
2024-05-15 10:45:24 +00:00
|
|
|
route: UsersRoute(),
|
2023-02-23 14:49:14 +00:00
|
|
|
icon: BrandIcons.users,
|
2024-05-15 10:45:24 +00:00
|
|
|
label: 'basis.users',
|
|
|
|
title: 'basis.users',
|
2023-02-23 14:49:14 +00:00
|
|
|
),
|
|
|
|
RouteDestination(
|
2024-05-15 10:45:24 +00:00
|
|
|
route: MoreRoute(),
|
2023-02-23 14:49:14 +00:00
|
|
|
icon: Icons.menu_rounded,
|
2024-05-15 10:45:24 +00:00
|
|
|
label: 'basis.more',
|
|
|
|
title: 'basis.more',
|
2023-02-23 14:49:14 +00:00
|
|
|
),
|
|
|
|
];
|