Skip to content

Commit

Permalink
feat(app): improve paddings
Browse files Browse the repository at this point in the history
  • Loading branch information
tamslo committed Dec 10, 2024
1 parent 8bbccf2 commit e7b8ba8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
5 changes: 4 additions & 1 deletion app/lib/drug/pages/drug.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ class DrugPage extends StatelessWidget {
Expanded(
child: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 16),
padding: const EdgeInsets.symmetric(
horizontal: PharMeTheme.smallToMediumSpace,
vertical: PharMeTheme.smallSpace,
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expand Down
7 changes: 5 additions & 2 deletions app/lib/faq/pages/faq.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,15 @@ class FaqPage extends HookWidget {
canNavigateBack: false,
body: [
Padding(
padding: const EdgeInsets.all(PharMeTheme.smallSpace),
padding: const EdgeInsets.only(
left: PharMeTheme.smallSpace,
right: PharMeTheme.smallSpace,
bottom: PharMeTheme.smallSpace,
),
child: Column(
key: Key('questionsColumn'),
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: PharMeTheme.smallSpace),
...faqContent.flatMap((faqSection) =>
_buildTopic(context, faqSection, expandedCards, expandQuestion)),
..._buildTopicHeader(
Expand Down
9 changes: 5 additions & 4 deletions app/lib/report/pages/gene.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ class GenePage extends HookWidget {
Column(
children: [
Padding(
padding: EdgeInsets.symmetric(
horizontal: PharMeTheme.smallToMediumSpace,
vertical: PharMeTheme.mediumSpace
padding: EdgeInsets.only(
left: PharMeTheme.smallToMediumSpace,
right: PharMeTheme.smallToMediumSpace,
top: PharMeTheme.smallSpace,
bottom: PharMeTheme.smallSpace,
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
Expand Down Expand Up @@ -88,7 +90,6 @@ class GenePage extends HookWidget {
genotypeResult.geneDisplayString
),
),
SizedBox(height: PharMeTheme.smallSpace),
],
),
),
Expand Down

0 comments on commit e7b8ba8

Please sign in to comment.