@@ -27,10 +27,7 @@ class OpenMyRightSheet {
2727 color: Theme .of (context).colorScheme.primaryContainer,
2828 child: Row (
2929 children: [
30- IconButton (
31- icon: Icon (Icons .close,),
32- onPressed: () => Navigator .of (context).pop (),
33- ),
30+ IconButton (icon: Icon (Icons .close), onPressed: () => Navigator .of (context).pop ()),
3431 Expanded (
3532 child: Padding (
3633 padding: const EdgeInsets .all (16 ),
@@ -54,14 +51,12 @@ class OpenMyRightSheet {
5451 child: Padding (
5552 padding: const EdgeInsets .all (16 ),
5653 child: FloatingActionButton .extended (
57- onPressed: () {
58- // Start the training
59- Navigator .push (
60- context,
61- MaterialPageRoute (builder: (context) => TrainingsMode (task: task, hint: hint, solution: solution)),
62- ); },
6354 icon: Icon (Icons .play_circle),
6455 label: Text (appLocalizations.rightSheetStart), // Start
56+ onPressed: () {
57+ // Start the training
58+ Navigator .push (context, MaterialPageRoute (builder: (context) => TrainingsMode (task: task, hint: hint, solution: solution)));
59+ },
6560 ),
6661 ),
6762 ),
@@ -89,12 +84,9 @@ class MyRightSheet{
8984 final offsetAnimation = Tween <Offset >(
9085 begin: const Offset (1 , 0 ), // Start at the right side
9186 end: Offset .zero, // End: normal position
92- ).animate (CurvedAnimation (
93- parent: animation,
94- curve: Curves .easeOutCubic,
95- ));
87+ ).animate (CurvedAnimation (parent: animation, curve: Curves .easeOutCubic));
9688 return SlideTransition (position: offsetAnimation, child: child);
9789 },
9890 );
9991 }
100- }
92+ }
0 commit comments