From cff28d13b5aed30e64cc80ead528e6dd284eea02 Mon Sep 17 00:00:00 2001 From: Jacques Date: Mon, 17 Feb 2025 16:03:08 +0100 Subject: [PATCH] fix: aligned add category text in the middle --- .../screens/timeline_choose_category_screen.dart | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/packages/flutter_timeline/lib/src/screens/timeline_choose_category_screen.dart b/packages/flutter_timeline/lib/src/screens/timeline_choose_category_screen.dart index 3f23904..717a702 100644 --- a/packages/flutter_timeline/lib/src/screens/timeline_choose_category_screen.dart +++ b/packages/flutter_timeline/lib/src/screens/timeline_choose_category_screen.dart @@ -176,13 +176,15 @@ class CategoryOption extends StatelessWidget { padding: EdgeInsets.symmetric( vertical: 16, horizontal: addCategory ? 8 : 16, - ), - child: Text( - category, - style: theme.textTheme.titleMedium?.copyWith( - color: addCategory - ? Colors.black.withOpacity(0.3) - : Colors.black, + ).copyWith(top: addCategory ? 19 : 18), + child: Center( + child: Text( + category, + style: theme.textTheme.titleMedium?.copyWith( + color: addCategory + ? Colors.black.withOpacity(0.3) + : Colors.black, + ), ), ), ),