1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 08:15:16 +00:00

Add button to open new conversations

This commit is contained in:
2020-05-09 06:49:05 +02:00
parent 13cd3186f5
commit b0fd0d7d51
2 changed files with 37 additions and 2 deletions

View File

@ -0,0 +1,31 @@
import 'package:flutter/material.dart';
/// Conversations area widget
///
/// This widget allow floating conversations in tablet mode
///
/// @author Pierre
class ConversationsAreaWidget extends StatefulWidget {
@override
_ConversationsAreaWidgetState createState() =>
_ConversationsAreaWidgetState();
}
class _ConversationsAreaWidgetState extends State<ConversationsAreaWidget> {
@override
Widget build(BuildContext context) {
return Row(
children: <Widget>[_buildOpenButton()],
);
}
/// Add a button to open new conversations
Widget _buildOpenButton() => Padding(
padding: const EdgeInsets.all(15.0),
child: FloatingActionButton(
onPressed: () {},
child: Icon(Icons.message),
),
);
}