diff --git a/firka/lib/helpers/ui/common_bottom_sheets.dart b/firka/lib/helpers/ui/common_bottom_sheets.dart index c678a7d..8511bf0 100644 --- a/firka/lib/helpers/ui/common_bottom_sheets.dart +++ b/firka/lib/helpers/ui/common_bottom_sheets.dart @@ -92,6 +92,7 @@ Future showLessonBottomSheet( width: 18, height: 18, child: Stack( + alignment: Alignment.center, children: [ SvgPicture.asset( "assets/icons/subtract.svg", @@ -99,12 +100,11 @@ Future showLessonBottomSheet( width: 18, height: 18, ), - Padding( - padding: EdgeInsets.only(left: 5), - child: Text(lessonNo.toString(), - style: appStyle.fonts.B_12R - .apply(color: secondary)), - ) + Text( + lessonNo.toString(), + style: appStyle.fonts.B_12R.apply(color: secondary), + textAlign: TextAlign.center, + ), ], ), ), diff --git a/firka/lib/ui/phone/widgets/lesson.dart b/firka/lib/ui/phone/widgets/lesson.dart index 7ace351..d89eb19 100644 --- a/firka/lib/ui/phone/widgets/lesson.dart +++ b/firka/lib/ui/phone/widgets/lesson.dart @@ -98,6 +98,7 @@ class LessonWidget extends StatelessWidget { width: 18, height: 18, child: Stack( + alignment: Alignment.center, children: [ SvgPicture.asset( "assets/icons/subtract.svg", @@ -105,12 +106,11 @@ class LessonWidget extends StatelessWidget { width: 18, height: 18, ), - Padding( - padding: EdgeInsets.only(left: 5), - child: Text(lessonNo.toString(), - style: - appStyle.fonts.B_12R.apply(color: secondary)), - ) + Text( + lessonNo.toString(), + style: appStyle.fonts.B_12R.apply(color: secondary), + textAlign: TextAlign.center, + ), ], ), ),