Small orion merge

This commit is contained in:
Ryan Pandya 2023-07-13 09:07:30 -07:00
parent 8161b23755
commit 7b8cb39567
2 changed files with 11 additions and 12 deletions

View File

@ -60,7 +60,7 @@ class Category {
}
double leftPadding() {
return hasParent() ? 50.0 : 20.0;
return hasParent() ? 30.0 : 15.0;
}
CategoryData data() {

View File

@ -82,9 +82,8 @@ class CategoryRow extends StatelessWidget {
child: Row(
children: [
Container(
constraints: BoxConstraints(maxHeight: 100, maxWidth: 50),
constraints: BoxConstraints(maxHeight: 75, maxWidth: 50),
color: category.backgroundColor,
child: SizedBox.expand(
child: Center(
child: Text(
style: TextStyle(
@ -94,7 +93,6 @@ class CategoryRow extends StatelessWidget {
),
category.number.toString())),
),
),
Expanded(
child: Padding(
padding: EdgeInsets.only(left: category.leftPadding()),
@ -115,6 +113,7 @@ class CategoryRow extends StatelessWidget {
color: Colors.white38,
),
"${category.description}",
overflow: TextOverflow.ellipsis,
),
),
),