Logo URL change
This commit is contained in:
parent
2d0872744f
commit
66cf9827e8
|
|
@ -49,6 +49,7 @@ class MenuDrawer extends StatelessWidget {
|
||||||
final state = store.state;
|
final state = store.state;
|
||||||
final enableDarkMode = state.prefState.enableDarkMode;
|
final enableDarkMode = state.prefState.enableDarkMode;
|
||||||
final localization = AppLocalization.of(context);
|
final localization = AppLocalization.of(context);
|
||||||
|
final account = state.account;
|
||||||
final company = viewModel.selectedCompany;
|
final company = viewModel.selectedCompany;
|
||||||
|
|
||||||
if (company == null) {
|
if (company == null) {
|
||||||
|
|
@ -60,7 +61,7 @@ class MenuDrawer extends StatelessWidget {
|
||||||
company.settings.companyLogo.isNotEmpty
|
company.settings.companyLogo.isNotEmpty
|
||||||
? CachedImage(
|
? CachedImage(
|
||||||
width: 32,
|
width: 32,
|
||||||
url: company.settings.companyLogo,
|
url: account.defaultUrl + company.settings.companyLogo,
|
||||||
)
|
)
|
||||||
: Image.asset('assets/images/logo.png', width: 32);
|
: Image.asset('assets/images/logo.png', width: 32);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -446,7 +446,7 @@ class _CompanyDetailsState extends State<CompanyDetails>
|
||||||
padding: const EdgeInsets.symmetric(vertical: 20),
|
padding: const EdgeInsets.symmetric(vertical: 20),
|
||||||
child: CachedImage(
|
child: CachedImage(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
url: settings.companyLogo,
|
url: state.account.defaultUrl + settings.companyLogo,
|
||||||
//url: '${settings.logoUrl}?clear_cache=${state.selectedCompany.updatedAt}',
|
//url: '${settings.logoUrl}?clear_cache=${state.selectedCompany.updatedAt}',
|
||||||
)),
|
)),
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -148,16 +148,16 @@ class _SettingsListState extends State<SettingsList> {
|
||||||
section: kSettingsImportExport,
|
section: kSettingsImportExport,
|
||||||
viewModel: widget.viewModel,
|
viewModel: widget.viewModel,
|
||||||
),
|
),
|
||||||
if (showAll && state.userCompany.isOwner)
|
|
||||||
SettingsListTile(
|
|
||||||
section: kSettingsAccountManagement,
|
|
||||||
viewModel: widget.viewModel,
|
|
||||||
),
|
|
||||||
if (showAll)
|
if (showAll)
|
||||||
SettingsListTile(
|
SettingsListTile(
|
||||||
section: kSettingsDeviceSettings,
|
section: kSettingsDeviceSettings,
|
||||||
viewModel: widget.viewModel,
|
viewModel: widget.viewModel,
|
||||||
),
|
),
|
||||||
|
if (showAll && state.userCompany.isOwner)
|
||||||
|
SettingsListTile(
|
||||||
|
section: kSettingsAccountManagement,
|
||||||
|
viewModel: widget.viewModel,
|
||||||
|
),
|
||||||
Container(
|
Container(
|
||||||
color: Theme.of(context).backgroundColor,
|
color: Theme.of(context).backgroundColor,
|
||||||
padding: const EdgeInsets.only(left: 19, top: 16, bottom: 16),
|
padding: const EdgeInsets.only(left: 19, top: 16, bottom: 16),
|
||||||
|
|
@ -376,6 +376,15 @@ class SettingsSearch extends StatelessWidget {
|
||||||
'export',
|
'export',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
kSettingsDeviceSettings: [
|
||||||
|
[
|
||||||
|
'rows_per_page',
|
||||||
|
'dark_mode',
|
||||||
|
'long_press_multiselect',
|
||||||
|
'biometric_authentication',
|
||||||
|
'refresh_data',
|
||||||
|
],
|
||||||
|
],
|
||||||
kSettingsAccountManagement: [
|
kSettingsAccountManagement: [
|
||||||
[
|
[
|
||||||
'api_tokens',
|
'api_tokens',
|
||||||
|
|
@ -387,15 +396,6 @@ class SettingsSearch extends StatelessWidget {
|
||||||
'enabeled_modules',
|
'enabeled_modules',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
kSettingsDeviceSettings: [
|
|
||||||
[
|
|
||||||
'rows_per_page',
|
|
||||||
'dark_mode',
|
|
||||||
'long_press_multiselect',
|
|
||||||
'biometric_authentication',
|
|
||||||
'refresh_data',
|
|
||||||
],
|
|
||||||
],
|
|
||||||
kSettingsGroupSettings: [
|
kSettingsGroupSettings: [
|
||||||
[
|
[
|
||||||
'groups',
|
'groups',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue