Skip to content

Commit

Permalink
Improve tree node number visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansen4857 committed Oct 8, 2023
1 parent e80c47d commit e88a393
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions lib/widgets/editor/tree_widgets/item_count.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,11 @@ class ItemCount extends StatelessWidget {
Widget build(BuildContext context) {
ColorScheme colorScheme = Theme.of(context).colorScheme;

return Container(
width: 28,
height: 28,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(14),
border: Border.all(width: 2, color: colorScheme.surfaceVariant),
),
child: FittedBox(
fit: BoxFit.scaleDown,
child: Text(
'$count',
style: TextStyle(
fontSize: 24,
color: colorScheme.surfaceVariant,
),
),
return Text(
'$count',
style: TextStyle(
fontSize: 18,
color: colorScheme.primary,
),
);
}
Expand Down

0 comments on commit e88a393

Please sign in to comment.