Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Remove logger
Browse files Browse the repository at this point in the history
  • Loading branch information
tugorez committed Feb 20, 2021
1 parent dba3370 commit 3ee4548
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
8 changes: 3 additions & 5 deletions packages/file_selector/file_selector/lib/file_selector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
// found in the LICENSE file.

import 'dart:async';
import 'package:logger/logger.dart';
import 'package:flutter/foundation.dart';
import 'package:file_selector_platform_interface/file_selector_platform_interface.dart';
export 'package:file_selector_platform_interface/file_selector_platform_interface.dart'
show XFile, XTypeGroup;

final _logger = Logger();

/// Open file dialog for loading files and return a file path
Future<XFile> openFile({
List<XTypeGroup> acceptedTypeGroups,
Expand Down Expand Up @@ -63,8 +61,8 @@ Future<String> getDirectoryPath({
void _verifyExtensions(List<XTypeGroup> acceptedTypeGroups) {
acceptedTypeGroups?.asMap()?.forEach((i, acceptedTypeGroup) {
acceptedTypeGroup.extensions?.asMap()?.forEach((j, ext) {
if (ext.startsWith('.')) {
_logger.w(
if (kDebugMode && ext.startsWith('.')) {
print(
'acceptedTypeGroups[${i}].extensions[${j}] with value "${ext}" is invalid.'
' Remove the leading dot.',
);
Expand Down
1 change: 0 additions & 1 deletion packages/file_selector/file_selector/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ dependencies:
flutter:
sdk: flutter
file_selector_platform_interface: ^1.0.0
logger: ^0.9.4

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 3ee4548

Please sign in to comment.