objectdb icon indicating copy to clipboard operation
objectdb copied to clipboard

1.2.1 warning for implimentation file import

Open jonny7737 opened this issue 3 years ago • 3 comments

import 'package:objectdb/src/objectdb_storage_filesystem.dart'; And I suspect the other storage imports gives a warning for importing implimentation files from another package.

Perhaps they should be exported from objectdb,dart?

jonny7737 avatar Mar 21 '21 15:03 jonny7737

I am aware of this issue. Unfortunately I haven't yet figured out how to solve the platform dependent exports. I could just export them in the objectdb.dart file. But then the package won't be listed as compatible with Flutter Native/Web at pub.dev

marioreggiori avatar Mar 22 '21 14:03 marioreggiori

The simplest solution to this is to include a ignore comment:

// ignore: implementation_imports
import 'package:objectdb/src/objectdb_storage_filesystem.dart';

avioli avatar Apr 27 '21 01:04 avioli

### :^)

jonny7737 avatar Apr 27 '21 03:04 jonny7737