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
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ class SliderFieldBlocBuilder extends StatelessWidget {
/// [Slider.label]
final String Function(BuildContext context, double value)? labelBuilder;

/// [Slider.onChangeStart]
final void Function(double)? onChangeStart;

/// [Slider.onChangeEnd]
final void Function(double)? onChangeEnd;

const SliderFieldBlocBuilder({
Key? key,
required this.inputFieldBloc,
Expand All @@ -78,6 +84,8 @@ class SliderFieldBlocBuilder extends StatelessWidget {
this.decoration = const InputDecoration(),
this.errorBuilder,
this.labelBuilder,
this.onChangeStart,
this.onChangeEnd
}) : super(key: key);

SliderFieldTheme themeOf(BuildContext context) {
Expand Down Expand Up @@ -118,6 +126,8 @@ class SliderFieldBlocBuilder extends StatelessWidget {
decoration: _buildDecoration(context, state, isEnabled),
isEmpty: false,
child: Slider(
onChangeEnd: onChangeEnd,
onChangeStart: onChangeStart,
value: value,
min: min,
max: max,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: root_workspace
name: flutter_form_bloc

environment:
sdk: '>=2.18.0 <4.0.0'
Expand Down