Skip to content

Commit

Permalink
Use same font style for version label
Browse files Browse the repository at this point in the history
  • Loading branch information
omar-selo committed Sep 11, 2024
1 parent 10e5e50 commit d3108da
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frontend/lib/ui/artefact_page/artefact_page_info_section.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ArtefactPageInfoSection extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
_StagesRow(artefactStage: artefact.stage),
_ArtefactVersionSelector(artefact: artefact),
_ArtefactVersionSelector(artefact: artefact, labelFontStyle: fontStyle),
if (artefact.track.isNotEmpty)
Text('track: ${artefact.track}', style: fontStyle),
if (artefact.store.isNotEmpty)
Expand All @@ -47,9 +47,10 @@ class ArtefactPageInfoSection extends StatelessWidget {
}

class _ArtefactVersionSelector extends ConsumerWidget {
const _ArtefactVersionSelector({required this.artefact});
const _ArtefactVersionSelector({required this.artefact, this.labelFontStyle});

final Artefact artefact;
final TextStyle? labelFontStyle;

@override
Widget build(BuildContext context, WidgetRef ref) {
Expand All @@ -58,7 +59,7 @@ class _ArtefactVersionSelector extends ConsumerWidget {

return Row(
children: [
const Text('version: '),
Text('version: ', style: labelFontStyle),
YaruPopupMenuButton(
child: Text(artefact.version),
itemBuilder: (_) => versions
Expand Down

0 comments on commit d3108da

Please sign in to comment.