Skip to content

Commit

Permalink
Format Dart document using dart format . write and fix `dart analyz…
Browse files Browse the repository at this point in the history
…e` error (#131)
  • Loading branch information
prateekmedia authored Mar 12, 2021
1 parent 7dcfdc6 commit 8883813
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class MyApp extends StatefulWidget {
}

class MyAppState extends State<MyApp> with TickerProviderStateMixin {
ScrollController scrollController;
late ScrollController scrollController;
bool dialVisible = true;

@override
Expand Down
21 changes: 11 additions & 10 deletions lib/src/animated_child.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,17 @@ class AnimatedChild extends AnimatedWidget {
Widget build(BuildContext context) {
final Animation<double> animation = listenable as Animation<double>;

final Widget buttonChild = animation.value > buttonSize*0.9 && child !=null
? Container(
width: animation.value,
height: animation.value,
child: child,
)
: Container(
width: 0.0,
height: 0.0,
);
final Widget buttonChild =
animation.value > buttonSize * 0.9 && child != null
? Container(
width: animation.value,
height: animation.value,
child: child,
)
: Container(
width: 0.0,
height: 0.0,
);

FloatingActionButton button = FloatingActionButton(
key: key,
Expand Down
9 changes: 5 additions & 4 deletions lib/src/speed_dial.dart
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,11 @@ class _SpeedDialState extends State<SpeedDial> with TickerProviderStateMixin {
widget.foregroundColor ?? (widget._dark ? Colors.white : Colors.black);

final backgroundColorTween = ColorTween(
begin: backgroundColor, end: widget.activeBackgroundColor ?? backgroundColor);
begin: backgroundColor,
end: widget.activeBackgroundColor ?? backgroundColor);
final foregroundColorTween = ColorTween(
begin: foregroundColor, end: widget.activeForegroundColor ?? foregroundColor);
begin: foregroundColor,
end: widget.activeForegroundColor ?? foregroundColor);

var animatedFloatingButton = AnimatedBuilder(
animation: _controller,
Expand All @@ -407,8 +409,7 @@ class _SpeedDialState extends State<SpeedDial> with TickerProviderStateMixin {
tooltip: widget.tooltip,
dialRoot: widget.dialRoot,
backgroundColor: backgroundColorTween.lerp(_controller.value),
foregroundColor:
foregroundColorTween.lerp(_controller.value),
foregroundColor: foregroundColorTween.lerp(_controller.value),
elevation: widget.elevation,
onLongPress: _toggleChildren,
callback: (_open || widget.onPress == null)
Expand Down

0 comments on commit 8883813

Please sign in to comment.