Skip to content

Commit

Permalink
Hotfix to PR, missing commit
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-colazzo committed Apr 29, 2022
1 parent a579c82 commit 40f84e5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
5 changes: 2 additions & 3 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ class MyHomePage extends StatefulWidget {
_MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage>
with TickerProviderStateMixin {
class _MyHomePageState extends State<MyHomePage> with TickerProviderStateMixin {
var renderOverlay = true;
var visible = true;
var switchLabelPosition = false;
Expand Down Expand Up @@ -391,7 +390,7 @@ class _MyHomePageState extends State<MyHomePage>
// activeForegroundColor: Colors.red,
// activeBackgroundColor: Colors.blue,
elevation: 8.0,
animationCurve: Curves.elasticInOut
animationCurve: Curves.elasticInOut,
isOpenOnStart: false,
animationDuration: const Duration(milliseconds: 1500),
shape: customDialRoot
Expand Down
18 changes: 9 additions & 9 deletions lib/src/speed_dial.dart
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ class _ChildrensOverlay extends StatelessWidget {
required this.dialKey,
required this.controller,
required this.toggleChildren,
this.childAnimation,
this.animationCurve,
}) : super(key: key);

final SpeedDial widget;
Expand All @@ -481,15 +481,15 @@ class _ChildrensOverlay extends StatelessWidget {

return AnimatedChild(
animation: Tween(begin: 0.0, end: 1.0).animate(
CurvedAnimation(
parent: controller,
curve: Interval(
index / widget.children.length,
1.0,
curve: widget.animationCurve ?? Curves.ease,
),
),
CurvedAnimation(
parent: controller,
curve: Interval(
index / widget.children.length,
1.0,
curve: widget.animationCurve ?? Curves.ease,
),
),
),
index: index,
margin: widget.spaceBetweenChildren != null
? EdgeInsets.fromLTRB(
Expand Down

0 comments on commit 40f84e5

Please sign in to comment.