Skip to content

Commit

Permalink
Use tabular figures for viewer count
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyxchow committed Dec 22, 2023
1 parent b2af0dc commit ad3e1b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/screens/channel/video/video_overlay.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'dart:io';
import 'dart:ui';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
Expand Down Expand Up @@ -104,10 +105,11 @@ class VideoOverlay extends StatelessWidget {
children: [
Observer(
builder: (context) => Text(
videoStore.latency ?? '',
videoStore.latency ?? 'N/A',
style: const TextStyle(
color: Colors.white,
fontWeight: FontWeight.w500,
fontFeatures: [FontFeature.tabularFigures()],
),
),
),
Expand Down Expand Up @@ -249,11 +251,10 @@ class VideoOverlay extends StatelessWidget {
Align(
alignment: Alignment.bottomLeft,
child: Row(
crossAxisAlignment: CrossAxisAlignment.end,
children: [
Expanded(
child: Padding(
padding: const EdgeInsets.all(14),
padding: const EdgeInsets.all(12),
child: Row(
children: [
Tooltip(
Expand Down Expand Up @@ -314,6 +315,9 @@ class VideoOverlay extends StatelessWidget {
style: const TextStyle(
color: Colors.white,
fontWeight: FontWeight.w500,
fontFeatures: [
FontFeature.tabularFigures(),
],
),
),
],
Expand Down
2 changes: 2 additions & 0 deletions lib/screens/home/stream_list/stream_card.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'dart:math';
import 'dart:ui';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
Expand Down Expand Up @@ -173,6 +174,7 @@ class StreamCard extends StatelessWidget {
style: TextStyle(
fontSize: subFontSize,
color: fontColor?.withOpacity(0.8),
fontFeatures: const [FontFeature.tabularFigures()],
),
),
],
Expand Down

0 comments on commit ad3e1b3

Please sign in to comment.