Skip to content

Commit 7a218ae

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

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

lib/features/sorting/quick/view/quick_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) => QuickSortNotifier(),
1010
);
1111

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

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

lib/features/sorting/radix/view/radix_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) => RadixSortNotifier(),
1010
);
1111

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

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

0 commit comments

Comments
 (0)