diff --git a/ltx_flutter/lib/appwrite/categories_api.dart b/ltx_flutter/lib/appwrite/categories_api.dart index 9a0fb93..0901421 100644 --- a/ltx_flutter/lib/appwrite/categories_api.dart +++ b/ltx_flutter/lib/appwrite/categories_api.dart @@ -60,7 +60,7 @@ class Category { } double leftPadding() { - return hasParent() ? 50.0 : 20.0; + return hasParent() ? 30.0 : 15.0; } CategoryData data() { diff --git a/ltx_flutter/lib/pages/categories_page.dart b/ltx_flutter/lib/pages/categories_page.dart index 017898b..1a7cee8 100644 --- a/ltx_flutter/lib/pages/categories_page.dart +++ b/ltx_flutter/lib/pages/categories_page.dart @@ -82,18 +82,16 @@ 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( - fontWeight: FontWeight.bold, - color: category.foregroundColor, - fontSize: 18, - ), - category.number.toString())), - ), + child: Center( + child: Text( + style: TextStyle( + fontWeight: FontWeight.bold, + color: category.foregroundColor, + fontSize: 18, + ), + category.number.toString())), ), Expanded( child: Padding( @@ -115,6 +113,7 @@ class CategoryRow extends StatelessWidget { color: Colors.white38, ), "${category.description}", + overflow: TextOverflow.ellipsis, ), ), ),