mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 16:25:17 +00:00
Update conversation settings
This commit is contained in:
@ -0,0 +1,36 @@
|
||||
import 'package:comunic/models/conversation.dart';
|
||||
import 'package:comunic/ui/routes/main_route/main_route.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../conversation_screen.dart';
|
||||
|
||||
/// Group conversation section
|
||||
///
|
||||
/// @author Pierre Hubert
|
||||
|
||||
class GroupConversationSection extends StatelessWidget {
|
||||
final Conversation conv;
|
||||
|
||||
const GroupConversationSection({
|
||||
Key key,
|
||||
@required this.conv,
|
||||
}) : assert(conv != null),
|
||||
super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => Stack(
|
||||
children: [
|
||||
ConversationScreen(
|
||||
conversationID: conv.id,
|
||||
),
|
||||
Positioned(
|
||||
right: 1.0,
|
||||
child: IconButton(
|
||||
icon: Icon(Icons.settings),
|
||||
onPressed: () => MainController.of(context)
|
||||
.openConversationSettingsRoute(conv),
|
||||
),
|
||||
)
|
||||
],
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user