Losing the slider thumb on changing phone orientation
Closed this issue · 2 comments
kherel commented
Hey, great job.
I have small issue:
import 'package:flutter/material.dart';
import 'package:flutter_xlider/flutter_xlider.dart';
void main() async {
runApp(
MaterialApp(
home: Scaffold(
backgroundColor: Colors.grey,
body: Center(child: Test()),
)),
);
}
class Test extends StatelessWidget {
@override
Widget build(BuildContext context) {
var isPortrait = MediaQuery.of(context).orientation == Orientation.portrait;
return FlutterSlider(
axis: isPortrait ? Axis.horizontal : Axis.vertical,
values: [5],
max: 10,
min: 0,
onDragging: (handlerIndex, lowerValue, upperValue) {},
);
}
}
Ali-Azmoud commented
Hi. please use the latest version. this bug is fixed. I close this issue if you think the problem still exists reopen it.
Ali-Azmoud commented
Hi. please use the latest version. this bug is fixed. I close this issue if you think the problem still exists reopen it.