Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lib/flutter_volume_slider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import 'package:provider/provider.dart';

class FlutterVolumeSlider extends StatefulWidget {
final Display display;
final Color sliderActiveColor;
final Color sliderInActiveColor;
final Color? sliderActiveColor;
final Color? sliderInActiveColor;

FlutterVolumeSlider(
{this.sliderActiveColor, this.sliderInActiveColor, @required this.display});
{this.sliderActiveColor, this.sliderInActiveColor, required this.display});

@override
_FlutterVolumeSliderState createState() => _FlutterVolumeSliderState();
Expand Down Expand Up @@ -154,11 +154,11 @@ class _FlutterVolumeSliderState extends State<FlutterVolumeSlider> {
enum Display { HORIZONTAL, VERTICAL }

class MinVolume {
double value;
double? value;
MinVolume(this.value);
}

class MaxVolume {
double value;
double? value;
MaxVolume(this.value);
}
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ version: 1.0.6
homepage: https://github.com/ThePredators/FlutterVolumeSlider

environment:
sdk: ">=2.7.0 <3.0.0"
sdk: '>=2.12.0 <3.0.0'
flutter: ">=1.10.0"

dependencies:
flutter:
sdk: flutter
provider: ^4.0.5
provider: ^5.0.0

dev_dependencies:
flutter_test:
Expand Down