mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 08:15:16 +00:00
Ready to build conversation windows
This commit is contained in:
@ -15,7 +15,9 @@ class TabletRoute extends StatefulWidget implements MainRoute {
|
||||
_TabletRouteState createState() => _TabletRouteState();
|
||||
}
|
||||
|
||||
class _TabletRouteState extends State<TabletRoute> {
|
||||
class _TabletRouteState extends State<MainRoute> implements MainController {
|
||||
final _conversationsKey = GlobalKey<ConversationsAreaWidgetState>();
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
@ -29,7 +31,11 @@ class _TabletRouteState extends State<TabletRoute> {
|
||||
Widget _buildBody() => Stack(
|
||||
children: [
|
||||
Row(children: <Widget>[_buildLeftPane(), _buildRightPane()]),
|
||||
Positioned(right: 0, bottom: 0, child: ConversationsAreaWidget())
|
||||
Positioned(
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
child: ConversationsAreaWidget(key: _conversationsKey),
|
||||
)
|
||||
],
|
||||
);
|
||||
|
||||
@ -54,4 +60,44 @@ class _TabletRouteState extends State<TabletRoute> {
|
||||
);
|
||||
|
||||
Widget _buildRightPane() => Container();
|
||||
|
||||
@override
|
||||
void openConversation(int convID, {fullScreen = false}) {
|
||||
_conversationsKey.currentState.openConversations(convID);
|
||||
}
|
||||
|
||||
@override
|
||||
void openGroup(int groupID) {
|
||||
// TODO: implement openGroup
|
||||
}
|
||||
|
||||
@override
|
||||
void openUserAccessDeniedPage(int userID) {
|
||||
// TODO: implement openUserAccessDeniedPage
|
||||
}
|
||||
|
||||
@override
|
||||
void openUserFriendsList(int userID) {
|
||||
// TODO: implement openUserFriendsList
|
||||
}
|
||||
|
||||
@override
|
||||
void openUserPage(int userID) {
|
||||
// TODO: implement openUserPage
|
||||
}
|
||||
|
||||
@override
|
||||
void popPage() {
|
||||
// TODO: implement popPage
|
||||
}
|
||||
|
||||
@override
|
||||
void push(Widget w, {bool hideNavBar}) {
|
||||
// TODO: implement push
|
||||
}
|
||||
|
||||
@override
|
||||
void startCall(int convID) {
|
||||
// TODO: implement startCall
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user