File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -50,12 +50,12 @@ class _MainScreenState extends State<MainScreen> {
50
50
children: [
51
51
MainScreenListView (
52
52
cleanList: sort.isDescOrder
53
- ? cleanList
54
- : List . from ( cleanList.reversed) ),
53
+ ? List . from ( cleanList.reversed)
54
+ : cleanList),
55
55
MainScreenFavoriteView (
56
56
cleanList: sort.isDescOrder
57
- ? cleanList
58
- : List . from ( cleanList.reversed) )
57
+ ? List . from ( cleanList.reversed)
58
+ : cleanList)
59
59
],
60
60
),
61
61
bottomNavigationBar: CustomBottomNavigationBar (
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import 'package:shared_preferences/shared_preferences.dart';
5
5
const _sharedPreferenceSortModeKey = "isDescOrder" ;
6
6
7
7
class SortMode extends ChangeNotifier {
8
- bool _isDescOrder = false ;
8
+ bool _isDescOrder = true ;
9
9
10
10
bool get isDescOrder {
11
11
return _isDescOrder;
@@ -26,7 +26,7 @@ class SortMode extends ChangeNotifier {
26
26
27
27
// This type should not be a widget(e.g. Icon) because of mockito support...
28
28
IconData get icon =>
29
- _isDescOrder ? Icons .vertical_align_top : Icons .vertical_align_bottom ;
29
+ _isDescOrder ? Icons .arrow_upward : Icons .arrow_downward ;
30
30
31
31
// This type should not be a widget(e.g. Text) because of mockito support...
32
32
String get text => _isDescOrder ? "오름차순으로" : "내림차순으로" ;
You can’t perform that action at this time.
0 commit comments