1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-01-29 21:23:00 +00:00

36 lines
636 B
Dart
Raw Normal View History

2020-05-10 18:29:43 +02:00
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;
2020-05-10 18:29:43 +02:00
final bool hideNavBar;
final bool canShowAsDialog;
2020-05-11 13:38:51 +02:00
/// Unique identification of this child
final key = UniqueKey();
PageInfo({
2020-05-10 18:29:43 +02:00
this.type = PageType.OTHER_PAGE,
required this.child,
2020-05-10 18:29:43 +02:00
this.id,
this.hideNavBar = false,
this.canShowAsDialog = false,
2022-03-11 17:02:06 +01:00
});
2020-05-10 18:29:43 +02:00
}