Settings
This commit is contained in:
parent
eca14593f8
commit
99c554ad2f
|
|
@ -181,6 +181,7 @@ abstract class ClientEntity extends Object
|
|||
@BuiltValueField(wireName: 'size_id')
|
||||
String get sizeId;
|
||||
|
||||
@nullable
|
||||
@BuiltValueField(wireName: 'payment_terms')
|
||||
int get paymentTerms;
|
||||
|
||||
|
|
|
|||
|
|
@ -146,9 +146,6 @@ class _$ClientEntitySerializer implements StructuredSerializer<ClientEntity> {
|
|||
'website',
|
||||
serializers.serialize(object.website,
|
||||
specifiedType: const FullType(String)),
|
||||
'payment_terms',
|
||||
serializers.serialize(object.paymentTerms,
|
||||
specifiedType: const FullType(int)),
|
||||
'vat_number',
|
||||
serializers.serialize(object.vatNumber,
|
||||
specifiedType: const FullType(String)),
|
||||
|
|
@ -242,6 +239,12 @@ class _$ClientEntitySerializer implements StructuredSerializer<ClientEntity> {
|
|||
..add(serializers.serialize(object.sizeId,
|
||||
specifiedType: const FullType(String)));
|
||||
}
|
||||
if (object.paymentTerms != null) {
|
||||
result
|
||||
..add('payment_terms')
|
||||
..add(serializers.serialize(object.paymentTerms,
|
||||
specifiedType: const FullType(int)));
|
||||
}
|
||||
if (object.languageId != null) {
|
||||
result
|
||||
..add('language_id')
|
||||
|
|
@ -1051,9 +1054,6 @@ class _$ClientEntity extends ClientEntity {
|
|||
if (website == null) {
|
||||
throw new BuiltValueNullFieldError('ClientEntity', 'website');
|
||||
}
|
||||
if (paymentTerms == null) {
|
||||
throw new BuiltValueNullFieldError('ClientEntity', 'paymentTerms');
|
||||
}
|
||||
if (vatNumber == null) {
|
||||
throw new BuiltValueNullFieldError('ClientEntity', 'vatNumber');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,6 @@ class _EntityDropdownState extends State<EntityDropdown> {
|
|||
|
||||
@override
|
||||
void initState() {
|
||||
print('## INIT STATE ');
|
||||
super.initState();
|
||||
_focusNode.addListener(() {
|
||||
if (_focusNode.hasFocus) {
|
||||
|
|
|
|||
|
|
@ -131,6 +131,7 @@ class MainScreen extends StatelessWidget {
|
|||
),
|
||||
// TODO profile/time to see if this optimization helps
|
||||
mainRoute == 'settings' ? SettingsScreens() : SizedBox(),
|
||||
//SettingsScreens(),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in New Issue