Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
open_file_manager
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dart-package
open_file_manager
Commits
19a30c94
Commit
19a30c94
authored
May 16, 2024
by
Nayan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Flutter lints & Dart analysis, added issue tracker
parent
c6d8efa1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
86 additions
and
121 deletions
+86
-121
example/analysis_options.yaml
+61
-25
example/pubspec.lock
+17
-25
example/pubspec.yaml
+4
-66
example/test/widget_test.dart
+2
-4
pubspec.yaml
+2
-1
No files found.
example/analysis_options.yaml
View file @
19a30c94
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.
# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include
:
package:flutter_lints/flutter.yaml
linter
:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at
# https://dart-lang.github.io/linter/lints/index.html.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules
:
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
use_enums
:
true
close_sinks
:
true
use_colored_box
:
true
use_raw_strings
:
true
unnecessary_late
:
true
avoid_void_async
:
true
throw_in_finally
:
true
use_decorated_box
:
true
use_named_constants
:
true
prefer_final_locals
:
true
cascade_invocations
:
true
directives_ordering
:
true
flutter_style_todos
:
true
unnecessary_lambdas
:
true
secure_pubspec_urls
:
true
use_super_parameters
:
true
cancel_subscriptions
:
true
prefer_single_quotes
:
true
sort_pub_dependencies
:
true
parameter_assignments
:
true
do_not_use_environment
:
true
avoid_final_parameters
:
true
unnecessary_statements
:
true
sized_box_shrink_expand
:
true
unnecessary_parenthesis
:
true
prefer_relative_imports
:
true
unnecessary_raw_strings
:
true
require_trailing_commas
:
true
prefer_if_null_operators
:
true
prefer_final_in_for_each
:
true
use_test_throws_matchers
:
true
type_annotate_public_apis
:
true
omit_local_variable_types
:
true
use_to_and_as_if_applicable
:
true
prefer_asserts_with_message
:
true
avoid_escaping_inner_quotes
:
true
join_return_with_assignment
:
true
no_adjacent_strings_in_list
:
true
unnecessary_await_in_return
:
true
avoid_double_and_int_checks
:
true
depend_on_referenced_packages
:
false
conditional_uri_does_not_exist
:
true
use_is_even_rather_than_modulo
:
true
prefer_null_aware_method_calls
:
true
avoid_redundant_argument_values
:
true
literal_only_boolean_expressions
:
true
use_setters_to_change_properties
:
true
avoid_types_on_closure_parameters
:
true
prefer_asserts_in_initializer_lists
:
true
avoid_positional_boolean_parameters
:
true
avoid_unused_constructor_parameters
:
true
use_if_null_to_convert_nulls_to_bools
:
true
prefer_constructors_over_static_methods
:
true
use_late_for_private_fields_and_variables
:
true
avoid_field_initializers_in_const_classes
:
true
no_leading_underscores_for_library_prefixes
:
true
prefer_function_declarations_over_variables
:
true
no_leading_underscores_for_local_identifiers
:
true
avoid_equals_and_hash_code_on_mutable_classes
:
true
prefer_if_elements_to_conditional_expressions
:
true
avoid_bool_literals_in_conditional_expressions
:
true
example/pubspec.lock
View file @
19a30c94
...
...
@@ -41,14 +41,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.18.0"
cupertino_icons:
dependency: "direct main"
description:
name: cupertino_icons
sha256: e35129dc44c9118cee2a5603506d823bab99c68393879edb440e0090d07586be
url: "https://pub.dev"
source: hosted
version: "1.0.5"
fake_async:
dependency: transitive
description:
...
...
@@ -66,10 +58,10 @@ packages:
dependency: "direct dev"
description:
name: flutter_lints
sha256:
aeb0b80a8b3709709c9cc496cdc027c5b3216796bc0af0ce1007eaf24464fd4c
sha256:
"3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c"
url: "https://pub.dev"
source: hosted
version: "
2.0.1
"
version: "
4.0.0
"
flutter_test:
dependency: "direct dev"
description: flutter
...
...
@@ -79,34 +71,34 @@ packages:
dependency: transitive
description:
name: leak_tracker
sha256: "7
8eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323f
a"
sha256: "7
f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341
a"
url: "https://pub.dev"
source: hosted
version: "10.0.
0
"
version: "10.0.
4
"
leak_tracker_flutter_testing:
dependency: transitive
description:
name: leak_tracker_flutter_testing
sha256:
b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0
sha256:
"06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8"
url: "https://pub.dev"
source: hosted
version: "
2.0.1
"
version: "
3.0.3
"
leak_tracker_testing:
dependency: transitive
description:
name: leak_tracker_testing
sha256:
a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47
sha256:
"6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
url: "https://pub.dev"
source: hosted
version: "
2
.0.1"
version: "
3
.0.1"
lints:
dependency: transitive
description:
name: lints
sha256: "
5e4a9cd06d447758280a8ac2405101e0e2094d2a1dbdd3756aec3fe7775ba593
"
sha256: "
976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235
"
url: "https://pub.dev"
source: hosted
version: "
2.0.1
"
version: "
4.0.0
"
matcher:
dependency: transitive
description:
...
...
@@ -127,10 +119,10 @@ packages:
dependency: transitive
description:
name: meta
sha256:
d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04
sha256:
"7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136"
url: "https://pub.dev"
source: hosted
version: "1.1
1
.0"
version: "1.1
2
.0"
open_file_manager:
dependency: "direct main"
description:
...
...
@@ -203,10 +195,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: "
5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b
"
sha256: "
9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f
"
url: "https://pub.dev"
source: hosted
version: "0.
6.1
"
version: "0.
7.0
"
vector_math:
dependency: transitive
description:
...
...
@@ -219,10 +211,10 @@ packages:
dependency: transitive
description:
name: vm_service
sha256:
b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957
sha256:
"3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec"
url: "https://pub.dev"
source: hosted
version: "1
3.0.0
"
version: "1
4.2.1
"
sdks:
dart: ">=3.3.0 <4.0.0"
flutter: ">=3.
0.0
"
flutter: ">=3.
18.0-18.0.pre.54
"
example/pubspec.yaml
View file @
19a30c94
name
:
open_file_manager_example
description
:
Demonstrates how to use the open_file_manager plugin.
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to
:
'
none'
# Remove this line if you wish to publish to pub.dev
publish_to
:
'
none'
environment
:
sdk
:
'
>=3.1.0
<4.0.0'
# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies
:
flutter
:
sdk
:
flutter
open_file_manager
:
# When depending on this package from a real application you should use:
# open_file_manager: ^x.y.z
# See https://dart.dev/tools/pub/dependencies#version-constraints
# The example app is bundled with the plugin so we use a path dependency on
# the parent directory to use the current plugin's version.
path
:
../
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons
:
^1.0.2
dev_dependencies
:
flutter_lints
:
^4.0.0
flutter_test
:
sdk
:
flutter
# The "flutter_lints" package below contains a set of recommended lints to
# encourage good coding practices. The lint set provided by the package is
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints
:
^2.0.0
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter packages.
flutter
:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design
:
true
# To add assets to your application, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
uses-material-design
:
true
\ No newline at end of file
example/test/widget_test.dart
View file @
19a30c94
...
...
@@ -7,19 +7,17 @@
import
'package:flutter/material.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:open_file_manager_example/main.dart'
;
void
main
(
)
{
testWidgets
(
'Verify Platform version'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'Verify Platform version'
,
(
tester
)
async
{
// Build our app and trigger a frame.
await
tester
.
pumpWidget
(
const
MyApp
());
// Verify that platform version is retrieved.
expect
(
find
.
byWidgetPredicate
(
(
Widget
widget
)
=>
widget
is
Text
&&
widget
.
data
!.
startsWith
(
'Running on:'
),
(
widget
)
=>
widget
is
Text
&&
widget
.
data
!.
startsWith
(
'Running on:'
),
),
findsOneWidget
,
);
...
...
pubspec.yaml
View file @
19a30c94
...
...
@@ -3,6 +3,7 @@ description: A flutter plugin to open default file manager app. on an Android, i
version
:
1.0.1
homepage
:
https://auberginesolutions.com
repository
:
https://github.com/nayanAubie/open_file_manager
issue_tracker
:
https://github.com/nayanAubie/open_file_manager/issues
environment
:
sdk
:
'
>=3.3.0
<4.0.0'
...
...
@@ -14,7 +15,7 @@ dependencies:
plugin_platform_interface
:
^2.1.8
dev_dependencies
:
flutter_lints
:
^
3.0.2
flutter_lints
:
^
4.0.0
flutter_test
:
sdk
:
flutter
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment