Skip to content

Commit 19c5d14

Browse files
reformat the code
1 parent 46374dd commit 19c5d14

File tree

4 files changed

+8
-14
lines changed

4 files changed

+8
-14
lines changed

lib/core/helpers/random_int.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ class CustomRandom {
1010

1111
return numbers.sublist(0, length);
1212
}
13-
}
13+
}

lib/core/widgets/custom_widgets/rounded_outlined_button.dart

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,17 @@ class RoundedOutlinedButton extends StatelessWidget {
2323
@override
2424
Widget build(BuildContext context) {
2525
final backgroundColor = this.backgroundColor;
26-
final background =
27-
backgroundColor == null ? null : context.getColor(backgroundColor);
26+
final background = backgroundColor == null ? null : context.getColor(backgroundColor);
2827

2928
return OutlinedButton(
3029
style: OutlinedButton.styleFrom(
31-
backgroundColor:
32-
backgroundColor == null ? null : context.getColor(backgroundColor),
33-
fixedSize: size == OutlineEnumFixedSize.small
34-
? Size.fromHeight(smallRounded ? 30.h : 35.h)
35-
: null,
30+
backgroundColor: backgroundColor == null ? null : context.getColor(backgroundColor),
31+
fixedSize: size == OutlineEnumFixedSize.small ? Size.fromHeight(smallRounded ? 30.h : 35.h) : null,
3632
padding: REdgeInsets.symmetric(horizontal: 15),
3733
surfaceTintColor: background,
3834
foregroundColor: context.getColor(ThemeEnum.hintColor),
3935
side: BorderSide(color: context.getColor(borderColor), width: 1.5.r),
40-
shape: RoundedRectangleBorder(
41-
borderRadius: BorderRadius.circular(smallRounded ? 5 : 50)),
36+
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(smallRounded ? 5 : 50)),
4237
),
4338
onPressed: onPressed,
4439
child: child,

lib/core/widgets/custom_widgets/scale_transition.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ class CustomScaleTransition extends StatefulWidget {
1212
State<CustomScaleTransition> createState() => _CustomScaleTransitionState();
1313
}
1414

15-
class _CustomScaleTransitionState extends State<CustomScaleTransition>
16-
with TickerProviderStateMixin {
15+
class _CustomScaleTransitionState extends State<CustomScaleTransition> with TickerProviderStateMixin {
1716
bool remove = false;
1817

1918
@override

lib/features/sorting/selection/view/selection_sort_page.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import 'package:flutter/material.dart';
66
import 'package:flutter_riverpod/flutter_riverpod.dart';
77

88
final _notifierProvider = StateNotifierProvider<SortingNotifier, SortingNotifierState>(
9-
(ref) => SelectionSortNotifier(),
9+
(ref) => SelectionSortNotifier(),
1010
);
1111

1212
class SelectionSortPage extends StatelessWidget {
1313
const SelectionSortPage({super.key});
1414

1515
@override
1616
Widget build(BuildContext context) {
17-
return SortingPage(instance: _notifierProvider,title: StringsManager.selectionSort);
17+
return SortingPage(instance: _notifierProvider, title: StringsManager.selectionSort);
1818
}
1919
}

0 commit comments

Comments
 (0)