Skip to content

Commit

Permalink
fix: showDebugInfo on timeline view
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlukaa committed Feb 2, 2024
1 parent bf78d9e commit 0d0b979
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions lib/widgets/events_timeline/desktop/timeline.dart
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,7 @@ class _TimelineTile extends StatelessWidget {
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
final settings = context.watch<SettingsProvider>();

final border = Border(
right: BorderSide(color: theme.disabledColor.withOpacity(0.5)),
Expand Down Expand Up @@ -985,11 +986,17 @@ class _TimelineTile extends StatelessWidget {
// 1)]
// : theme.colorScheme.primary,
color: theme.colorScheme.primary,
// color: theme.extension<UnityColors>()!.successColor,
child: kDebugMode
? Text(
'${tile.events.indexOf(event)}',
style: const TextStyle(color: Colors.black),
child: settings.showDebugInfo
? Align(
alignment: AlignmentDirectional.centerStart,
child: Text(
'${tile.events.indexOf(event)}',
style: TextStyle(
color: theme.colorScheme.onPrimary,
fontSize: 10.0,
fontWeight: FontWeight.bold,
),
),
)
: null,
),
Expand Down

0 comments on commit 0d0b979

Please sign in to comment.