Answers for "Create Image Container with Round Corners and Ripple Effect"

0

Create Image Container with Round Corners and Ripple Effect

Stack(
    alignment: Alignment.center,
    children: [
        Container(
        width: 160.0,
        height: 160.0,
        child: ClipRRect(
                borderRadius: BorderRadius.all(Radius.circular(16.0)),
                child: Image.asset('images/default_avatar.jpg'),
            ),
        ),
        Material(
        type: MaterialType.transparency,
        child: InkWell(
                borderRadius: BorderRadius.all(Radius.circular(16.0)),
                child: Container(
                    width: 160.0,
                    height: 160.0,
                    ),
                onTap: () {},
            ),
        ),
    ],
);
Posted by: Guest on February-02-2022

Code answers related to "Create Image Container with Round Corners and Ripple Effect"

Browse Popular Code Answers by Language