Skip to content

Commit bd3d5f3

Browse files
convert StatefulWidget to StatelessWidget
1 parent 7a218ae commit bd3d5f3

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,9 @@ final _notifierProvider = StateNotifierProvider<SortingNotifier, SortingNotifier
99
(ref) => SelectionSortNotifier(),
1010
);
1111

12-
class SelectionSortPage extends StatefulWidget {
12+
class SelectionSortPage extends StatelessWidget {
1313
const SelectionSortPage({super.key});
1414

15-
@override
16-
State<SelectionSortPage> createState() => _SelectionSortPageState();
17-
}
18-
19-
class _SelectionSortPageState extends State<SelectionSortPage> {
2015
@override
2116
Widget build(BuildContext context) {
2217
return SortingPage(instance: _notifierProvider,title: StringsManager.selectionSort);

lib/features/sorting/shell/view/shell_sort_page.dart

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,9 @@ final _notifierProvider = StateNotifierProvider<SortingNotifier, SortingNotifier
99
(ref) => ShellSortNotifier(),
1010
);
1111

12-
class ShellSortPage extends StatefulWidget {
12+
class ShellSortPage extends StatelessWidget {
1313
const ShellSortPage({super.key});
1414

15-
@override
16-
State<ShellSortPage> createState() => _ShellSortPageState();
17-
}
18-
19-
class _ShellSortPageState extends State<ShellSortPage> {
2015
@override
2116
Widget build(BuildContext context) {
2217
return SortingPage(instance: _notifierProvider, title: StringsManager.shellSort);

0 commit comments

Comments
 (0)