From 99e1036043b362eeced45101422702c980cfbea3 Mon Sep 17 00:00:00 2001 From: Sikander Saleem Date: Thu, 18 Sep 2025 11:37:24 +0300 Subject: [PATCH] ui improvement. --- lib/presentation/home/landing_page.dart | 2 +- lib/presentation/home/widgets/welcome_widget.dart | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/presentation/home/landing_page.dart b/lib/presentation/home/landing_page.dart index f8cb8fd..9b1cd26 100644 --- a/lib/presentation/home/landing_page.dart +++ b/lib/presentation/home/landing_page.dart @@ -87,7 +87,7 @@ class _LandingPageState extends State { return Scaffold( backgroundColor: AppColors.bgScaffoldColor, body: SingleChildScrollView( - padding: EdgeInsets.only(top: kToolbarHeight + 12.h, bottom: 24), + padding: EdgeInsets.only(top: kToolbarHeight + 0.h, bottom: 24), child: Column( spacing: 16.h, children: [ diff --git a/lib/presentation/home/widgets/welcome_widget.dart b/lib/presentation/home/widgets/welcome_widget.dart index 4baee01..f710ab2 100644 --- a/lib/presentation/home/widgets/welcome_widget.dart +++ b/lib/presentation/home/widgets/welcome_widget.dart @@ -37,8 +37,9 @@ class WelcomeWidget extends StatelessWidget { Row( spacing: 4.h, crossAxisAlignment: CrossAxisAlignment.center, + mainAxisSize: MainAxisSize.min, children: [ - name.toText16(weight: FontWeight.w500, textOverflow: TextOverflow.ellipsis, maxlines: 1, height: 1).expanded, + Flexible(child: name.toText16(weight: FontWeight.w500, textOverflow: TextOverflow.ellipsis, maxlines: 1, height: 1)), const Icon(Icons.keyboard_arrow_down, size: 20, color: Colors.black), ], ),