Navigation überspringen
New Flutter package: hit
0:00 / 0:28

New Flutter package: hit

Zen Bui

@definev21024 Follower

Auf X besuchen

17.751 Aufrufe #Flutter #hittest

New Flutter package: hit Decouple layout size from hit-test size. Make tiny controls easy to tap without breaking your layout. Pub: Demo: #Flutter #hittest

24 Kommentare

Kommentare aus dem Originalbeitrag auf X (Twitter)

  • Profilbild von Kamran Bekirov

    @kamranbekirovyz

    new candidate for and /flutter-improve-design skill

    9 Likes

  • Profilbild von Zen Bui

    @definev2

    I knew it!!! Hit will be a pleasure to be featured on We all know details matter!

    7 Likes

  • Profilbild von APEALED 🗿

    @APEALED

    Love this! wish it was native to the framework..

    3 Likes

  • Profilbild von Zen Bui

    @definev2

    The proposal has some limitation like what happen if you clip the GestureDetecture? Is it clip the hit size or follow hitSlop. I think framework people don't want ambiguity so leave the dirty work to 3rd package is reasonable.

    1 Like

  • Profilbild von Roman Ismagilov

    @pomis172

    Oh wow, does it work with text spans?

    3 Likes

  • Profilbild von Zen Bui

    @definev2

    Yes! It is 😍

    5 Likes

  • Profilbild von Roman Ismagilov

    @pomis172

    Coooool, gonna try it

    1 Like

  • Profilbild von Hary Suryanto

    @hary_suryanto

    Cool! I used to use but, if i remember correctly, it has an issue where a button still receives hit even when there is a modal blocking on top of it. I use hitSlop in React Native but couldnt find smth close in Flutter. Flutter should have this built-in

    2 Likes

  • Profilbild von Zen Bui

    @definev2

    The HitSlop approach has a flaw: when you put it in a ListView, the Overlay still displays even if the widget is logically hidden. The hit package still inherits Flutter’s limitations, but it solves this by deferring the hit test to a higher HitScope :-)

    2 Likes

  • Profilbild von Birju Vachhani 💙

    @birjuvachhani

    What a pretty demo and incredible package!

    2 Likes

  • Profilbild von Zen Bui

    @definev2

    Thank you!!

    1 Like

  • Profilbild von CJ

    @dv_neem

    @Pope_mk14 Wow. Really awesome stuff Zen!

    2 Likes

  • Profilbild von Vu Nguyen

    @VuNguyenDev

    SmoothCapture spotted, next time try to export using 2k preset, 1080p looks blurry in social media

    2 Likes

  • Profilbild von Zen Bui

    @definev2

    Yooo, your product is far beyond polished 😍 I just found the SmoothCapture IOS app TODAY. No brainer purchased when it out testflight 👍

    1 Like

  • Profilbild von Vu Nguyen

    @VuNguyenDev

    I will tweak the default better, and add more presets so you dont need to adjust that much. it almost 1 week and no response from apple reviewer thank you so much!

    1 Like

  • Profilbild von Francesco Coppola

    @francescocops

    Uhhh gonna integrate this soon in my project too 🥹

    1 Like

  • Profilbild von Dzung Nguyen Minh

    @dzungngminh

    I know what to do with it

    1 Like

  • Profilbild von Hamza Imran

    @hamza_imran75

    Yo that’s awesome

    1 Like

  • Profilbild von Zen Bui

    @definev2

    Please try it and give me feedback 💙

    1 Like

  • Profilbild von Simon 🦊💙

    @simonpham1999

    this is exactly what I need right now can’t wait to integrate it for my panes package 😆

    1 Like