forked from eatvio/eatvio_app
fix(profile): subs screen and blog post padding
This commit is contained in:
@@ -156,7 +156,7 @@ class OtherRoutes {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
GoRoute(
|
GoRoute(
|
||||||
path: RouteConstants.subsScreen,
|
path: '${RouteConstants.subsScreen}/:slug',
|
||||||
name: 'subsScreen',
|
name: 'subsScreen',
|
||||||
builder: (context, state) => SubsScreen(slug: state.pathParameters['slug']!, subType: state.extra as SubType),
|
builder: (context, state) => SubsScreen(slug: state.pathParameters['slug']!, subType: state.extra as SubType),
|
||||||
),
|
),
|
||||||
@@ -194,7 +194,11 @@ class OtherRoutes {
|
|||||||
),
|
),
|
||||||
|
|
||||||
// Other routes
|
// 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.blockedUsersScreen, name: 'blockedUsersScreen', builder: (context, state) => const BlockedUsersScreen()),
|
||||||
GoRoute(
|
GoRoute(
|
||||||
path: RouteConstants.notificationsSettingsScreen,
|
path: RouteConstants.notificationsSettingsScreen,
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ class _ProfileBlogPostWidgetState extends State<ProfileBlogPostWidget> {
|
|||||||
if (state.blogPosts[widget.index].title.isNotEmpty && state.blogPosts[widget.index].description.isNotEmpty) const SizedBox(height: 8),
|
if (state.blogPosts[widget.index].title.isNotEmpty && state.blogPosts[widget.index].description.isNotEmpty) const SizedBox(height: 8),
|
||||||
if (state.blogPosts[widget.index].description.isNotEmpty)
|
if (state.blogPosts[widget.index].description.isNotEmpty)
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 4),
|
padding: const EdgeInsets.symmetric(horizontal: 12),
|
||||||
child: Html(
|
child: Html(
|
||||||
data: md.markdownToHtml(
|
data: md.markdownToHtml(
|
||||||
state.blogPosts[widget.index].description.length > 200
|
state.blogPosts[widget.index].description.length > 200
|
||||||
|
|||||||
Reference in New Issue
Block a user