Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple issues in get_animations #3233

Open
bigbott opened this issue Oct 6, 2024 · 1 comment
Open

Multiple issues in get_animations #3233

bigbott opened this issue Oct 6, 2024 · 1 comment
Assignees

Comments

@bigbott
Copy link

bigbott commented Oct 6, 2024

  1. slide does not work.

               Text(
                  'Slide',
                  style: TextStyle(fontSize: 20),
                ).slide(
                  duration: Duration(milliseconds: 500),
                 begin: 0.5,
                 end: 7,
                  
                  offset: (context, offset) {
                    return Offset(-10, 25);
                  },               
                ),

Just nothing happens

  1. blur is applied not to the current widget but to the above widgets

         Text(
               'Blur',
               style: TextStyle(fontSize: 20),
             ).blur(
                 duration: Duration(milliseconds: 500),
                ),
    

The Text widget will not be blurred but will be blurred all widgets above it.

  1. When the widget is rebuild using GetBuilder animation is not played
GetBuilder<AnimatedPuppyController>(
                builder: (controller) {
                  print('rebuild');
                  return Image(
                    image: const AssetImage('assets/images/puppy.png'),
                    width: controller.read(),
                  ).spin(onComplete: (animationController) {
                  // animationController.stop();
                   // animationController.dispose();
                  },);
                },
              ),

The animation played only the first time when the page is loaded.
When the Image widget gets rebuilt by GetBuilder nothing happens.

@fisforfaheem
Copy link

@jonataslaw Kindly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants