Skip to content

Commit

Permalink
Fixed analysis warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pulyaevskiy committed Jul 24, 2018
1 parent b992fd1 commit c8fdbaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
9 changes: 3 additions & 6 deletions lib/parallax_image.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ class ParallaxImage extends StatelessWidget {
this.controller,
this.color,
this.child,
})
: super(key: key);
}) : super(key: key);

/// The image to paint.
final ImageProvider image;
Expand Down Expand Up @@ -103,8 +102,7 @@ class _Parallax extends SingleChildRenderObjectWidget {
@required this.screenSize,
this.color,
Widget child,
})
: super(key: key, child: child);
}) : super(key: key, child: child);
final ImageProvider image;
final ScrollPosition scrollPosition;
final Size screenSize;
Expand Down Expand Up @@ -138,8 +136,7 @@ class _RenderParallax extends RenderProxyBox {
Color color,
ImageConfiguration configuration: ImageConfiguration.empty,
RenderBox child,
})
: _image = image,
}) : _image = image,
_scrollPosition = scrollPosition,
_screenSize = screenSize,
_color = color,
Expand Down
7 changes: 2 additions & 5 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
name: parallax_image
description: A Flutter widget that paints an image and moves it at a slower speed than the main scrolling content.
version: 0.3.0
version: 0.3.1
homepage: https://github.com/pulyaevskiy/parallax-image
author: Anatoly Pulyaevskiy <[email protected]>

environment:
sdk: '>=2.0.0-dev <2.0.0'
sdk: '>=2.0.0-dev <3.0.0'

dependencies:
flutter:
sdk: flutter

# dev_dependencies:
# test: ^0.12.0

0 comments on commit c8fdbaf

Please sign in to comment.