Skip to content

How can place models with photos above other models in this example?flutter #61945

@meisam9890

Description

@meisam9890

Hi guys.

I had a problem.The output of my application is like the picture below.
https://i.stack.imgur.com/djPEL.jpg

How to change it like the picture below?
https://i.stack.imgur.com/Lup9x.jpg

my SampleCard is:

class SampleCard extends StatelessWidget {
  final JobModel jobModel;
  SampleCard({@required this.jobModel});

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: const EdgeInsets.all(8.0),
      child: Container(
        child:jobModel.job_pic==""
        ?CircleAvatar(child:Icon(Icons.photo_camera),)
            :
            Image.network(jobModel.job_pic,width:30,height:30,)
      ),
    );
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions