added email components p2
This commit is contained in:
		
							parent
							
								
									2fdd0a4d66
								
							
						
					
					
						commit
						1fd4689844
					
				
					 1 changed files with 29 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -15,6 +15,12 @@ class MailAddress {
 | 
			
		|||
      address: json['address'],
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  String toString() {
 | 
			
		||||
    // TODO: implement toString
 | 
			
		||||
    return '${name} <${address}>';
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
class SerializableMessage {
 | 
			
		||||
| 
						 | 
				
			
			@ -408,6 +414,7 @@ class _EmailViewState extends State<EmailView> {
 | 
			
		|||
          //     widget.from ,),
 | 
			
		||||
          // ),
 | 
			
		||||
          Row(
 | 
			
		||||
            // title of email
 | 
			
		||||
            children: [
 | 
			
		||||
                Text(
 | 
			
		||||
                widget.subject,
 | 
			
		||||
| 
						 | 
				
			
			@ -415,6 +422,28 @@ class _EmailViewState extends State<EmailView> {
 | 
			
		|||
                ),
 | 
			
		||||
            ],
 | 
			
		||||
          ),
 | 
			
		||||
          Row(
 | 
			
		||||
            children: [
 | 
			
		||||
              Text(
 | 
			
		||||
                widget.name,
 | 
			
		||||
                style: TextStyle(fontSize: 18),
 | 
			
		||||
              ),
 | 
			
		||||
              Text(
 | 
			
		||||
                '<${widget.from}>',
 | 
			
		||||
                style: TextStyle(fontSize: 18),
 | 
			
		||||
              ),
 | 
			
		||||
            ],
 | 
			
		||||
          ),
 | 
			
		||||
          // TODO: make a case where if one of these is the user's email it just says me :)))))
 | 
			
		||||
          Row(
 | 
			
		||||
            children: [
 | 
			
		||||
              Text(
 | 
			
		||||
                'to ${widget.to.toString()}',
 | 
			
		||||
                style: TextStyle(fontSize: 15),
 | 
			
		||||
              )
 | 
			
		||||
            ],
 | 
			
		||||
          ),
 | 
			
		||||
 | 
			
		||||
          Expanded(
 | 
			
		||||
            child: HtmlElementView(
 | 
			
		||||
              key: iframeKey,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue