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:
31
lib/ui/widgets/tablet_mode/conversations_area_widget.dart
Normal file
31
lib/ui/widgets/tablet_mode/conversations_area_widget.dart
Normal 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),
|
||||
),
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user