Skip to content

Commit 5affcac

Browse files
authored
Minor change
fixed onChnagedistValue -> onChangedDistValue
2 parents 2b19284 + 3c86a1e commit 5affcac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

best_flutter_ui_templates/lib/hotelBooking/SliderView.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import 'package:flutter/material.dart';
33
import 'hotelAppTheme.dart';
44

55
class SliderView extends StatefulWidget {
6-
final Function(double) onChnagedistValue;
6+
final Function(double) onChangedDistValue;
77
final double distValue;
88

9-
const SliderView({Key key, this.onChnagedistValue, this.distValue}) : super(key: key);
9+
const SliderView({Key key, this.onChangedDistValue, this.distValue}) : super(key: key);
1010
@override
1111
_SliderViewState createState() => _SliderViewState();
1212
}
@@ -54,7 +54,7 @@ class _SliderViewState extends State<SliderView> {
5454
distValue = value;
5555
});
5656
try {
57-
widget.onChnagedistValue(distValue);
57+
widget.onChangedDistValue(distValue);
5858
} catch (e) {}
5959
},
6060
min: 0,

best_flutter_ui_templates/lib/hotelBooking/filtersScreen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ class _FiltersScreenState extends State<FiltersScreen> {
210210
),
211211
SliderView(
212212
distValue: distValue,
213-
onChnagedistValue: (value) {
213+
onChangedDistValue: (value) {
214214
distValue = value;
215215
},
216216
),

0 commit comments

Comments
 (0)