Space analytics overflow fixes (#3794)
* Remove duplicate noDataFound entry in intl_en.arb * Use lang code instead of full language name * Remove horizontal padding when button outline isn't shown * Make request button text wrap, remove padding entirely if outline not shown
This commit is contained in:
parent
50a2005075
commit
7d67a064fa
2 changed files with 9 additions and 11 deletions
|
|
@ -5191,7 +5191,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"noDataFound": "No data found",
|
||||
"activityFinishedMessage": "All Finished!",
|
||||
"endForAll": "End for all"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -110,10 +110,8 @@ class SpaceAnalyticsView extends StatelessWidget {
|
|||
children: [
|
||||
if (controller.selectedLanguage != null)
|
||||
Text(
|
||||
controller.selectedLanguage!
|
||||
.getDisplayName(context) ??
|
||||
controller
|
||||
.selectedLanguage!.displayName,
|
||||
controller.selectedLanguage!.langCode
|
||||
.toUpperCase(),
|
||||
style: TextStyle(
|
||||
color: theme
|
||||
.colorScheme.onPrimaryContainer,
|
||||
|
|
@ -507,19 +505,20 @@ 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,
|
||||
),
|
||||
padding: (status != RequestStatus.unavailable)
|
||||
? const EdgeInsets.symmetric(
|
||||
horizontal: 8.0,
|
||||
vertical: 4.0,
|
||||
)
|
||||
: null,
|
||||
decoration: status != RequestStatus.unavailable
|
||||
? BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(40),
|
||||
color: status.backgroundColor(context),
|
||||
)
|
||||
: null,
|
||||
child: Row(
|
||||
child: Wrap(
|
||||
spacing: 8.0,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
if (status.icon != null)
|
||||
Icon(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue