Skip to content

Commit 64bc860

Browse files
deep-diverkkweon
andauthored
fix: wrong ordering (#162)
* fix wrong ordering * Update client/lib/sort_preference.dart Co-authored-by: Mo Kweon <[email protected]> Co-authored-by: Mo Kweon <[email protected]>
1 parent 16d7614 commit 64bc860

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

client/lib/screens/main_screen.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ class _MainScreenState extends State<MainScreen> {
5050
children: [
5151
MainScreenListView(
5252
cleanList: sort.isDescOrder
53-
? cleanList
54-
: List.from(cleanList.reversed)),
53+
? List.from(cleanList.reversed)
54+
: cleanList),
5555
MainScreenFavoriteView(
5656
cleanList: sort.isDescOrder
57-
? cleanList
58-
: List.from(cleanList.reversed))
57+
? List.from(cleanList.reversed)
58+
: cleanList)
5959
],
6060
),
6161
bottomNavigationBar: CustomBottomNavigationBar(

client/lib/sort_preference.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'package:shared_preferences/shared_preferences.dart';
55
const _sharedPreferenceSortModeKey = "isDescOrder";
66

77
class SortMode extends ChangeNotifier {
8-
bool _isDescOrder = false;
8+
bool _isDescOrder = true;
99

1010
bool get isDescOrder {
1111
return _isDescOrder;
@@ -26,7 +26,7 @@ class SortMode extends ChangeNotifier {
2626

2727
// This type should not be a widget(e.g. Icon) because of mockito support...
2828
IconData get icon =>
29-
_isDescOrder ? Icons.vertical_align_top : Icons.vertical_align_bottom;
29+
_isDescOrder ? Icons.arrow_upward : Icons.arrow_downward;
3030

3131
// This type should not be a widget(e.g. Text) because of mockito support...
3232
String get text => _isDescOrder ? "오름차순으로" : "내림차순으로";

0 commit comments

Comments
 (0)