This commit is contained in:
Juan Marulanda De Los Rios 2024-09-30 10:56:42 -04:00
parent aaaacade4d
commit 19cde9177b

View File

@ -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) {