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 Aug 19, 2024
1 parent 21df995 commit 171838e
Show file tree
Hide file tree
Showing 22 changed files with 76 additions and 60 deletions.
15 changes: 8 additions & 7 deletions forui/lib/src/widgets/alert/alert.dart
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,14 @@ final class FAlertCustomStyle extends FAlertStyle with Diagnosticable {
FAlertIconStyle? icon,
TextStyle? titleTextStyle,
TextStyle? subtitleTextStyle,
}) => FAlertCustomStyle(
decoration: decoration ?? this.decoration,
padding: padding ?? this.padding,
icon: icon ?? this.icon,
titleTextStyle: titleTextStyle ?? this.titleTextStyle,
subtitleTextStyle: subtitleTextStyle ?? this.subtitleTextStyle,
);
}) =>
FAlertCustomStyle(
decoration: decoration ?? this.decoration,
padding: padding ?? this.padding,
icon: icon ?? this.icon,
titleTextStyle: titleTextStyle ?? this.titleTextStyle,
subtitleTextStyle: subtitleTextStyle ?? this.subtitleTextStyle,
);

@override
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
Expand Down
4 changes: 3 additions & 1 deletion forui/lib/src/widgets/alert/alert_icon.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';

import 'package:meta/meta.dart';

import 'package:forui/forui.dart';
import 'package:forui/src/widgets/alert/alert.dart';
import 'package:meta/meta.dart';

