Giter Site home page Giter Site logo

Comments (10)

mcrovero avatar mcrovero commented on August 23, 2024

It is possible with the latest version.
Just call:

_controller.visibility = true; //false

from rubber.

GroovinChip avatar GroovinChip commented on August 23, 2024

So in, say, the onPressed for a FAB:

onPressed: () {
   _controller.visibility = true;
}

Is that right? Also, what would the proper values be to make Rubber mimic a ModalBottomSheet, where it appears at a set height and can be dismissed?

from rubber.

mcrovero avatar mcrovero commented on August 23, 2024

Exactly!
To make it mimic the ModalBottomSheet you can set the animationController as follows:

_controller = RubberAnimationController(
      vsync: this,
      lowerBound: 0.0,
      upperBound: 0.5,
      duration: Duration(milliseconds: 200)
);

and open it with

 _controller.launchTo(AnimationState.expanded);

I'm probably simplify this mechanism in the next release.

from rubber.

GroovinChip avatar GroovinChip commented on August 23, 2024

Thank you, I'll try it out! Are you on twitter? Good place to announce releases

from rubber.

GroovinChip avatar GroovinChip commented on August 23, 2024

ok, I just tried it out, and swiping up on Rubber doesn't make it expand. Swiping down, however, does dismiss Rubber with a very quick red screen error.

from rubber.

mcrovero avatar mcrovero commented on August 23, 2024

Yes, I've just fixed the red screen issue in the newest version.
Swiping up shouldn't open the bottom sheet because it would prevent the lower layer from scrolling.

from rubber.

mcrovero avatar mcrovero commented on August 23, 2024

Yes, I'm on Twitter as @mattia_crovero.
Thanks for the advice!

from rubber.

GroovinChip avatar GroovinChip commented on August 23, 2024

from rubber.

mcrovero avatar mcrovero commented on August 23, 2024

In Google maps the swipe starts from the BottomNavigationView, I think that it is possible to reproduce it with rubber. It could be a nice feature for the library

from rubber.

GroovinChip avatar GroovinChip commented on August 23, 2024

Looking forward to updates! I followed you on twitter. If you're able to replicate the Google Maps sheet, I will be in awe haha.

from rubber.

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.