Skip to content

Commit c11dfe7

Browse files
reformat the code
1 parent d40c814 commit c11dfe7

File tree

4 files changed

+47
-3
lines changed

4 files changed

+47
-3
lines changed

lib/core/helpers/random_int.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'dart:math';
22

33
class CustomRandom {
4-
static List<int> generateRandomList(int maxNum, int length) {
4+
static List<int> generateList(int maxNum, int length) {
55
if (length > maxNum + 1) length = maxNum;
66

77
List<int> numbers = List<int>.generate(maxNum + 1, (index) => index);

lib/core/widgets/adaptive/text/regular_text.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class RegularText extends _AdaptiveText {
66
super.fontSize = 16,
77
super.decoration = TextDecoration.none,
88
super.fontStyle = FontStyle.normal,
9-
super.color,
9+
super.color = ThemeEnum.focusColor,
1010
super.shadows,
1111
super.maxLines = 2,
1212
super.textAlign,

lib/features/grid/widgets/searcher_grid.dart renamed to lib/features/searching/widgets/searcher_grid.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class _SearcherGridState extends State<_SearcherGrid> with SingleTickerProviderS
6969
@override
7070
Widget build(BuildContext context) {
7171
return Consumer(builder: (context, ref, _) {
72-
final size = ref.watch(gridNotifierProvider.select((it) => it.gridSize));
72+
final size = ref.watch(_gridNotifierProvider.select((it) => it.gridSize));
7373

7474
return AnimatedBuilder(
7575
animation: _controller,
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
part of '../view/sorting_page.dart';
2+
//
3+
// class _MenuButton extends StatelessWidget {
4+
// const _MenuButton();
5+
//
6+
// @override
7+
// Widget build(BuildContext context) {
8+
// return Consumer(
9+
// builder: (context, ref, _) {
10+
// return TextButton(
11+
// onPressed: () {
12+
// CustomAlertDialog(context).solidDialog(
13+
// parameters: [
14+
// ListDialogParameters(
15+
// text: StringsManager.generateMaze,
16+
// onTap: () {},
17+
// ),
18+
// ListDialogParameters(
19+
// text: "Dijkstra",
20+
// onTap: () {},
21+
// ),
22+
// ListDialogParameters(
23+
// text: "BFS",
24+
// onTap: () {},
25+
// ),
26+
// ListDialogParameters(
27+
// text: StringsManager.clearPath,
28+
// color: ThemeEnum.redColor,
29+
// onTap: () {},
30+
// ),
31+
// ListDialogParameters(
32+
// text: StringsManager.clearAll,
33+
// color: ThemeEnum.redColor,
34+
// onTap: () {},
35+
// ),
36+
// ],
37+
// );
38+
// },
39+
// child: const CustomIcon(Icons.menu_rounded),
40+
// );
41+
// },
42+
// );
43+
// }
44+
// }

0 commit comments

Comments
 (0)