I have these sliders which by default are obviously aligned underneath each other:
class _Grid extends State<Grid> {
var val = 5;
@override
build(BuildContext context){
return new Scaffold(
appBar: new AppBar(
title: new Text("Game"),
backgroundColor: Colors.red,
elevation: 1.0,
),
body: new Container(
child: new Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
new Slider(
value: val.toDouble(),
min: 1.0,
max: 50.0,
divisions: 50,
label: '$val',
onChanged: (double newValue) {
setState(() {
val = newValue.round();
});
},
),
new Slider(
value: val.toDouble(),
min: 1.0,
max: 50.0,
divisions: 50,
label: '$val',
onChanged: (double newValue) {
setState(() {
val = newValue.round();
});
},
),
],
)
),
);
}
}
But instead of the user dragging the value from left to right, I want the value to be dragged from bottom to top (basically rotated). And they should align side by side.
How can I achieve this?
Thanks
