juan 2 months ago
parent
commit
19cde9177b
1 changed files with 5 additions and 8 deletions
  1. 5 8
      lib/api_service.dart

+ 5 - 8
lib/api_service.dart

@@ -41,11 +41,8 @@ class EmailPageState extends State<EmailPage> {
     List<GetThreadResponse> allEmails = []; //all the emails
 
     try {
-      var url = Uri.http(
-          '127.0.0.1:3001', 'sorted_threads_by_date', 
-          {'folder': folder,
-           'limit': '10',
-           'offset': '0'});
+      var url = Uri.http('127.0.0.1:3001', 'sorted_threads_by_date',
+          {'folder': folder, 'limit': '10', 'offset': '0'});
       var response = await http.get(url);
       print(response);
       if (response.statusCode == 200) {
@@ -107,7 +104,7 @@ class EmailPageState extends State<EmailPage> {
 
         if (response.statusCode == 200) {
           content += response.body;
-          content += "<p>new shit</p><br><br><br>";
+          content += "<p>end of mail</p><br><br><br>";
         }
       }
     } catch (e) {
@@ -154,8 +151,8 @@ class EmailPageState extends State<EmailPage> {
       ),
       drawer: Drawer(
         child: FutureBuilder<List<Widget>>(
-          future:
-              getDrawerItems(context), // call the async function to get the future
+          future: getDrawerItems(
+              context), // call the async function to get the future
           builder:
               (BuildContext context, AsyncSnapshot<List<Widget>> snapshot) {
             if (snapshot.connectionState == ConnectionState.waiting) {