chore: tweaks to styling of not-available space analytics table rows (#3763)

This commit is contained in:
ggurdin 2025-08-15 14:12:39 -04:00 committed by GitHub
parent cc663515ec
commit 635eb5546e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 24 additions and 13 deletions

View file

@ -5191,7 +5191,7 @@
}
}
},
"noDataFound": "Not found",
"noDataFound": "No data found",
"activityFinishedMessage": "All Finished!",
"endForAll": "End for all"
}

View file

@ -33,7 +33,7 @@ enum RequestStatus {
}
}
IconData get icon {
IconData? get icon {
switch (this) {
case RequestStatus.available:
return Icons.check_circle;
@ -42,7 +42,7 @@ enum RequestStatus {
case RequestStatus.requested:
return Icons.mark_email_read_outlined;
case RequestStatus.unavailable:
return Symbols.approval_delegation;
return null;
}
}
@ -76,7 +76,7 @@ enum RequestStatus {
bool get enabled => this == RequestStatus.unrequested;
double get opacity => this == RequestStatus.unavailable ? 0.5 : 1.0;
double get opacity => this == RequestStatus.unavailable ? 0.7 : 1.0;
}
/// The status of the download process for space analytics data.

View file

@ -505,22 +505,33 @@ class _RequestButton extends StatelessWidget {
child: Opacity(
opacity: status.enabled ? 0.9 : 0.3,
child: Container(
padding: const EdgeInsets.symmetric(horizontal: 8.0, vertical: 4.0),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(40),
color: status.backgroundColor(context),
padding: const EdgeInsets.symmetric(
horizontal: 8.0,
vertical: 4.0,
),
decoration: status != RequestStatus.unavailable
? BoxDecoration(
borderRadius: BorderRadius.circular(40),
color: status.backgroundColor(context),
)
: null,
child: Row(
spacing: 8.0,
mainAxisSize: MainAxisSize.min,
children: [
Icon(
status.icon,
size: !mini ? 12.0 : 8.0,
),
if (status.icon != null)
Icon(
status.icon,
size: !mini ? 12.0 : 8.0,
),
Text(
status.label(context),
style: TextStyle(fontSize: !mini ? 12.0 : 8.0),
style: TextStyle(
fontSize: !mini ? 12.0 : 8.0,
fontStyle: status == RequestStatus.unavailable
? FontStyle.italic
: FontStyle.normal,
),
),
],
),