Home > Software design >  Adding 2 IconButtons next to the image
Adding 2 IconButtons next to the image

Time:02-09

I'm having a problem with my project. I need confirmation from the user for the location of this image. I want to make an object like this, would you be an investor?enter image description here

CodePudding user response:

Here is pseudo code

Column(
    Image(),
    Row(
        Button(),
        Button(),
    )
)

CodePudding user response:

It could be coded like this. And see working example try it out!

Column(children: [
  Container(
    padding: EdgeInsets.all(10),
    child: Text('Here Image'),
    color: Colors.orangeAccent,
  ),
  Row(
    children: [
      Container(
        padding: EdgeInsets.all(10),
        child: Text('First Button'),
        color: Colors.orangeAccent,
      ),
      Container(
        padding: EdgeInsets.all(10),
        child: Text('Second Button'),
        color: Colors.orangeAccent,
      ),
    ],
    mainAxisAlignment: MainAxisAlignment.center,
    mainAxisSize: MainAxisSize.min,
  )
])
  •  Tags:  
  • Related