chore: minor widget fixes
This commit is contained in:
@@ -82,19 +82,19 @@ class _CameraOptionsWidgetState extends State<CameraOptionsWidget> {
|
|||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(color: Colors.white.withOpacity(0.5)),
|
decoration: BoxDecoration(color: Colors.white.withOpacity(0.5)),
|
||||||
child: SliderTheme(
|
child: SliderTheme(
|
||||||
data: SliderThemeData(
|
data: const SliderThemeData(
|
||||||
showValueIndicator: ShowValueIndicator.always,
|
showValueIndicator: ShowValueIndicator.always,
|
||||||
valueIndicatorTextStyle: TextStyle(color: Colors.black)),
|
valueIndicatorTextStyle: TextStyle(color: Colors.black)),
|
||||||
child: Column(mainAxisSize: MainAxisSize.min, children: [
|
child: Column(mainAxisSize: MainAxisSize.min, children: [
|
||||||
Row(children: [
|
Row(children: [
|
||||||
Text("Aperture"),
|
const Text("Aperture"),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: TextField(
|
child: TextField(
|
||||||
controller: _apertureController,
|
controller: _apertureController,
|
||||||
)),
|
)),
|
||||||
Text("Speed"),
|
const Text("Speed"),
|
||||||
Expanded(child: TextField(controller: _speedController)),
|
Expanded(child: TextField(controller: _speedController)),
|
||||||
Text("Sensitivity"),
|
const Text("Sensitivity"),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: TextField(controller: _sensitivityController)),
|
child: TextField(controller: _sensitivityController)),
|
||||||
]),
|
]),
|
||||||
@@ -112,7 +112,7 @@ class _CameraOptionsWidgetState extends State<CameraOptionsWidget> {
|
|||||||
})
|
})
|
||||||
]),
|
]),
|
||||||
Row(children: [
|
Row(children: [
|
||||||
Text("Focal length"),
|
const Text("Focal length"),
|
||||||
Slider(
|
Slider(
|
||||||
label: _focalLength.toString(),
|
label: _focalLength.toString(),
|
||||||
value: _focalLength,
|
value: _focalLength,
|
||||||
@@ -127,7 +127,7 @@ class _CameraOptionsWidgetState extends State<CameraOptionsWidget> {
|
|||||||
})
|
})
|
||||||
]),
|
]),
|
||||||
Row(children: [
|
Row(children: [
|
||||||
Text("X"),
|
const Text("X"),
|
||||||
Slider(
|
Slider(
|
||||||
label: widget.cameraOrientation.position.x.toString(),
|
label: widget.cameraOrientation.position.x.toString(),
|
||||||
value: widget.cameraOrientation.position.x,
|
value: widget.cameraOrientation.position.x,
|
||||||
@@ -141,7 +141,7 @@ class _CameraOptionsWidgetState extends State<CameraOptionsWidget> {
|
|||||||
})
|
})
|
||||||
]),
|
]),
|
||||||
Row(children: [
|
Row(children: [
|
||||||
Text("Y"),
|
const Text("Y"),
|
||||||
Slider(
|
Slider(
|
||||||
label: widget.cameraOrientation.position.y.toString(),
|
label: widget.cameraOrientation.position.y.toString(),
|
||||||
value: widget.cameraOrientation.position.y,
|
value: widget.cameraOrientation.position.y,
|
||||||
@@ -155,7 +155,7 @@ class _CameraOptionsWidgetState extends State<CameraOptionsWidget> {
|
|||||||
})
|
})
|
||||||
]),
|
]),
|
||||||
Row(children: [
|
Row(children: [
|
||||||
Text("Z"),
|
const Text("Z"),
|
||||||
Slider(
|
Slider(
|
||||||
label: widget.cameraOrientation.position.z.toString(),
|
label: widget.cameraOrientation.position.z.toString(),
|
||||||
value: widget.cameraOrientation.position.z,
|
value: widget.cameraOrientation.position.z,
|
||||||
@@ -169,7 +169,7 @@ class _CameraOptionsWidgetState extends State<CameraOptionsWidget> {
|
|||||||
})
|
})
|
||||||
]),
|
]),
|
||||||
Row(children: [
|
Row(children: [
|
||||||
Text("ROTX"),
|
const Text("ROTX"),
|
||||||
Slider(
|
Slider(
|
||||||
label: widget.cameraOrientation.rotationX.toString(),
|
label: widget.cameraOrientation.rotationX.toString(),
|
||||||
value: widget.cameraOrientation.rotationX,
|
value: widget.cameraOrientation.rotationX,
|
||||||
@@ -183,7 +183,7 @@ class _CameraOptionsWidgetState extends State<CameraOptionsWidget> {
|
|||||||
})
|
})
|
||||||
]),
|
]),
|
||||||
Row(children: [
|
Row(children: [
|
||||||
Text("ROTY"),
|
const Text("ROTY"),
|
||||||
Slider(
|
Slider(
|
||||||
label: widget.cameraOrientation.rotationY.toString(),
|
label: widget.cameraOrientation.rotationY.toString(),
|
||||||
value: widget.cameraOrientation.rotationY,
|
value: widget.cameraOrientation.rotationY,
|
||||||
@@ -197,7 +197,7 @@ class _CameraOptionsWidgetState extends State<CameraOptionsWidget> {
|
|||||||
}),
|
}),
|
||||||
]),
|
]),
|
||||||
Row(children: [
|
Row(children: [
|
||||||
Text("ROTZ"),
|
const Text("ROTZ"),
|
||||||
Slider(
|
Slider(
|
||||||
label: widget.cameraOrientation.rotationZ.toString(),
|
label: widget.cameraOrientation.rotationZ.toString(),
|
||||||
value: widget.cameraOrientation.rotationZ,
|
value: widget.cameraOrientation.rotationZ,
|
||||||
@@ -213,7 +213,7 @@ class _CameraOptionsWidgetState extends State<CameraOptionsWidget> {
|
|||||||
Wrap(
|
Wrap(
|
||||||
children: [
|
children: [
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
child: Text("Main "),
|
child: const Text("Main "),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
widget.controller.setMainCamera();
|
widget.controller.setMainCamera();
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user