Skip to content

Commit

Permalink
style: reformat code with dart reformat command
Browse files Browse the repository at this point in the history
  • Loading branch information
PouriaMoradi021 committed Jan 17, 2025
1 parent 05368fa commit 2de268f
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 8 deletions.
1 change: 1 addition & 0 deletions lib/src/core/theme/app_theme_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'package:fluent_ui/fluent_ui.dart';
import 'package:pactus_gui_widgetbook/src/core/pallets/on_surface_pallet.dart';
import 'package:pactus_gui_widgetbook/src/core/pallets/surface_pallet.dart';
import 'package:pactus_gui_widgetbook/src/core/text_styles/inter_text_styles.dart';

/// ## [AppThemeData] Class Documentation
///
/// The `AppThemeData` class defines the theme settings for the application,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'package:fluent_ui/fluent_ui.dart';
import 'package:pactus_gui_widgetbook/app_styles.dart';
import 'package:pactus_gui_widgetbook/src/core/enum/request_state_enum.dart';
import 'package:pactus_gui_widgetbook/src/features/widgets/buttons/core/common/widgets/adaptive_button_content_widget.dart';

/// ## [AdaptivePrimaryButton] Class Documentation
///
/// The AdaptivePrimaryButton class is a reusable widget for creating
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:pactus_gui_widgetbook/src/core/enum/request_state_enum.dart';
import 'package:pactus_gui_widgetbook/src/features/widgets/buttons/adaptive_primary_button/adaptive_primary_button.dart';
import 'package:widgetbook/widgetbook.dart';
import 'package:widgetbook_annotation/widgetbook_annotation.dart';

/// ## [adaptivePrimaryButtonUseCase] Function Documentation
///
/// The `adaptivePrimaryButtonUseCase` function is a Widgetbook
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:pactus_gui_widgetbook/app_styles.dart';
import 'package:pactus_gui_widgetbook/src/core/enum/request_state_enum.dart';
import 'package:pactus_gui_widgetbook/src/core/pallets/colors/app_colors.dart';
import 'package:pactus_gui_widgetbook/src/features/widgets/buttons/core/common/widgets/adaptive_button_content_widget.dart';

/// ## [AdaptiveSecondaryButton] Class Documentation
///
/// The `AdaptiveSecondaryButton` class is a customizable widget designed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:pactus_gui_widgetbook/src/core/enum/request_state_enum.dart';
import 'package:pactus_gui_widgetbook/src/features/widgets/buttons/adaptive_secondary_button/adaptive_secondary_button.dart';
import 'package:widgetbook/widgetbook.dart';
import 'package:widgetbook_annotation/widgetbook_annotation.dart';

/// ## [adaptiveSecondaryButtonUseCase] Function Documentation
///
/// The `adaptiveSecondaryButtonUseCase` function demonstrates the
Expand Down Expand Up @@ -34,7 +35,6 @@ import 'package:widgetbook_annotation/widgetbook_annotation.dart';
/// - Toggles the enabled/disabled state of the button.
/// - Default: `false`.

@UseCase(
name: 'Adaptive Secondary Button with Knobs', type: AdaptiveSecondaryButton)
Widget adaptiveSecondaryButtonUseCase(BuildContext context) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:fluent_ui/fluent_ui.dart';
import 'package:pactus_gui_widgetbook/app_styles.dart';
import 'package:pactus_gui_widgetbook/src/core/enum/request_state_enum.dart';

/// ## [AdaptiveButtonContentWidget] Class Documentation
///
/// The `AdaptiveButtonContentWidget` is a stateless widget responsible for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ void main() {
);
}

testWidgets('renders correctly and is clickable when loaded', (WidgetTester tester) async {
testWidgets('renders correctly and is clickable when loaded',
(WidgetTester tester) async {
const testTitle = 'Test Button';
final themeWithAccent = AppThemeData.lightTheme(const Color(0xFF0A4D7E));

Expand All @@ -60,7 +61,8 @@ void main() {
expect(wasPressed, isTrue);
});

testWidgets('renders correctly and is disabled when loading', (WidgetTester tester) async {
testWidgets('renders correctly and is disabled when loading',
(WidgetTester tester) async {
const testTitle = 'Loading Button';
final themeWithAccent = AppThemeData.lightTheme(const Color(0xFF0A4D7E));

Expand All @@ -85,8 +87,8 @@ void main() {
expect(wasPressed, isFalse);
});


testWidgets('renders correctly with dark theme', (WidgetTester tester) async {
testWidgets('renders correctly with dark theme',
(WidgetTester tester) async {
const testTitle = 'Dark Theme Button';
final themeWithAccent = AppThemeData.darkTheme(const Color(0xFF0F6CBD));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ void main() {
);
}

testWidgets('renders correctly and is clickable when loaded', (WidgetTester tester) async {
testWidgets('renders correctly and is clickable when loaded',
(WidgetTester tester) async {
const testTitle = 'Test Button';
final themeWithAccent = AppThemeData.lightTheme(const Color(0xFF0A4D7E));

Expand All @@ -60,7 +61,8 @@ void main() {
expect(wasPressed, isTrue);
});

testWidgets('renders correctly and is disabled when loading', (WidgetTester tester) async {
testWidgets('renders correctly and is disabled when loading',
(WidgetTester tester) async {
const testTitle = 'Loading Button';
final themeWithAccent = AppThemeData.lightTheme(const Color(0xFF0A4D7E));

Expand All @@ -85,7 +87,8 @@ void main() {
expect(wasPressed, isFalse);
});

testWidgets('renders correctly with dark theme', (WidgetTester tester) async {
testWidgets('renders correctly with dark theme',
(WidgetTester tester) async {
const testTitle = 'Dark Theme Button';
final themeWithAccent = AppThemeData.darkTheme(const Color(0xFF0F6CBD));

Expand Down

0 comments on commit 2de268f

Please sign in to comment.