-1

I have to speed up my application integration testing. for that, I want to cancel the animation on opening and closing the navigation drawer in the flutter. Does anyone have an idea?

  • hi, Welcome to SO. Please [Read How to ask Question](https://stackoverflow.com/help/how-to-ask) – Krunal Shah Dec 18 '19 at 10:14
  • Does this answer your question? [How to navigate to other page without animation Flutter](https://stackoverflow.com/questions/49874272/how-to-navigate-to-other-page-without-animation-flutter) – Ruben Martirosyan Dec 18 '19 at 13:08

1 Answers1

0

I am not sure how to cancel/disable all the animations completely. But you can make it faster or slower by setting timeDilation.

To make the animation faster

import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart' show timeDilation;

void main() {
  timeDilation = 0.001;
  runApp(MyApp());
}
Crazy Lazy Cat
  • 13,595
  • 4
  • 30
  • 54
  • For more informations : https://stackoverflow.com/questions/51116814/slowing-down-animations-in-flutter-globally – Ziad Jun 09 '23 at 04:20