Skip to content

Commit 44d9d97

Browse files
Merge pull request #26 from solid-software/25-horizontalhelpwidget-misalignments
fix #25
2 parents d423dca + 3fe3ebc commit 44d9d97

File tree

6 files changed

+18
-28
lines changed

6 files changed

+18
-28
lines changed

lib/src/components/buttons/details_button.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class DetailsButton extends StatelessWidget {
2828
const chevronHeight = 6.4;
2929

3030
const fontSize = 19.2;
31-
const letterSpacing = -0.49;
31+
const letterSpacing = -0.2;
3232

3333
return MouseRegion(
3434
cursor: SystemMouseCursors.click,
@@ -48,7 +48,7 @@ class DetailsButton extends StatelessWidget {
4848
color: color,
4949
),
5050
),
51-
const SizedBox(width: 2),
51+
const SizedBox(width: 6),
5252
Padding(
5353
padding: const EdgeInsets.only(top: 4.0),
5454
child: SizedBox(

lib/src/components/buttons/help_option_button.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class HelpOptionButton extends StatelessWidget {
3939
Widget build(BuildContext context) {
4040
const hoverOpacity = 0.1;
4141
const lineHeight = 0.6;
42-
const letterSpacing = -0.42;
42+
const letterSpacing = 0.3;
4343

4444
return HoverWrapper(
4545
backgroundColor: backgroundColor,

lib/src/components/card_rounded/card_rounded.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class CardRounded extends StatelessWidget {
5050
this.width,
5151
this.onClose,
5252
this.closeButtonIcon,
53-
this.closeButtonAlignment = const Alignment(1.02, -1.05),
53+
this.closeButtonAlignment = const Alignment(1, -1.05),
5454
this.padding = const EdgeInsets.symmetric(
5555
vertical: 10,
5656
horizontal: 10,

lib/src/widgets/help_collection/horizontal_help_widget.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class HorizontalHelpWidget extends StatelessWidget {
5050
const SizedBox(width: 14),
5151
Column(
5252
mainAxisSize: MainAxisSize.min,
53-
mainAxisAlignment: MainAxisAlignment.spaceBetween,
53+
mainAxisAlignment: MainAxisAlignment.spaceAround,
5454
crossAxisAlignment: CrossAxisAlignment.start,
5555
children: [
5656
Text(
@@ -59,7 +59,7 @@ class HorizontalHelpWidget extends StatelessWidget {
5959
fontFamily: FontConfig.family,
6060
fontSize: 20.8,
6161
fontWeight: FontWeight.w700,
62-
letterSpacing: -0.322,
62+
letterSpacing: -0.174,
6363
),
6464
),
6565
const SizedBox(height: 0.5),

lib/src/widgets/links_card_widget/links_card_button.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class _LinksCardButtonState extends State<LinksCardButton> {
4545
fontSize: fontSize,
4646
),
4747
),
48-
const SizedBox(width: 4),
48+
const SizedBox(width: 5),
4949
Icon(
5050
SFSymbols.chevron_up,
5151
color: color,

lib/src/widgets/links_card_widget/links_card_widget.dart

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -29,27 +29,17 @@ class LinksCardWidget extends StatelessWidget {
2929
mainAxisAlignment: MainAxisAlignment.spaceBetween,
3030
children: options,
3131
),
32-
const SizedBox(
33-
height: 4,
34-
),
35-
Row(
36-
children: [
37-
const SizedBox(
38-
width: 3,
39-
),
40-
Expanded(
41-
child: Container(
42-
color: const Color(0xffe5e5e5),
43-
height: 1,
44-
),
45-
),
46-
const SizedBox(
47-
width: 3,
48-
),
49-
],
50-
),
51-
const SizedBox(
52-
height: 10,
32+
Padding(
33+
padding: const EdgeInsets.only(
34+
top: 1,
35+
bottom: 10,
36+
left: 3,
37+
right: 3,
38+
),
39+
child: Container(
40+
color: const Color(0xffe5e5e5),
41+
height: 1,
42+
),
5343
),
5444
LinksCardButton(onTap: onClose),
5545
],

0 commit comments

Comments
 (0)