Fix styling for loading indicator in nav menu

This commit is contained in:
Hillel Coren 2024-01-03 17:14:05 +02:00
parent 0b6a4fff95
commit 0104bde234
1 changed files with 9 additions and 4 deletions

View File

@ -88,7 +88,7 @@ class _MenuDrawerState extends State<MenuDrawer> {
// Fix for CORS error using 'object' subdomain
return CachedImage(
width: MenuDrawer.LOGO_WIDTH,
url: state.credentials.url+ '/companies/' + company.id + '/logo',
url: state.credentials.url + '/companies/' + company.id + '/logo',
apiToken: state.userCompanyStates
.firstWhere((userCompanyState) =>
userCompanyState.company.id == company.id)
@ -967,9 +967,14 @@ class _DrawerTileState extends State<DrawerTile> {
? iconWidget
: isLoading
? Padding(
padding: const EdgeInsets.only(left: 10),
padding: const EdgeInsets.only(
left: 10,
right: 8,
),
child: SizedBox(
child: CircularProgressIndicator(),
child: CircularProgressIndicator(
color: state.accentColor,
),
width: 22,
height: 22,
),
@ -1680,7 +1685,7 @@ class _ContactUsDialogState extends State<ContactUsDialog> {
setState(() => _isSaving = true);
WebClient()
.post(state.credentials.url+ '/support/messages/send',
.post(state.credentials.url + '/support/messages/send',
state.credentials.token,
data: json.encode({
'message': _message,