1
0
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:
2020-05-09 08:17:52 +02:00
parent 68b4c79960
commit 109ba3f04b
4 changed files with 91 additions and 6 deletions

View File

@ -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
}
}