chore: rearrange flutter gesture/widget directory structure

This commit is contained in:
Nick Fisher
2024-09-26 10:46:52 +08:00
parent 9da4710d54
commit c91cbeba1a
14 changed files with 24 additions and 24 deletions

View File

@@ -3,7 +3,7 @@ import 'dart:ui';
import 'package:flutter/services.dart';
import 'package:thermion_dart/thermion_dart/thermion_viewer.dart';
import 'package:thermion_flutter/thermion/widgets/camera/gestures/v2/delegates.dart';
import 'package:thermion_flutter/src/gestures/delegates.dart';
import 'package:vector_math/vector_math_64.dart';
class DefaultKeyboardCameraFlightDelegate

View File

@@ -1,7 +1,7 @@
import 'dart:ui';
import 'package:thermion_dart/thermion_dart/thermion_viewer.dart';
import 'package:thermion_flutter/thermion/widgets/camera/gestures/v2/delegates.dart';
import 'package:thermion_flutter/src/gestures/delegates.dart';
class DefaultPickDelegate extends PickDelegate {
final ThermionViewer _viewer;

View File

@@ -1,7 +1,7 @@
import 'dart:async';
import 'dart:ui';
import 'package:thermion_flutter/thermion/widgets/camera/gestures/v2/delegates.dart';
import 'package:thermion_flutter/src/gestures/delegates.dart';
import 'package:vector_math/vector_math_64.dart';
class DefaultVelocityDelegate extends VelocityDelegate {

View File

@@ -2,7 +2,7 @@ import 'dart:math';
import 'package:flutter/widgets.dart';
import 'package:thermion_dart/thermion_dart/thermion_viewer.dart';
import 'package:thermion_flutter/thermion/widgets/camera/gestures/v2/delegates.dart';
import 'package:thermion_flutter/src/gestures/delegates.dart';
import 'package:vector_math/vector_math_64.dart';
class DefaultZoomCameraDelegate {

View File

@@ -3,11 +3,11 @@ import 'package:flutter/gestures.dart';
import 'package:flutter/scheduler.dart';
import 'package:flutter/services.dart';
import 'package:logging/logging.dart';
import 'package:thermion_flutter/thermion/widgets/camera/gestures/v2/default_pick_delegate.dart';
import 'package:thermion_flutter/thermion/widgets/camera/gestures/v2/default_velocity_delegate.dart';
import 'package:thermion_flutter/thermion/widgets/camera/gestures/v2/delegates.dart';
import 'package:thermion_flutter/thermion/widgets/camera/gestures/v2/fixed_orbit_camera_rotation_delegate.dart';
import 'package:thermion_flutter/thermion/widgets/camera/gestures/v2/free_flight_camera_delegate.dart';
import 'package:thermion_flutter/src/gestures/default_pick_delegate.dart';
import 'package:thermion_flutter/src/gestures/default_velocity_delegate.dart';
import 'package:thermion_flutter/src/gestures/delegates.dart';
import 'package:thermion_flutter/src/gestures/fixed_orbit_camera_rotation_delegate.dart';
import 'package:thermion_flutter/src/gestures/free_flight_camera_delegate.dart';
import 'package:thermion_flutter/thermion_flutter.dart';
import 'package:vector_math/vector_math_64.dart';

View File

@@ -2,7 +2,7 @@ import 'dart:async';
import 'dart:math';
import 'package:flutter/services.dart';
import 'package:thermion_dart/thermion_dart/thermion_viewer.dart';
import 'package:thermion_flutter/thermion/widgets/camera/gestures/v2/delegates.dart';
import 'package:thermion_flutter/src/gestures/delegates.dart';
import 'package:vector_math/vector_math_64.dart';
/// A camera delegate that rotates the camera around the origin.

View File

@@ -4,7 +4,7 @@ import 'dart:ui';
import 'package:flutter/scheduler.dart';
import 'package:flutter/services.dart';
import 'package:thermion_dart/thermion_dart/thermion_viewer.dart';
import 'package:thermion_flutter/thermion/widgets/camera/gestures/v2/delegates.dart';
import 'package:thermion_flutter/src/gestures/delegates.dart';
import 'package:vector_math/vector_math_64.dart';
class FreeFlightCameraDelegate implements CameraDelegate {

View File

@@ -6,7 +6,7 @@ import 'package:logging/logging.dart';
import 'package:thermion_dart/thermion_dart/entities/abstract_gizmo.dart';
import 'package:thermion_dart/thermion_dart/thermion_viewer.dart';
import 'dart:ui';
import 'package:thermion_flutter/thermion/widgets/camera/gestures/thermion_gesture_handler.dart';
import 'package:thermion_flutter/src/widgets/camera/gestures/thermion_gesture_handler.dart';
// Renamed implementation
class PickingCameraGestureHandler implements ThermionGestureHandler {

View File

@@ -1,5 +1,5 @@
import 'package:flutter/widgets.dart';
import 'package:thermion_flutter/thermion/widgets/camera/gestures/thermion_gesture_handler.dart';
import 'package:thermion_flutter/src/widgets/camera/gestures/thermion_gesture_handler.dart';
class MobileGestureHandlerSelectorWidget extends StatelessWidget {
final ThermionGestureHandler handler;

View File

@@ -5,7 +5,7 @@ import 'package:thermion_dart/thermion_dart/thermion_viewer.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:thermion_flutter/thermion/widgets/camera/gestures/thermion_gesture_handler.dart';
import 'package:thermion_flutter/src/widgets/camera/gestures/thermion_gesture_handler.dart';
import 'package:vector_math/vector_math_64.dart' as v64;
class ThermionGestureDetectorDesktop extends StatefulWidget {

View File

@@ -2,7 +2,7 @@ import 'dart:async';
import 'package:flutter/gestures.dart';
import 'package:flutter/services.dart';
import 'package:thermion_flutter/thermion/widgets/camera/gestures/v2/delegates.dart';
import 'package:thermion_flutter/src/gestures/delegates.dart';
enum GestureType {
LMB_DOWN,

View File

@@ -3,7 +3,7 @@ import 'dart:io';
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:thermion_flutter/thermion/widgets/camera/gestures/thermion_gesture_handler.dart';
import 'package:thermion_flutter/src/widgets/camera/gestures/thermion_gesture_handler.dart';
///
/// A widget that captures swipe/pointer events.

View File

@@ -2,8 +2,8 @@ import 'dart:io';
import 'dart:math';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:thermion_flutter/thermion/widgets/thermion_widget_web.dart';
import 'package:thermion_flutter/thermion/widgets/transparent_filament_widget.dart';
import 'package:thermion_flutter/src/widgets/thermion_widget_web.dart';
import 'package:thermion_flutter/src/widgets/transparent_filament_widget.dart';
import 'package:thermion_flutter_platform_interface/thermion_flutter_platform_interface.dart';
import 'dart:async';

View File

@@ -1,11 +1,11 @@
library thermion_flutter;
export 'thermion/thermion_flutter_plugin.dart';
export 'thermion/widgets/thermion_widget.dart';
export 'thermion/widgets/camera/gestures/thermion_gesture_detector.dart';
export 'thermion/widgets/camera/gestures/thermion_gesture_handler.dart';
export 'thermion/widgets/camera/gestures/v2/delegate_gesture_handler.dart';
export 'src/thermion_flutter_plugin.dart';
export 'src/widgets/thermion_widget.dart';
export 'src/widgets/camera/gestures/thermion_gesture_detector.dart';
export 'src/widgets/camera/gestures/thermion_gesture_handler.dart';
export 'src/gestures/delegate_gesture_handler.dart';
export 'thermion/widgets/camera/camera_orientation_widget.dart';
export 'src/widgets/camera/camera_orientation_widget.dart';
export 'package:thermion_flutter_platform_interface/thermion_flutter_platform_interface.dart';
export 'package:thermion_dart/thermion_dart.dart';