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