ios permissions
This commit is contained in:
parent
159e82811a
commit
755e73d63a
|
|
@ -295,7 +295,8 @@ class _LoginState extends State<LoginView> {
|
|||
final double horizontalPadding =
|
||||
calculateLayout(context) == AppLayout.desktop ? 40 : 16;
|
||||
|
||||
return ScrollableListView(
|
||||
return SafeArea(
|
||||
child: ScrollableListView(
|
||||
children: <Widget>[
|
||||
if (isDesktopOS())
|
||||
AppTitleBar()
|
||||
|
|
@ -738,6 +739,7 @@ class _LoginState extends State<LoginView> {
|
|||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ import 'package:contacts_service/contacts_service.dart';
|
|||
// Project imports:
|
||||
import 'package:invoiceninja_flutter/constants.dart';
|
||||
import 'package:invoiceninja_flutter/data/models/entities.dart';
|
||||
import 'package:invoiceninja_flutter/data/models/models.dart';
|
||||
import 'package:invoiceninja_flutter/redux/static/static_selectors.dart';
|
||||
import 'package:invoiceninja_flutter/ui/app/form_card.dart';
|
||||
import 'package:invoiceninja_flutter/ui/app/forms/custom_field.dart';
|
||||
|
|
@ -131,24 +132,24 @@ class ClientEditDetailsState extends State<ClientEditDetails> {
|
|||
String countryId;
|
||||
|
||||
countryMap.keys.forEach((countryId) {
|
||||
final country = countryMap[countryId];
|
||||
if (country.name.toLowerCase() == contactAddress.country.toLowerCase()) {
|
||||
final country = countryMap[countryId] ?? CountryEntity();
|
||||
if (country.name.toLowerCase() == contactAddress?.country?.toLowerCase()) {
|
||||
countryId = country.id;
|
||||
}
|
||||
});
|
||||
|
||||
widget.viewModel.onChanged(client.rebuild((b) => b
|
||||
..name = contact.company ?? ''
|
||||
..address1 = contactAddress.street ?? ''
|
||||
..city = contactAddress.city ?? ''
|
||||
..state = contactAddress.region ?? ''
|
||||
..postalCode = contactAddress.postcode ?? ''
|
||||
..countryId = countryId
|
||||
..name = (contact?.company ?? '').trim()
|
||||
..address1 = (contactAddress?.street ?? '').trim()
|
||||
..city = (contactAddress?.city ?? '').trim()
|
||||
..state = (contactAddress?.region ?? '').trim()
|
||||
..postalCode = (contactAddress?.postcode ?? '').trim()
|
||||
..countryId = countryId ?? ''
|
||||
..contacts[0] = client.contacts[0].rebuild((b) => b
|
||||
..firstName = contact.givenName ?? ''
|
||||
..lastName = contact.familyName ?? ''
|
||||
..email = contactEmail.value ?? ''
|
||||
..phone = contactPhone.value ?? '')
|
||||
..firstName = (contact?.givenName ?? '').trim()
|
||||
..lastName = (contact?.familyName ?? '').trim()
|
||||
..email = (contactEmail?.value ?? '').trim()
|
||||
..phone = (contactPhone?.value ?? '').trim())
|
||||
..updatedAt = DateTime.now().millisecondsSinceEpoch));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ import 'package:contacts_service/contacts_service.dart';
|
|||
// Project imports:
|
||||
import 'package:invoiceninja_flutter/constants.dart';
|
||||
import 'package:invoiceninja_flutter/data/models/entities.dart';
|
||||
import 'package:invoiceninja_flutter/data/models/models.dart';
|
||||
import 'package:invoiceninja_flutter/ui/app/form_card.dart';
|
||||
import 'package:invoiceninja_flutter/ui/app/forms/custom_field.dart';
|
||||
import 'package:invoiceninja_flutter/ui/app/forms/decorated_form_field.dart';
|
||||
|
|
@ -129,24 +130,24 @@ class VendorEditDetailsState extends State<VendorEditDetails> {
|
|||
String countryId;
|
||||
|
||||
countryMap.keys.forEach((countryId) {
|
||||
final country = countryMap[countryId];
|
||||
if (country.name.toLowerCase() == contactAddress.country.toLowerCase()) {
|
||||
final country = countryMap[countryId] ?? CountryEntity();
|
||||
if (country.name.toLowerCase() == contactAddress?.country?.toLowerCase()) {
|
||||
countryId = country.id;
|
||||
}
|
||||
});
|
||||
|
||||
widget.viewModel.onChanged(vendor.rebuild((b) => b
|
||||
..name = contact.company ?? ''
|
||||
..address1 = contactAddress.street ?? ''
|
||||
..city = contactAddress.city ?? ''
|
||||
..state = contactAddress.region ?? ''
|
||||
..postalCode = contactAddress.postcode ?? ''
|
||||
..countryId = countryId
|
||||
..name = (contact?.company ?? '').trim()
|
||||
..address1 = (contactAddress?.street ?? '').trim()
|
||||
..city = (contactAddress?.city ?? '').trim()
|
||||
..state = (contactAddress?.region ?? '').trim()
|
||||
..postalCode = (contactAddress?.postcode ?? '').trim()
|
||||
..countryId = countryId ?? ''
|
||||
..contacts[0] = vendor.contacts[0].rebuild((b) => b
|
||||
..firstName = contact.givenName ?? ''
|
||||
..lastName = contact.familyName ?? ''
|
||||
..email = contactEmail.value ?? ''
|
||||
..phone = contactPhone.value ?? '')
|
||||
..firstName = (contact?.givenName ?? '').trim()
|
||||
..lastName = (contact?.familyName ?? '').trim()
|
||||
..email = (contactEmail?.value ?? '').trim()
|
||||
..phone = (contactPhone?.value ?? '').trim())
|
||||
..updatedAt = DateTime.now().millisecondsSinceEpoch));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue