(flutter) cleanup widgets to satisfy pub.dev analyzer
This commit is contained in:
@@ -2,8 +2,6 @@ import 'package:thermion_dart/thermion_dart.dart';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../utils/camera_orientation.dart';
|
import '../../../utils/camera_orientation.dart';
|
||||||
|
|
||||||
import 'dart:math';
|
|
||||||
|
|
||||||
class CameraOptionsWidget extends StatefulWidget {
|
class CameraOptionsWidget extends StatefulWidget {
|
||||||
final Camera camera;
|
final Camera camera;
|
||||||
final CameraOrientation cameraOrientation;
|
final CameraOrientation cameraOrientation;
|
||||||
@@ -59,9 +57,6 @@ class _CameraOptionsWidgetState extends State<CameraOptionsWidget> {
|
|||||||
setState(() {});
|
setState(() {});
|
||||||
}
|
}
|
||||||
|
|
||||||
double _bloom = 0.0;
|
|
||||||
|
|
||||||
double _focalLength = 26.0;
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Theme(
|
return Theme(
|
||||||
|
|||||||
@@ -140,13 +140,13 @@ class _ViewerWidgetState extends State<ViewerWidget> {
|
|||||||
viewport = thermionWidget;
|
viewport = thermionWidget;
|
||||||
case ManipulatorType.ORBIT:
|
case ManipulatorType.ORBIT:
|
||||||
viewport = ThermionListenerWidget(
|
viewport = ThermionListenerWidget(
|
||||||
key: ObjectKey(ManipulatorType.ORBIT),
|
key: const ObjectKey(ManipulatorType.ORBIT),
|
||||||
inputHandler: DelegateInputHandler.fixedOrbit(viewer!,
|
inputHandler: DelegateInputHandler.fixedOrbit(viewer!,
|
||||||
minimumDistance: widget.initialCameraPosition.length),
|
minimumDistance: widget.initialCameraPosition.length),
|
||||||
child: thermionWidget);
|
child: thermionWidget);
|
||||||
case ManipulatorType.FREE_FLIGHT:
|
case ManipulatorType.FREE_FLIGHT:
|
||||||
viewport = ThermionListenerWidget(
|
viewport = ThermionListenerWidget(
|
||||||
key: ObjectKey(ManipulatorType.FREE_FLIGHT),
|
key: const ObjectKey(ManipulatorType.FREE_FLIGHT),
|
||||||
inputHandler: DelegateInputHandler.flight(viewer!),
|
inputHandler: DelegateInputHandler.flight(viewer!),
|
||||||
child: thermionWidget);
|
child: thermionWidget);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user