Skip to content

Commit

Permalink
fixed crop and added padding
Browse files Browse the repository at this point in the history
  • Loading branch information
mishapark committed Aug 12, 2023
1 parent 06c503c commit 30ffdb1
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 30ffdb1

Please sign in to comment.