Skip to content

Commit

Permalink
Merge branch 'fix/card_image' of https://github.com/forus-labs/forui
Browse files Browse the repository at this point in the history
…into fix/card_image
  • Loading branch information
Daviiddoo committed Aug 6, 2024
2 parents 04e6792 + 3db5c58 commit 9cba923
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions forui/lib/src/widgets/card/card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,17 @@ final class FCardStyle with Diagnosticable {
FCardStyle({required this.decoration, required this.content});

/// Creates a [FCardStyle] that inherits its properties from [colorScheme], [typography] and [style].
FCardStyle.inherit({required FColorScheme colorScheme, required FTypography typography, required FStyle style})
FCardStyle.inherit(
{required FColorScheme colorScheme,
required FTypography typography,
required FStyle style})
: decoration = BoxDecoration(
border: Border.all(color: colorScheme.border),
borderRadius: style.borderRadius,
color: colorScheme.background,
),
content = FCardContentStyle.inherit(colorScheme: colorScheme, typography: typography);
content = FCardContentStyle.inherit(
colorScheme: colorScheme, typography: typography);

/// Returns a copy of this [FCardStyle] with the given properties replaced.
///
Expand Down

0 comments on commit 9cba923

Please sign in to comment.