Skip to content

Commit

Permalink
refactor!: moved all files to src/ dir (#103)
Browse files Browse the repository at this point in the history
* refactor!: moved all files to `src/` dir

* linter - import rules added
  • Loading branch information
daadu authored Dec 18, 2021
1 parent dade980 commit 7c174c1
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 12 deletions.
3 changes: 3 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ linter:
# pub related: https://dart.dev/tools/linter-rules#pub-rules
- depend_on_referenced_packages
- secure_pubspec_urls
# import related
- always_use_package_imports
- implementation_imports

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
10 changes: 5 additions & 5 deletions lib/backdrop.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
library backdrop;

export 'app_bar.dart';
export 'button.dart';
export 'navigation.dart';
export 'scaffold.dart';
export 'sub_header.dart';
export 'src/app_bar.dart';
export 'src/button.dart';
export 'src/navigation.dart';
export 'src/scaffold.dart';
export 'src/sub_header.dart';
3 changes: 1 addition & 2 deletions lib/app_bar.dart → lib/src/app_bar.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:backdrop/button.dart';
import 'package:backdrop/scaffold.dart';
import 'package:backdrop/backdrop.dart';
import 'package:flutter/material.dart';

/// A material app bar that offers functionality for triggering the
Expand Down
3 changes: 1 addition & 2 deletions lib/button.dart → lib/src/button.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:backdrop/app_bar.dart';
import 'package:backdrop/scaffold.dart';
import 'package:backdrop/backdrop.dart';
import 'package:flutter/material.dart';

/// An animated button that can be used to trigger the backdrop functionality of
Expand Down
2 changes: 1 addition & 1 deletion lib/navigation.dart → lib/src/navigation.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:backdrop/scaffold.dart';
import 'package:backdrop/backdrop.dart';
import 'package:flutter/material.dart';

/// Implements the back layer to be used for navigation.
Expand Down
2 changes: 1 addition & 1 deletion lib/scaffold.dart → lib/src/scaffold.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:backdrop/app_bar.dart';
import 'package:backdrop/backdrop.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/sub_header.dart → lib/src/sub_header.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:backdrop/scaffold.dart';
import 'package:backdrop/backdrop.dart';
import 'package:flutter/material.dart';

/// A wrapper for adding a sub-header to the used backdrop front layer(s).
Expand Down

0 comments on commit 7c174c1

Please sign in to comment.