Skip to content

Commit

Permalink
Update forui/lib/src/widgets/card/card_content.dart
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Ngeo <[email protected]>
  • Loading branch information
kawaijoe and Pante authored May 17, 2024
1 parent c682f00 commit 05b07eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forui/lib/src/widgets/card/card_content.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ final class FCardContent extends StatelessWidget {
if (subtitle != null) Text(subtitle!, style: style.subtitle),
if (content != null)
Padding(
padding: (title != null || subtitle != null) ? const EdgeInsets.only(top: 10) : const EdgeInsets.only(top: 4),
padding: (title == null && subtitle == null) ? const EdgeInsets.only(top: 4) : const EdgeInsets.only(top: 10),
child: content!,
),
],
Expand Down

0 comments on commit 05b07eb

Please sign in to comment.