umgc / fall2022

SWEN 670 Fall 2022 cohort
Creative Commons Zero v1.0 Universal
4 stars 3 forks source link

Feature/407 #545

Closed sHuber125 closed 2 years ago

sHuber125 commented 2 years ago

I got the mail piece indiv UI to fetch an email based off the mailPiece, and then replace the default picture with one from the target email. Replace default mailPiece value in mail_view.dart with a target mailpiece in your informed delivery, and verify it also works for you.

sHuber125 commented 2 years ago

I did another push this evening on this same PR. I worked thru a lot of iterations of seeing what would work. I'm not sure grabbing the Html out of the email will work that well...there might be a way to do it, but it doesn't seem easy. For example, you need to get the link to launch in the browser, and the only thing I could find online was using a UrlLauncher widget that isn't going to work with the embedded Html. I was able to successfully get the USPS's mailPieceId out of the html and use that to get the link for the reminder and learn more. I was able to fix the UrlLauncer links to work, so they seem to launch the browser. I also made it so when there is not a "Learn More" that link/button is hidden. Also, I would think a circularProgressIndicator while the image is loading would be nice, but I couldn't seem to find a way to get that work and didn't want to waste any more time trying to figure it out before posting this.