Giter VIP home page Giter VIP logo

Comments (5)

ertgrulll avatar ertgrulll commented on May 27, 2024 1

Hi, thanks for your nice comments. I think changing this will make harder to use AdvStory. Fortunately, this feature can be "hacked" without changing the package. I did not limit the header and footer field sizes. You can use GestureDetector as footer. An example:

footer: GestureDetector(
  onLongPressDown: (details) => print("long press"),
  onLongPressCancel: () => print("long press cancel"),
  onLongPressUp: () => print("long press up"),
  onLongPress: () => print("long press"),
  onTapUp: (details) => print("tap up"),
  onVerticalDragEnd: (details) => print("vertical drag end"),
  // Prevent hits from passing to the AdvStory in transparent areas.
  child: AbsorbPointer(
    child: SizedBox(
      width: MediaQuery.of(context).size.width,
      height: MediaQuery.of(context).size.height,
      child: Align(
        alignment: Alignment.bottomCenter,
	child: Container(
	  width: MediaQuery.of(context).size.width,
	  height: 50,
	  color: Colors.orange,
        ),
      ),
    ),
  ),
)

This way you have to trigger the actions that are in the default story flow yourself. You can use AdvStoryController to trigger actions.

from advstory.

ertgrulll avatar ertgrulll commented on May 27, 2024

Not quite sure how to call your functions inside a custom wrapped GestureDetector(). Perhaps some documentation?

To see the controller usage you can check here and the link at the bottom of this page

from advstory.

jtkeyva avatar jtkeyva commented on May 27, 2024

Awesome! I want to add slow motion and swipe up to react/respond gestures. I'll see what I can do.

Would it be much work to essentially clone the Footer and call it CustomGesture or Overlay and make it an option along with Header and Footer? That way, you don't have to "hack" anything and you can also use the header/footer to place tappable links etc without fuss on top of the Gesture arena.

from advstory.

ertgrulll avatar ertgrulll commented on May 27, 2024

You're right, I'll add that to the roadmap as a priority. For now, you can use the hack way as a workaround.

from advstory.

jtkeyva avatar jtkeyva commented on May 27, 2024

Awesome!

from advstory.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.