|
@@ -41,11 +41,8 @@ class EmailPageState extends State<EmailPage> {
|
|
List<GetThreadResponse> allEmails = []; //all the emails
|
|
List<GetThreadResponse> allEmails = []; //all the emails
|
|
|
|
|
|
try {
|
|
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);
|
|
var response = await http.get(url);
|
|
print(response);
|
|
print(response);
|
|
if (response.statusCode == 200) {
|
|
if (response.statusCode == 200) {
|
|
@@ -107,7 +104,7 @@ class EmailPageState extends State<EmailPage> {
|
|
|
|
|
|
if (response.statusCode == 200) {
|
|
if (response.statusCode == 200) {
|
|
content += response.body;
|
|
content += response.body;
|
|
- content += "<p>new shit</p><br><br><br>";
|
|
|
|
|
|
+ content += "<p>end of mail</p><br><br><br>";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} catch (e) {
|
|
} catch (e) {
|
|
@@ -154,8 +151,8 @@ class EmailPageState extends State<EmailPage> {
|
|
),
|
|
),
|
|
drawer: Drawer(
|
|
drawer: Drawer(
|
|
child: FutureBuilder<List<Widget>>(
|
|
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:
|
|
builder:
|
|
(BuildContext context, AsyncSnapshot<List<Widget>> snapshot) {
|
|
(BuildContext context, AsyncSnapshot<List<Widget>> snapshot) {
|
|
if (snapshot.connectionState == ConnectionState.waiting) {
|
|
if (snapshot.connectionState == ConnectionState.waiting) {
|