Flutter: Inkwell does not work with Card

I finally got this to work by specifying the same border radius in both the parent card widget and the child inkwell widget. The other solutions don’t correctly render rounded corners for the ink well animation. The below worked perfectly for me:

Card(
    elevation: 2,
    shape: RoundedRectangleBorder(
      borderRadius: BorderRadius.circular(8),
    ),
    child: InkWell(
      borderRadius: BorderRadius.circular(8),
      onTap: (){},
      child: Container(
        height: 58,
      ),
    ),
  );

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)