feat: allow to create widgets
- supported widget types: therpad, jitsi, video, custom - update Matrix SDK Signed-off-by: TheOneWithTheBraid <the-one@with-the-braid.cf>
This commit is contained in:
parent
f335cdbaf6
commit
0ddaff75db
9 changed files with 241 additions and 18 deletions
|
|
@ -4,10 +4,13 @@ import 'package:flutter_gen/gen_l10n/l10n.dart';
|
|||
import 'package:matrix/matrix.dart';
|
||||
import 'package:url_launcher/link.dart';
|
||||
|
||||
import 'edit_widgets_dialog.dart';
|
||||
|
||||
class WidgetsBottomSheet extends StatelessWidget {
|
||||
final Room room;
|
||||
|
||||
const WidgetsBottomSheet({Key? key, required this.room}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ListView.builder(
|
||||
|
|
@ -15,8 +18,15 @@ class WidgetsBottomSheet extends StatelessWidget {
|
|||
itemBuilder: (context, index) {
|
||||
if (index == room.widgets.length) {
|
||||
return ListTile(
|
||||
title: Text(L10n.of(context)!.integrationsNotImplemented),
|
||||
leading: const Icon(Icons.info),
|
||||
leading: const Icon(Icons.edit),
|
||||
title: Text(L10n.of(context)!.editWidgets),
|
||||
onTap: () {
|
||||
Navigator.of(context).pop();
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (context) => EditWidgetsDialog(room: room),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
final widget = room.widgets[index];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue