AdobeXD/xd-to-flutter-plugin

Pinned.fromSize and onTap not working

Closed this issue · 3 comments

Hi, I have this Pinned.fromSize:

Pinned.fromSize(
  bounds: Rect.fromLTWH(29.0, 11.0, 42.0, 23.0),
  size: Size(100.0, 44.0),
  fixedWidth: true,
  fixedHeight: true,
  child:
      // Adobe XD layer: 'Sign in' (text)
      Text(
    'Login',
    style: TextStyle(
      fontFamily: 'Poppins-Medium',
      fontSize: 16,
      color: const Color(0xffffffff),
    ),
    textAlign: TextAlign.center,
  ),
),

I need to implement onTap on Login Text. I tried with InkWell and GestureDetector (with Text as child) without success.
How can I handle this?

did you fix this?

I'm having the same error

We use GestureDetector in PageLink and for onTap params, and it works as expected with Pinned (at least here). Any chance you could provide more info?

Closing due to lack of detail. Please feel free to reopen with more information.