diff --git a/lib/data/models/group_model.dart b/lib/data/models/group_model.dart index dd0ab8948..3ab3d1a05 100644 --- a/lib/data/models/group_model.dart +++ b/lib/data/models/group_model.dart @@ -46,8 +46,7 @@ abstract class GroupItemResponse class GroupFields { static const String name = 'name'; - static const String custom1 = 'custom1'; - static const String custom2 = 'custom2'; + static const String documents = 'documents'; } abstract class GroupEntity extends Object @@ -65,6 +64,7 @@ abstract class GroupEntity extends Object createdAt: 0, assignedUserId: '', createdUserId: '', + documents: BuiltList(), ); } @@ -83,6 +83,9 @@ abstract class GroupEntity extends Object SettingsEntity get settings; + @nullable + BuiltList get documents; + @override String get listDisplayName { return name; diff --git a/lib/ui/group/view/group_view.dart b/lib/ui/group/view/group_view.dart index dca320a77..3b740a3d7 100644 --- a/lib/ui/group/view/group_view.dart +++ b/lib/ui/group/view/group_view.dart @@ -29,7 +29,21 @@ class GroupView extends StatefulWidget { _GroupViewState createState() => new _GroupViewState(); } -class _GroupViewState extends State { +class _GroupViewState extends State with SingleTickerProviderStateMixin { + TabController _controller; + + @override + void initState() { + super.initState(); + _controller = TabController(vsync: this, length: 2); + } + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + @override Widget build(BuildContext context) { final localization = AppLocalization.of(context);