@@ -146,7 +146,7 @@ class _InLearningPageState extends State<InLearningPage> {
146146 begin: 0.00 ,
147147 end: ((controller.hasClients ? controller.page? .ceil () : 0 ) ?? 0 ) / (testList.length - 1 ),
148148 ),
149- duration: const Duration (milliseconds : 500 ) ,
149+ duration: Durations .extralong4 ,
150150 curve: StaticsVar .curve,
151151 builder: (context, value, child) {
152152 return LinearProgressIndicator (
@@ -198,7 +198,7 @@ class _InLearningPageState extends State<InLearningPage> {
198198 shape: RoundedRectangleBorder (borderRadius: StaticsVar .br)
199199 ),
200200 onPressed: (){
201- controller.nextPage (duration: Duration (milliseconds : 500 ) , curve: StaticsVar .curve);
201+ controller.nextPage (duration: Durations .medium2 , curve: StaticsVar .curve);
202202 correctCount++ ;
203203 setState (() {});
204204 },
@@ -229,7 +229,7 @@ class _InLearningPageState extends State<InLearningPage> {
229229 isShowNext: clicked,
230230 isLast: controller.page? .ceil () == testList.length - 1 ,
231231 onNextClicked: (){
232- controller.nextPage (duration: Duration (milliseconds : 500 ) , curve: StaticsVar .curve);
232+ controller.nextPage (duration: Durations .medium2 , curve: StaticsVar .curve);
233233 setState (() {
234234 clicked = false ;
235235 });
@@ -261,7 +261,7 @@ class _InLearningPageState extends State<InLearningPage> {
261261 isShowNext: clicked,
262262 isLast: controller.page? .ceil () == testList.length - 1 ,
263263 onNextClicked: (){
264- controller.nextPage (duration: Duration (milliseconds : 500 ) , curve: StaticsVar .curve);
264+ controller.nextPage (duration: Durations .medium2 , curve: StaticsVar .curve);
265265 setState (() {
266266 clicked = false ;
267267 });
@@ -300,7 +300,7 @@ class _InLearningPageState extends State<InLearningPage> {
300300 isShowNext: clicked,
301301 isLast: controller.page? .ceil () == testList.length - 1 ,
302302 onNextClicked: (){
303- controller.nextPage (duration: Duration (milliseconds : 500 ) , curve: StaticsVar .curve);
303+ controller.nextPage (duration: Durations .medium2 , curve: StaticsVar .curve);
304304 setState (() {
305305 clicked = false ;
306306 });
@@ -337,7 +337,7 @@ class BottomTip extends StatelessWidget {
337337 begin: 0.0 ,
338338 end: isShowNext ? 1.0 : 0.0 ,
339339 ),
340- duration: const Duration (milliseconds : 500 ) ,
340+ duration: Durations .medium2 ,
341341 curve: StaticsVar .curve,
342342 builder: (context, value, child) {
343343 return Row (
@@ -636,7 +636,7 @@ class _WordCardOverViewPage extends State<WordCardOverViewPage> {
636636 preferredSize: Size (mediaQuery.size.width, 75 ),
637637 child: TweenAnimationBuilder <double >(
638638 tween: Tween (begin: 0.0 , end: inSearch ? 1.0 : 0.0 ),
639- duration: Duration (milliseconds : 300 ) ,
639+ duration: Durations .short4 ,
640640 curve: StaticsVar .curve,
641641 builder: (context, value, child){
642642 return Center (
@@ -809,7 +809,7 @@ class _WordCardOverViewLayout extends State<WordCardOverViewLayout> {
809809 });
810810 jsonController.animateTo (
811811 (66 * jsonIndex).toDouble (),
812- duration: Duration (milliseconds : 200 ) ,
812+ duration: Durations .medium1 ,
813813 curve: StaticsVar .curve
814814 );
815815 },
@@ -835,18 +835,18 @@ class _WordCardOverViewLayout extends State<WordCardOverViewLayout> {
835835 if (value) {
836836 classController.animateTo (
837837 (64 * classIndex).toDouble (),
838- duration: Duration (milliseconds : 200 ) ,
838+ duration: Durations .medium1 ,
839839 curve: StaticsVar .curve
840840 );
841841 jsonController.animateTo (
842842 (66 * (jsonIndex + 1 )).toDouble (),
843- duration: Duration (milliseconds : 200 ) ,
843+ duration: Durations .medium1 ,
844844 curve: StaticsVar .curve
845845 );
846846 } else {
847847 jsonController.animateTo (
848848 (66 * jsonIndex).toDouble (),
849- duration: Duration (milliseconds : 200 ) ,
849+ duration: Durations .medium1 ,
850850 curve: StaticsVar .curve
851851 );
852852 }
0 commit comments