Skip to content

Commit

Permalink
fixed crop and added padding (#4514)
Browse files Browse the repository at this point in the history
  • Loading branch information
mishapark authored Aug 15, 2023
1 parent c532180 commit 1c75f86
Showing 1 changed file with 25 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,32 @@ class _KnowledgePanelPageState extends State<KnowledgePanelPage>
),
body: RefreshIndicator(
onRefresh: () => _refreshProduct(context),
child: SingleChildScrollView(
child: CustomScrollView(
physics: const AlwaysScrollableScrollPhysics(),
child: SmoothCard(
padding: const EdgeInsets.all(
SMALL_SPACE,
),
child: KnowledgePanelExpandedCard(
panelId: widget.panelId,
product: upToDateProduct,
isInitiallyExpanded: true,
),
),
slivers: <Widget>[
SliverToBoxAdapter(
child: Column(
children: <Widget>[
Padding(
padding: const EdgeInsets.only(
bottom: SMALL_SPACE,
top: SMALL_SPACE,
),
child: SmoothCard(
padding: const EdgeInsets.all(
SMALL_SPACE,
),
child: KnowledgePanelExpandedCard(
panelId: widget.panelId,
product: upToDateProduct,
isInitiallyExpanded: true,
),
),
),
],
),
)
],
),
),
);
Expand Down

0 comments on commit 1c75f86

Please sign in to comment.