Skip to content

Commit

Permalink
Prefer to import separate libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
fujidaiti committed Apr 18, 2024
1 parent 722ccc2 commit 7f48803
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 7 deletions.
11 changes: 10 additions & 1 deletion package/lib/src/draggable/draggable_sheet.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
import 'package:flutter/widgets.dart';
import '../../smooth_sheets.dart';

import '../foundation/framework.dart';
import '../foundation/keyboard_dismissible.dart';
import '../foundation/physics.dart';
import '../foundation/sheet_activity.dart';
import '../foundation/sheet_controller.dart';
import '../foundation/sheet_extent.dart';
import '../foundation/theme.dart';
import '../scrollable/scrollable_sheet.dart';
import 'sheet_draggable.dart';

/// A sheet that can be dragged.
///
Expand Down
3 changes: 2 additions & 1 deletion package/lib/src/foundation/sheet_activity.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import 'dart:math';
import 'package:flutter/gestures.dart';
import 'package:flutter/scheduler.dart';
import 'package:flutter/widgets.dart';
import '../../smooth_sheets.dart';
import 'notifications.dart';
import 'sheet_extent.dart';
import 'sheet_status.dart';

abstract class SheetActivity extends ChangeNotifier {
Expand Down
5 changes: 4 additions & 1 deletion package/lib/src/foundation/sheet_content_scaffold.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import 'dart:math';

import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import '../../smooth_sheets.dart';

import '../draggable/sheet_draggable.dart';
import 'framework.dart';
import 'sheet_extent.dart';

class SheetContentScaffold extends StatelessWidget {
const SheetContentScaffold({
Expand Down
7 changes: 6 additions & 1 deletion package/lib/src/foundation/sheet_extent.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import 'package:flutter/widgets.dart';

import '../../smooth_sheets.dart';
import '../draggable/draggable_sheet.dart';
import '../internal/double_utils.dart';
import '../scrollable/scrollable_sheet.dart';
import '../scrollable/scrollable_sheet_extent.dart';
import 'physics.dart';
import 'sheet_activity.dart';
import 'sheet_controller.dart';
import 'sheet_status.dart';

/// A representation of a visible height of the sheet.
Expand Down
2 changes: 1 addition & 1 deletion package/lib/src/modal/cupertino.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'dart:math';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import '../../smooth_sheets.dart';

import '../internal/double_utils.dart';
import 'modal_sheet.dart';

Expand Down
8 changes: 7 additions & 1 deletion package/lib/src/navigation/navigation_routes.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import 'package:flutter/material.dart';
import '../../smooth_sheets.dart';
import '../draggable/draggable_sheet.dart';
import '../draggable/sheet_draggable.dart';
import '../foundation/physics.dart';
import '../foundation/sheet_extent.dart';
import '../scrollable/scrollable_sheet.dart';
import '../scrollable/scrollable_sheet_extent.dart';
import 'navigation_route.dart';
import 'navigation_sheet.dart';

class ScrollableNavigationSheetRoute<T> extends NavigationSheetRoute<T>
with NavigationSheetRouteMixin<T> {
Expand Down
7 changes: 6 additions & 1 deletion package/lib/src/scrollable/scrollable_sheet.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:meta/meta.dart';
import '../../smooth_sheets.dart';
import '../foundation/framework.dart';
import '../foundation/keyboard_dismissible.dart';
import '../foundation/physics.dart';
import '../foundation/sheet_controller.dart';
import '../foundation/sheet_extent.dart';
import '../foundation/theme.dart';
import 'scrollable_sheet_extent.dart';

class ScrollableSheet extends StatelessWidget {
Expand Down

0 comments on commit 7f48803

Please sign in to comment.