Skip to content

Commit a562d54

Browse files
convert StatefulWidget to StatelessWidget
1 parent 726bc3e commit a562d54

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

lib/features/sorting/counting/view/counting_sort_page.dart

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

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

15-
@override
16-
State<CountingSortPage> createState() => _CountingSortPageState();
17-
}
18-
19-
class _CountingSortPageState extends State<CountingSortPage> {
20-
2115
@override
2216
Widget build(BuildContext context) {
2317
return SortingPage(instance: _notifierProvider, title: StringsManager.countingSort);

lib/features/sorting/heap/view/heap_sort_page.dart

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

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

15-
@override
16-
State<HeapSortPage> createState() => _HeapSortPageState();
17-
}
18-
19-
class _HeapSortPageState extends State<HeapSortPage> {
20-
2115
@override
2216
Widget build(BuildContext context) {
2317
return SortingPage(instance: _notifierProvider, title: StringsManager.heapSort);

0 commit comments

Comments
 (0)