Skip to content

Commit

Permalink
Commit from GitHub Actions (Forui Presubmit)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pante committed Oct 2, 2024
1 parent b788e10 commit 835a376
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
36 changes: 18 additions & 18 deletions forui/lib/src/widgets/alert.dart
Original file line number Diff line number Diff line change
Expand Up @@ -123,20 +123,20 @@ final class FAlertStyles with Diagnosticable {
/// Creates a [FAlertStyles] that inherits its properties from the provided [colorScheme], [typography], and [style].
FAlertStyles.inherit({required FColorScheme colorScheme, required FTypography typography, required FStyle style})
: primary = FAlertCustomStyle(
padding: const EdgeInsets.fromLTRB(16, 12, 16, 12),
iconColor: colorScheme.foreground,
titleTextStyle: typography.base.copyWith(
fontWeight: FontWeight.w500,
color: colorScheme.foreground,
height: 1.2,
),
subtitleTextStyle: typography.sm.copyWith(color: colorScheme.foreground),
decoration: BoxDecoration(
border: Border.all(color: colorScheme.border),
borderRadius: style.borderRadius,
color: colorScheme.background,
),
),
padding: const EdgeInsets.fromLTRB(16, 12, 16, 12),
iconColor: colorScheme.foreground,
titleTextStyle: typography.base.copyWith(
fontWeight: FontWeight.w500,
color: colorScheme.foreground,
height: 1.2,
),
subtitleTextStyle: typography.sm.copyWith(color: colorScheme.foreground),
decoration: BoxDecoration(
border: Border.all(color: colorScheme.border),
borderRadius: style.borderRadius,
color: colorScheme.background,
),
),
destructive = FAlertCustomStyle(
padding: const EdgeInsets.fromLTRB(16, 12, 16, 12),
iconColor: colorScheme.destructive,
Expand Down Expand Up @@ -175,10 +175,10 @@ final class FAlertStyles with Diagnosticable {
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is FAlertStyles &&
runtimeType == other.runtimeType &&
primary == other.primary &&
destructive == other.destructive;
other is FAlertStyles &&
runtimeType == other.runtimeType &&
primary == other.primary &&
destructive == other.destructive;

@override
int get hashCode => primary.hashCode ^ destructive.hashCode;
Expand Down
6 changes: 3 additions & 3 deletions forui/lib/src/widgets/icon.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

import 'package:forui/forui.dart';

/// The [FIconStyle] that this [FInheritedIconStyle]'s widget subtree should inherit.
Expand Down Expand Up @@ -127,7 +128,7 @@ abstract class FIcon extends StatelessWidget {
}) = _ImageProviderIcon;

/// Creates a [FIcon] from a [ValueWidgetBuilder].
///
///
/// To access widget-specific data, i.e. [FButtonData] inside a [FButton]:
/// ```dart
/// FButton.icon(
Expand All @@ -139,8 +140,7 @@ abstract class FIcon extends StatelessWidget {
/// },
/// );
/// ```
const factory FIcon.raw({required ValueWidgetBuilder<FIconStyle> builder, Widget? child, Key? key}) =
_BuilderIcon;
const factory FIcon.raw({required ValueWidgetBuilder<FIconStyle> builder, Widget? child, Key? key}) = _BuilderIcon;

const FIcon._({required this.color, this.size, this.semanticLabel, super.key});

Expand Down

0 comments on commit 835a376

Please sign in to comment.