Home > Net >  making the circular avatar show at the top of the screen
making the circular avatar show at the top of the screen

Time:11-03

see image here

How can I make the circleavatar to be placed at the top of the container

CodePudding user response:

you can use Stack for this. like:

...
return Stack(
  children: [
    Positioned.filled( child:
    Scaffold(
      appBar: ...
      body: Column([
        DecoratedBox(
          ...
        )
      ]),
    )),
    Positioned(
      top: 24,
      child:
        CircleAvatar( child:
          CachedNetworkImage(
            ...
          ),
        ),
    ),
  ],
);

something like that.

CodePudding user response:

Try below code hope its helpful to you.refer Stack class image

  • Related