1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-10-23 15:03:22 +00:00
comunicmobile/lib/ui/routes/main_route/page_info.dart
2022-03-11 17:02:06 +01:00

36 lines
636 B
Dart

import 'package:flutter/cupertino.dart';
/// Single page information
///
/// @author Pierre HUBERT
enum PageType {
USER_PAGE,
GROUP_PAGE,
CONVERSATION_PAGE,
NOTIFICATIONS_PAGE,
CONVERSATIONS_LIST_PAGE,
FRIENDS_LIST_PAGE,
LATEST_POSTS_PAGE,
OTHER_PAGE
}
class PageInfo {
final PageType type;
final Widget child;
final int? id;
final bool hideNavBar;
final bool canShowAsDialog;
/// Unique identification of this child
final key = UniqueKey();
PageInfo({
this.type = PageType.OTHER_PAGE,
required this.child,
this.id,
this.hideNavBar = false,
this.canShowAsDialog = false,
});
}