Skip to content

Commit

Permalink
refactor: Dart code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
enrique-lozano committed Apr 30, 2024
1 parent a3c7302 commit ed6a5ce
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 16 deletions.
2 changes: 0 additions & 2 deletions lib/app/stats/widgets/finance_health_details.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ class FinanceHealthDetails extends StatefulWidget {
}

class _FinanceHealthDetailsState extends State<FinanceHealthDetails> {
List<bool> _isOpen = [false, false];

Widget buildExpansionPanel({
required FinanceHealthAttrScore attrScore,
required int index,
Expand Down
2 changes: 2 additions & 0 deletions lib/app/transactions/recurrent_transactions_page.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// ignore_for_file: unnecessary_brace_in_string_interps

import 'package:collection/collection.dart';
import 'package:flutter/material.dart';
import 'package:monekin/app/transactions/widgets/transaction_list.dart';
Expand Down
4 changes: 2 additions & 2 deletions lib/core/presentation/animations/shake/shake_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class ShakeWidget extends StatefulWidget {
required this.duration,
required this.shakeCount,
required this.shakeOffset,
Key? key,
}) : super(key: key);
super.key,
});

final Widget child;
final double shakeOffset;
Expand Down
15 changes: 6 additions & 9 deletions lib/core/presentation/responsive/responsive_row_column.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class ResponsiveRowColumn extends StatelessWidget {

/// The [ResponsiveRowColumn] constructor
const ResponsiveRowColumn(
{Key? key,
{super.key,
this.children = const [],
required this.direction,
this.rowMainAxisAlignment = MainAxisAlignment.start,
Expand All @@ -71,12 +71,11 @@ class ResponsiveRowColumn extends StatelessWidget {
this.rowSpacing,
this.columnSpacing,
this.rowPadding = EdgeInsets.zero,
this.columnPadding = EdgeInsets.zero})
: super(key: key);
this.columnPadding = EdgeInsets.zero});

/// Create a [ResponsiveRowColumn] with the same padding and space between children for row and column mode
const ResponsiveRowColumn.withSymetricSpacing(
{Key? key,
{super.key,
this.children = const [],
required this.direction,
this.rowMainAxisAlignment = MainAxisAlignment.start,
Expand All @@ -96,8 +95,7 @@ class ResponsiveRowColumn extends StatelessWidget {
: rowPadding = padding,
columnPadding = padding,
rowSpacing = spacing,
columnSpacing = spacing,
super(key: key);
columnSpacing = spacing;

@override
Widget build(BuildContext context) {
Expand Down Expand Up @@ -196,7 +194,7 @@ class ResponsiveRowColumnItem extends StatelessWidget {

/// Build a `SizedBox` inside the responsive row/column layout. The [space] define the height of the `SizedBox` in Column mode and the width in row mode
ResponsiveRowColumnItem.spacer(double space,
{Key? key,
{super.key,
this.rowOrder = 1073741823,
this.columnOrder = 1073741823,
this.rowColumn = true,
Expand All @@ -205,8 +203,7 @@ class ResponsiveRowColumnItem extends StatelessWidget {
this.rowFit,
this.columnFit})
: child = SizedBox(
height: rowColumn ? space : null, width: !rowColumn ? space : null),
super(key: key);
height: rowColumn ? space : null, width: !rowColumn ? space : null);

@override
Widget build(BuildContext context) {
Expand Down
5 changes: 2 additions & 3 deletions lib/core/presentation/widgets/skeleton.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ import 'package:flutter/material.dart';

class Skeleton extends StatelessWidget {
const Skeleton(
{Key? key,
{super.key,
required this.width,
required this.height,
this.applyMarging = true})
: super(key: key);
this.applyMarging = true});

final double width, height;
final bool applyMarging;
Expand Down

0 comments on commit ed6a5ce

Please sign in to comment.