Skip to content

Commit

Permalink
fix alignment of SimpleButton when wrapping to multiple rows
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaphasilor committed Nov 3, 2024
1 parent 34cda03 commit 6cd6e92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/components/Buttons/simple_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ class SimpleButton extends StatelessWidget {
color: (disabled || inactive) ? iconColor?.withOpacity(0.5) : iconColor,
weight: 1.5,
),
const SizedBox(
width: 6,
),
Text(
text,
style: TextStyle(
Expand All @@ -51,6 +48,7 @@ class SimpleButton extends StatelessWidget {
fontSize: 14,
fontWeight: FontWeight.normal,
),
textAlign: TextAlign.center,
),
];

Expand All @@ -74,6 +72,8 @@ class SimpleButton extends StatelessWidget {
),
child: Wrap(
crossAxisAlignment: WrapCrossAlignment.center,
alignment: WrapAlignment.center,
spacing: 6.0,
children: iconPosition == IconPosition.start
? contents
: contents.reversed.toList(),
Expand Down

0 comments on commit 6cd6e92

Please sign in to comment.