From 12f51d49ea46b1ee38315eb7cd5c8338feb602c9 Mon Sep 17 00:00:00 2001 From: mso7nueh Date: Fri, 31 Oct 2025 12:59:02 +0300 Subject: [PATCH] fix(profile): subs screen and blog post padding --- lib/core/routing/other_routes.dart | 8 ++++++-- .../presentation/widgets/profile_blog_post_widget.dart | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/core/routing/other_routes.dart b/lib/core/routing/other_routes.dart index a5809c8f..fd669e34 100644 --- a/lib/core/routing/other_routes.dart +++ b/lib/core/routing/other_routes.dart @@ -156,7 +156,7 @@ class OtherRoutes { }, ), GoRoute( - path: RouteConstants.subsScreen, + path: '${RouteConstants.subsScreen}/:slug', name: 'subsScreen', builder: (context, state) => SubsScreen(slug: state.pathParameters['slug']!, subType: state.extra as SubType), ), @@ -194,7 +194,11 @@ class OtherRoutes { ), // Other routes - GoRoute(path: RouteConstants.glossaryScreen, name: 'glossaryScreen', builder: (context, state) => GlossaryScreen(passKey: state.extra as String)), + GoRoute( + path: RouteConstants.glossaryScreen, + name: 'glossaryScreen', + builder: (context, state) => GlossaryScreen(passKey: state.extra as String), + ), GoRoute(path: RouteConstants.blockedUsersScreen, name: 'blockedUsersScreen', builder: (context, state) => const BlockedUsersScreen()), GoRoute( path: RouteConstants.notificationsSettingsScreen, diff --git a/lib/features/profile/presentation/widgets/profile_blog_post_widget.dart b/lib/features/profile/presentation/widgets/profile_blog_post_widget.dart index 7163179f..d0714314 100644 --- a/lib/features/profile/presentation/widgets/profile_blog_post_widget.dart +++ b/lib/features/profile/presentation/widgets/profile_blog_post_widget.dart @@ -106,7 +106,7 @@ class _ProfileBlogPostWidgetState extends State { if (state.blogPosts[widget.index].title.isNotEmpty && state.blogPosts[widget.index].description.isNotEmpty) const SizedBox(height: 8), if (state.blogPosts[widget.index].description.isNotEmpty) Padding( - padding: const EdgeInsets.symmetric(horizontal: 4), + padding: const EdgeInsets.symmetric(horizontal: 12), child: Html( data: md.markdownToHtml( state.blogPosts[widget.index].description.length > 200