Skip to content

Commit

Permalink
Improve: package structure
Browse files Browse the repository at this point in the history
  • Loading branch information
AmosHuKe committed Nov 29, 2023
1 parent 9ce5595 commit 38a6de9
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 34 deletions.
6 changes: 3 additions & 3 deletions lib/flutter_tilt.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
library flutter_tilt;

export 'src/enums.dart';
export 'src/tilt.dart';
export 'src/tilt_light.dart';
export 'src/tilt_shadow.dart';
export 'src/enums.dart';
export 'src/config/tilt_light_config.dart';
export 'src/config/tilt_shadow_config.dart';
export 'src/config/tilt_config.dart';
export 'src/data/tilt_data.dart' show TiltDataModel;
export 'src/widget/tilt_light.dart';
export 'src/widget/tilt_shadow.dart';
8 changes: 4 additions & 4 deletions lib/src/tilt.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import 'package:flutter/widgets.dart';

import 'utils.dart';
import 'enums.dart';
import 'gestures_listener.dart';
import 'tilt_stream_builder.dart';
import 'tilt_container.dart';
import 'tilt_parallax_container.dart';
import 'data/tilt_data.dart';
import 'state/tilt_state.dart';
import 'config/tilt_light_config.dart';
import 'config/tilt_shadow_config.dart';
import 'config/tilt_config.dart';
import 'widget/gestures_listener.dart';
import 'widget/tilt_container.dart';
import 'widget/tilt_parallax_container.dart';
import 'widget/tilt_stream_builder.dart';

/// 倾斜
class Tilt extends TiltContainer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import 'dart:async' as async;
import 'package:flutter/gestures.dart';
import 'package:flutter/widgets.dart';

import 'enums.dart';
import 'data/tilt_data.dart';
import 'config/tilt_config.dart';
import '../enums.dart';
import '../data/tilt_data.dart';
import '../config/tilt_config.dart';

/// 手势监听
class GesturesListener extends StatefulWidget {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import 'package:flutter/widgets.dart';

import 'enums.dart';
import 'tilt_light.dart';
import 'tilt_shadow.dart';
import 'data/tilt_data.dart';
import 'state/tilt_state.dart';
import 'config/tilt_light_config.dart';
import 'config/tilt_shadow_config.dart';
import 'config/tilt_config.dart';
import 'internal/tilt_tween_animation_mixin.dart';
import '../enums.dart';
import '../data/tilt_data.dart';
import '../state/tilt_state.dart';
import '../config/tilt_light_config.dart';
import '../config/tilt_shadow_config.dart';
import '../config/tilt_config.dart';
import '../internal/tilt_tween_animation_mixin.dart';

class TiltContainer extends StatefulWidget {
const TiltContainer({
Expand Down
8 changes: 4 additions & 4 deletions lib/src/tilt_light.dart → lib/src/widget/tilt_light.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'package:flutter/widgets.dart';

import 'utils.dart';
import 'enums.dart';
import 'config/tilt_light_config.dart';
import 'internal/tilt_decoration_mixin.dart';
import '../utils.dart';
import '../enums.dart';
import '../config/tilt_light_config.dart';
import '../internal/tilt_decoration_mixin.dart';

/// 光源
class TiltLight extends StatelessWidget with TiltDecoration {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'package:flutter/widgets.dart';

import 'enums.dart';
import 'state/tilt_state.dart';
import 'config/tilt_config.dart';
import 'internal/tilt_tween_animation_mixin.dart';
import '../enums.dart';
import '../state/tilt_state.dart';
import '../config/tilt_config.dart';
import '../internal/tilt_tween_animation_mixin.dart';

/// 倾斜视差
@immutable
Expand Down
10 changes: 5 additions & 5 deletions lib/src/tilt_shadow.dart → lib/src/widget/tilt_shadow.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import 'package:flutter/widgets.dart';

import 'utils.dart';
import 'enums.dart';
import 'config/tilt_light_config.dart';
import 'config/tilt_shadow_config.dart';
import 'internal/tilt_decoration_mixin.dart';
import '../utils.dart';
import '../enums.dart';
import '../config/tilt_light_config.dart';
import '../config/tilt_shadow_config.dart';
import '../internal/tilt_decoration_mixin.dart';

/// 阴影
class TiltShadow extends StatelessWidget with TiltDecoration {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import 'package:flutter/widgets.dart';
import 'package:sensors_plus/sensors_plus.dart';
import 'package:stream_transform/stream_transform.dart';

import 'utils.dart';
import 'enums.dart';
import 'data/tilt_data.dart';
import 'config/tilt_config.dart';
import '../utils.dart';
import '../enums.dart';
import '../data/tilt_data.dart';
import '../config/tilt_config.dart';

/// Tilt StreamBuilder
class TiltStreamBuilder extends StatefulWidget {
Expand Down

0 comments on commit 38a6de9

Please sign in to comment.