Giter Site home page Giter Site logo

Comments (9)

yasfdany avatar yasfdany commented on August 23, 2024 3

@MahdiPishguy you can use

if (_controller.animationState.value == AnimationState.expanded) {
print('aaa');
}

from rubber.

guillaumeprevost avatar guillaumeprevost commented on August 23, 2024 1

Hey, sorry I've missed out on this thread! I haven't experienced this. Hope you problem has been solved @MahdiPishguy !

from rubber.

pishguy avatar pishguy commented on August 23, 2024

@guillaumeprevost did you have this issue?

from rubber.

yasfdany avatar yasfdany commented on August 23, 2024

@MahdiPishguy you can get state from RubberAnimationController that is animationState.value, it will return AnimationState.expanded or AnimationState.collapsed

from rubber.

pishguy avatar pishguy commented on August 23, 2024

@yasfdany thanks, i have

_controller = RubberAnimationController(
    vsync: this,
    lowerBoundValue: AnimationControllerValue(pixel: 0.0),
    springDescription: SpringDescription.withDampingRatio(
        mass: 1.5, stiffness: Stiffness.MEDIUM, 
        ratio: DampingRatio.HIGH_BOUNCY),
    duration: Duration(milliseconds: 100));

now how can i use your code?

i get warning for this below code

if (_controller.status == AnimationState.expanded) {
  print('aaa');
}

from rubber.

pishguy avatar pishguy commented on August 23, 2024

@yasfdany thanks a lot, problem solved

from rubber.

pishguy avatar pishguy commented on August 23, 2024

@yasfdany do you know how can i change height of rubber?

from rubber.

pishguy avatar pishguy commented on August 23, 2024

@yasfdany do you know how can i change height of rubber?

@MahdiPishguy you can use

if (_controller.animationState.value == AnimationState.expanded) {
print('aaa');
}

when i try to collapse rubber, it doesn't have any animation, do you know how can i resolve that?

from rubber.

pishguy avatar pishguy commented on August 23, 2024

@guillaumeprevost thank you very much, yes, problem resolved :)

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.