Update models

This commit is contained in:
Hillel Coren 2021-01-19 21:32:40 +02:00
parent a08715c298
commit 5e80f06e9a
2 changed files with 20 additions and 3 deletions

View File

@ -46,8 +46,7 @@ abstract class GroupItemResponse
class GroupFields { class GroupFields {
static const String name = 'name'; static const String name = 'name';
static const String custom1 = 'custom1'; static const String documents = 'documents';
static const String custom2 = 'custom2';
} }
abstract class GroupEntity extends Object abstract class GroupEntity extends Object
@ -65,6 +64,7 @@ abstract class GroupEntity extends Object
createdAt: 0, createdAt: 0,
assignedUserId: '', assignedUserId: '',
createdUserId: '', createdUserId: '',
documents: BuiltList<DocumentEntity>(),
); );
} }
@ -83,6 +83,9 @@ abstract class GroupEntity extends Object
SettingsEntity get settings; SettingsEntity get settings;
@nullable
BuiltList<DocumentEntity> get documents;
@override @override
String get listDisplayName { String get listDisplayName {
return name; return name;

View File

@ -29,7 +29,21 @@ class GroupView extends StatefulWidget {
_GroupViewState createState() => new _GroupViewState(); _GroupViewState createState() => new _GroupViewState();
} }
class _GroupViewState extends State<GroupView> { class _GroupViewState extends State<GroupView> with SingleTickerProviderStateMixin {
TabController _controller;
@override
void initState() {
super.initState();
_controller = TabController(vsync: this, length: 2);
}
@override
void dispose() {
_controller.dispose();
super.dispose();
}
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final localization = AppLocalization.of(context); final localization = AppLocalization.of(context);