refactor: Improved share / forward dialog
This commit is contained in:
parent
69d4c50b13
commit
88e63d127a
9 changed files with 488 additions and 361 deletions
|
|
@ -176,18 +176,6 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|||
Client? getClientByName(String name) =>
|
||||
widget.clients.firstWhereOrNull((c) => c.clientName == name);
|
||||
|
||||
Map<String, dynamic>? get shareContent => _shareContent;
|
||||
|
||||
set shareContent(Map<String, dynamic>? content) {
|
||||
_shareContent = content;
|
||||
onShareContentChanged.add(_shareContent);
|
||||
}
|
||||
|
||||
Map<String, dynamic>? _shareContent;
|
||||
|
||||
final StreamController<Map<String, dynamic>?> onShareContentChanged =
|
||||
StreamController.broadcast();
|
||||
|
||||
final onRoomKeyRequestSub = <String, StreamSubscription>{};
|
||||
final onKeyVerificationRequestSub = <String, StreamSubscription>{};
|
||||
final onNotification = <String, StreamSubscription>{};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue