(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 '../../../utils/camera_orientation.dart';
|
||||
|
||||
import 'dart:math';
|
||||
|
||||
class CameraOptionsWidget extends StatefulWidget {
|
||||
final Camera camera;
|
||||
final CameraOrientation cameraOrientation;
|
||||
@@ -59,9 +57,6 @@ class _CameraOptionsWidgetState extends State<CameraOptionsWidget> {
|
||||
setState(() {});
|
||||
}
|
||||
|
||||
double _bloom = 0.0;
|
||||
|
||||
double _focalLength = 26.0;
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Theme(
|
||||
|
||||
@@ -140,13 +140,13 @@ class _ViewerWidgetState extends State<ViewerWidget> {
|
||||
viewport = thermionWidget;
|
||||
case ManipulatorType.ORBIT:
|
||||
viewport = ThermionListenerWidget(
|
||||
key: ObjectKey(ManipulatorType.ORBIT),
|
||||
key: const ObjectKey(ManipulatorType.ORBIT),
|
||||
inputHandler: DelegateInputHandler.fixedOrbit(viewer!,
|
||||
minimumDistance: widget.initialCameraPosition.length),
|
||||
child: thermionWidget);
|
||||
case ManipulatorType.FREE_FLIGHT:
|
||||
viewport = ThermionListenerWidget(
|
||||
key: ObjectKey(ManipulatorType.FREE_FLIGHT),
|
||||
key: const ObjectKey(ManipulatorType.FREE_FLIGHT),
|
||||
inputHandler: DelegateInputHandler.flight(viewer!),
|
||||
child: thermionWidget);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user