/// A [FAlert]'s icon.
class FAlertIcon extends StatelessWidget {
Expand Down
5 changes: 3 additions & 2 deletions forui/lib/src/widgets/alert/alert_styles.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@

import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'package:forui/forui.dart';

import 'package:meta/meta.dart';

import 'package:forui/forui.dart';

/// [FAlertCustomStyle]'s style.
final class FAlertStyles with Diagnosticable {
/// The primary alert style.
Expand Down
2 changes: 1 addition & 1 deletion forui/lib/src/widgets/avatar/avatar.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'package:forui/src/widgets/avatar/avatar_content.dart';

import 'package:meta/meta.dart';

import 'package:forui/forui.dart';
import 'package:forui/src/widgets/avatar/avatar_content.dart';

/// An image element with a fallback for representing the user.
///
Expand Down
4 changes: 3 additions & 1 deletion forui/lib/src/widgets/avatar/avatar_content.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'package:forui/forui.dart';

import 'package:meta/meta.dart';

import 'package:forui/forui.dart';

@internal
final class Content extends StatelessWidget {
final FAvatarStyle? style;
Expand Down
2 changes: 1 addition & 1 deletion forui/lib/src/widgets/badge/badge.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'package:forui/src/widgets/badge/badge_content.dart';

import 'package:meta/meta.dart';

import 'package:forui/forui.dart';
import 'package:forui/src/widgets/badge/badge_content.dart';

/// A badge. Badges are typically used to draw attention to specific information, such as labels and counts.
///
Expand Down
4 changes: 3 additions & 1 deletion forui/lib/src/widgets/badge/badge_content.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'package:forui/forui.dart';

import 'package:meta/meta.dart';

import 'package:forui/forui.dart';

@internal
final class Content extends StatelessWidget {
final FBadgeCustomStyle style;
Expand Down
4 changes: 3 additions & 1 deletion forui/lib/src/widgets/badge/badge_styles.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/rendering.dart';
import 'package:forui/forui.dart';

import 'package:meta/meta.dart';

import 'package:forui/forui.dart';

/// The [FBadgeCustomStyle]s.
final class FBadgeStyles with Diagnosticable {
/// The primary badge style.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ class FBottomNavigationBarData extends InheritedWidget {

/// The item's style.
final FBottomNavigationBarItemStyle itemStyle;

/// Whether the item is currently selected.
final bool selected;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'package:forui/forui.dart';

import 'package:meta/meta.dart';

import 'package:forui/forui.dart';

/// A [FBottomNavigationBar] item.
class FBottomNavigationBarItem extends StatelessWidget {
/// The style.
Expand Down
1 change: 0 additions & 1 deletion forui/lib/src/widgets/button/button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import 'package:meta/meta.dart';

import 'package:forui/forui.dart';
import 'package:forui/src/foundation/tappable.dart';

import 'package:forui/src/widgets/button/button_content.dart';

/// A button.
Expand Down
6 changes: 4 additions & 2 deletions forui/lib/src/widgets/button/button_content.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'package:forui/forui.dart';

import 'package:meta/meta.dart';
import 'package:sugar/sugar.dart';

import 'package:forui/forui.dart';

@internal
class Content extends StatelessWidget {
final Widget? prefix;
Expand Down Expand Up @@ -154,7 +156,7 @@ final class FButtonIconContentStyle with Diagnosticable {
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is FButtonIconContentStyle && runtimeType == other.runtimeType && padding == other.padding;
other is FButtonIconContentStyle && runtimeType == other.runtimeType && padding == other.padding;

@override
int get hashCode => padding.hashCode;
Expand Down
4 changes: 3 additions & 1 deletion forui/lib/src/widgets/button/button_icon.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'package:forui/forui.dart';

import 'package:meta/meta.dart';

import 'package:forui/forui.dart';

/// A [FButton]'s icon.
class FButtonIcon extends StatelessWidget {
/// The icon.
Expand Down
6 changes: 3 additions & 3 deletions forui/lib/src/widgets/button/button_styles.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@


import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'package:forui/forui.dart';

import 'package:meta/meta.dart';

import 'package:forui/forui.dart';

/// [FButtonCustomStyle]'s style.
final class FButtonStyles with Diagnosticable {
/// The primary button style.
Expand Down
56 changes: 28 additions & 28 deletions forui/lib/src/widgets/calendar/shared/header.dart
Original file line number Diff line number Diff line change
Expand Up @@ -129,39 +129,39 @@ class Navigation extends StatelessWidget {

@override
Widget build(BuildContext context) => Padding(
padding: const EdgeInsets.only(bottom: 5),
child: SizedBox(
height: Header.height,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Padding(
padding: const EdgeInsets.only(left: 7),
child: FButton.icon(
style: style.buttonStyle,
onPress: onPrevious,
child: FAssets.icons.chevronLeft(
height: 17,
colorFilter: ColorFilter.mode(style.iconColor, BlendMode.srcIn),
padding: const EdgeInsets.only(bottom: 5),
child: SizedBox(
height: Header.height,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Padding(
padding: const EdgeInsets.only(left: 7),
child: FButton.icon(
style: style.buttonStyle,
onPress: onPrevious,
child: FAssets.icons.chevronLeft(
height: 17,
colorFilter: ColorFilter.mode(style.iconColor, BlendMode.srcIn),
),
),
),
),
const Expanded(child: SizedBox()),
Padding(
padding: const EdgeInsets.only(right: 7),
child: FButton.icon(
style: style.buttonStyle,
onPress: onNext,
child: FAssets.icons.chevronRight(
height: 17,
colorFilter: ColorFilter.mode(style.iconColor, BlendMode.srcIn),
const Expanded(child: SizedBox()),
Padding(
padding: const EdgeInsets.only(right: 7),
child: FButton.icon(
style: style.buttonStyle,
onPress: onNext,
child: FAssets.icons.chevronRight(
height: 17,
colorFilter: ColorFilter.mode(style.iconColor, BlendMode.srcIn),
),
),
),
),
],
],
),
),
),
);
);

@override
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
Expand Down
1 change: 0 additions & 1 deletion forui/lib/src/widgets/card/card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import 'package:flutter/widgets.dart';
import 'package:meta/meta.dart';

import 'package:forui/forui.dart';

import 'package:forui/src/widgets/card/card_content.dart';

/// A card.
Expand Down
6 changes: 3 additions & 3 deletions forui/lib/src/widgets/card/card_content.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@


import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';

import 'package:meta/meta.dart';

import 'package:forui/forui.dart';
import 'package:forui/src/foundation/util.dart';
import 'package:meta/meta.dart';

@internal
class Content extends StatelessWidget {
Expand Down
2 changes: 1 addition & 1 deletion forui/lib/src/widgets/dialog/dialog.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/semantics.dart';
import 'package:forui/src/widgets/dialog/dialog_content.dart';

import 'package:meta/meta.dart';

import 'package:forui/forui.dart';
import 'package:forui/src/widgets/dialog/dialog_content.dart';

/// A modal dialog.
///
Expand Down
4 changes: 3 additions & 1 deletion forui/lib/src/widgets/dialog/dialog_content.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'package:forui/forui.dart';

import 'package:meta/meta.dart';
import 'package:sugar/sugar.dart';

import 'package:forui/forui.dart';

@internal
sealed class Content extends StatelessWidget {
final FDialogContentStyle style;
Expand Down
1 change: 0 additions & 1 deletion forui/lib/src/widgets/resizable/resizable_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import 'package:flutter/widgets.dart';
import 'package:sugar/collection_aggregate.dart';

import 'package:forui/forui.dart';
import 'package:forui/src/widgets/resizable/resizable.dart';
import 'package:forui/src/widgets/resizable/resizable_region_data.dart';

/// A controller that manages the resizing of regions in a [FResizable].
Expand Down
2 changes: 1 addition & 1 deletion forui/lib/src/widgets/resizable/resizable_region.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'package:forui/forui.dart';

import 'package:forui/forui.dart';
import 'package:forui/src/widgets/resizable/resizable.dart';

/// A resizable region that can be resized along the parent [FResizable]'s axis. It should always be in a [FResizable].
Expand Down
2 changes: 1 addition & 1 deletion forui/lib/widgets/resizable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ export '../src/widgets/resizable/resizable.dart' hide InheritedData;
export '../src/widgets/resizable/divider.dart' hide Divider, HorizontalDivider, VerticalDivider;
export '../src/widgets/resizable/resizable_controller.dart';
export '../src/widgets/resizable/resizable_region.dart';
export '../src/widgets/resizable/resizable_region_data.dart' hide UpdatableResizableRegionData;
export '../src/widgets/resizable/resizable_region_data.dart' hide UpdatableResizableRegionData;

0 comments on commit 171838e

Please sign in to comment.