Update models
This commit is contained in:
parent
a08715c298
commit
5e80f06e9a
|
|
@ -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<DocumentEntity>(),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -83,6 +83,9 @@ abstract class GroupEntity extends Object
|
|||
|
||||
SettingsEntity get settings;
|
||||
|
||||
@nullable
|
||||
BuiltList<DocumentEntity> get documents;
|
||||
|
||||
@override
|
||||
String get listDisplayName {
|
||||
return name;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,21 @@ class GroupView extends StatefulWidget {
|
|||
_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
|
||||
Widget build(BuildContext context) {
|
||||
final localization = AppLocalization.of(context);
|
||||
|
|
|
|||
Loading…
Reference in New Issue