make the default the reversed
This commit is contained in:
		
							parent
							
								
									2ce8af1608
								
							
						
					
					
						commit
						dea8f03fe1
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -199,6 +199,7 @@ class _EmailListScreenState extends State<EmailListScreen>
 | 
				
			||||||
                  _thisInstance.draftID = email;
 | 
					                  _thisInstance.draftID = email;
 | 
				
			||||||
                  _thisInstance.showPersistentWidget(context);
 | 
					                  _thisInstance.showPersistentWidget(context);
 | 
				
			||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
 | 
					                  // print(email)
 | 
				
			||||||
                  Navigator.push(
 | 
					                  Navigator.push(
 | 
				
			||||||
                    context,
 | 
					                    context,
 | 
				
			||||||
                    MaterialPageRoute(
 | 
					                    MaterialPageRoute(
 | 
				
			||||||
| 
						 | 
					@ -296,7 +297,7 @@ class EmailPageState extends State<EmailPage> {
 | 
				
			||||||
  void _fetchEmails() async {
 | 
					  void _fetchEmails() async {
 | 
				
			||||||
    try {
 | 
					    try {
 | 
				
			||||||
      List<GetThreadResponse> fetchedEmails = await apiService
 | 
					      List<GetThreadResponse> fetchedEmails = await apiService
 | 
				
			||||||
          .fetchEmailsFromFolder(widget.selectedFolder, widget.offset);
 | 
					          .fetchEmailsFromFolderReversed(widget.selectedFolder, widget.offset);
 | 
				
			||||||
      if (!mounted) return;
 | 
					      if (!mounted) return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      setState(() {
 | 
					      setState(() {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue