made it better looking, the text bar
This commit is contained in:
		
							parent
							
								
									d58d9bdf83
								
							
						
					
					
						commit
						b200b1e443
					
				
					 1 changed files with 41 additions and 33 deletions
				
			
		| 
						 | 
					@ -7,42 +7,50 @@ class AttachmentWidget extends StatelessWidget {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  @override
 | 
					  @override
 | 
				
			||||||
  Widget build(BuildContext context) {
 | 
					  Widget build(BuildContext context) {
 | 
				
			||||||
    return Stack(
 | 
					    return Container(
 | 
				
			||||||
      // appBar: AppBar(title: Text('New Tab Content')),
 | 
					      color: Colors.black38,
 | 
				
			||||||
      children: [
 | 
					      child: Stack(
 | 
				
			||||||
        Padding(
 | 
					        // appBar: AppBar(title: Text('New Tab Content')),
 | 
				
			||||||
          padding: EdgeInsets.fromLTRB(10, 20, 0, 0),
 | 
					        children: <Widget> [
 | 
				
			||||||
          child: Row(
 | 
					          
 | 
				
			||||||
            children: [
 | 
					          Container(
 | 
				
			||||||
              CloseButton(
 | 
					            color: Colors.white,
 | 
				
			||||||
                onPressed: () => {  
 | 
					            child: Padding(
 | 
				
			||||||
                  Navigator.pop(context)
 | 
					              padding: EdgeInsets.fromLTRB(10, 20, 0, 10),
 | 
				
			||||||
                }
 | 
					              child: Row(
 | 
				
			||||||
 | 
					            
 | 
				
			||||||
 | 
					                children: [
 | 
				
			||||||
 | 
					                  CloseButton(
 | 
				
			||||||
 | 
					                    onPressed: () => {  
 | 
				
			||||||
 | 
					                      Navigator.pop(context)
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                  ),
 | 
				
			||||||
 | 
					                  Text(
 | 
				
			||||||
 | 
					                    attachment.name.toString(), //its alr a string but incase ¯\(ツ)/¯
 | 
				
			||||||
 | 
					                    style: TextStyle(
 | 
				
			||||||
 | 
					                      color: Colors.black,
 | 
				
			||||||
 | 
					                      fontSize: 20,
 | 
				
			||||||
 | 
					                      decoration: TextDecoration.none  
 | 
				
			||||||
 | 
					                    ), //TODO: personalize your fonts
 | 
				
			||||||
 | 
					                  ), 
 | 
				
			||||||
 | 
					                ],
 | 
				
			||||||
              ),
 | 
					              ),
 | 
				
			||||||
              Text(
 | 
					            ),
 | 
				
			||||||
                attachment.name.toString(), //its alr a string but incase ¯\(ツ)/¯
 | 
					 | 
				
			||||||
                style: TextStyle(
 | 
					 | 
				
			||||||
                  color: Colors.black,
 | 
					 | 
				
			||||||
                  fontSize: 20,
 | 
					 | 
				
			||||||
                  decoration: TextDecoration.none  
 | 
					 | 
				
			||||||
                ), //TODO: personalize your fonts
 | 
					 | 
				
			||||||
              ), 
 | 
					 | 
				
			||||||
            ],
 | 
					 | 
				
			||||||
          ),
 | 
					          ),
 | 
				
			||||||
        ),
 | 
					          Center(
 | 
				
			||||||
        Center(
 | 
					            child: Column(
 | 
				
			||||||
          child: Column(
 | 
					              mainAxisAlignment: MainAxisAlignment.center,
 | 
				
			||||||
            mainAxisAlignment: MainAxisAlignment.center,
 | 
					              children: [        
 | 
				
			||||||
            children: [         
 | 
					                SizedBox(
 | 
				
			||||||
              SizedBox(
 | 
					                  width: 1000,
 | 
				
			||||||
                width: 1000,
 | 
					                  height: 600,
 | 
				
			||||||
                height: 600,
 | 
					                  child: Image.memory(attachment.data),
 | 
				
			||||||
                child: Image.memory(attachment.data),
 | 
					                )
 | 
				
			||||||
              )
 | 
					              ],
 | 
				
			||||||
            ],
 | 
					            ),
 | 
				
			||||||
          ),
 | 
					          ),
 | 
				
			||||||
        ),
 | 
					        ],
 | 
				
			||||||
      ],
 | 
					      ),
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue