AdobeXD / xd-to-flutter-plugin

Generate assets from XD for use in an existing Flutter project
BSD 2-Clause "Simplified" License
953 stars 97 forks source link

Pinned.fromSize and onTap not working #100

Closed giacomomasseron closed 3 years ago

giacomomasseron commented 3 years ago

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?

connelevalsam commented 3 years ago

did you fix this?

I'm having the same error

gskinner commented 3 years ago

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?

gskinner commented 3 years ago

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