Skip to content

Commit

Permalink
style: reformat codes with dart reformat command
Browse files Browse the repository at this point in the history
  • Loading branch information
PouriaMoradi021 committed Jan 30, 2025
1 parent da40084 commit c9e05f5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
28 changes: 15 additions & 13 deletions lib/src/core/common/widgets/custom_filled_button.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:gui/src/core/common/colors/app_colors.dart';
import 'package:gui/src/features/main/language/core/localization_extension.dart';
import 'package:pactus_gui_widgetbook/app_styles.dart';

/// ## [CustomFilledButton] Class Documentation
///
/// The `CustomFilledButton` class represents a custom styled filled button
Expand Down Expand Up @@ -54,7 +55,6 @@ import 'package:pactus_gui_widgetbook/app_styles.dart';
/// specific padding, background color, and rounded shape.
class CustomFilledButton extends StatelessWidget {

const CustomFilledButton({
super.key,
required this.text,
Expand All @@ -79,20 +79,22 @@ class CustomFilledButton extends StatelessWidget {
onPressed: onPressed,
autofocus: autofocus,
focusNode: focusNode,
style: style ?? ButtonStyle(
padding: WidgetStateProperty.all<EdgeInsetsDirectional?>(
const EdgeInsetsDirectional.symmetric(horizontal: 24, vertical: 4),
),
backgroundColor: WidgetStateProperty.all(const Color(0xFF0066B4)),
shape: WidgetStateProperty.all(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4),
style: style ??
ButtonStyle(
padding: WidgetStateProperty.all<EdgeInsetsDirectional?>(
const EdgeInsetsDirectional.symmetric(
horizontal: 24, vertical: 4,),
),
backgroundColor: WidgetStateProperty.all(const Color(0xFF0066B4)),
shape: WidgetStateProperty.all(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4),
),
),
),
),
),
child: Padding(
padding: padding ??
const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
padding:
padding ?? const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import 'package:gui/src/core/utils/assets/assets.gen.dart';
import 'package:gui/src/core/utils/gen/localization/locale_keys.dart';
import 'package:gui/src/features/main/language/core/localization_extension.dart';
import 'package:pactus_gui_widgetbook/app_styles.dart';

/// ### [WelcomeScreen] Widget Documentation
///
/// The `WelcomeScreen` is a stateless widget that serves as the introductory
Expand Down Expand Up @@ -77,7 +78,8 @@ class WelcomeScreen extends StatelessWidget {
style: InterTextStyles.smallRegular.copyWith(
color: AppColors.primaryDark,
),
softWrap: true,textAlign: TextAlign.center,
softWrap: true,
textAlign: TextAlign.center,
),
const Gap(16),
CustomFilledButton(
Expand Down

0 comments on commit c9e05f5

Please sign in to comment.