Skip to content

[DEPRECATED] Palette implementation for Flutter. It uses native iOS and Android implementations. We are using it internally at PostMuse

License

Notifications You must be signed in to change notification settings

andreidiaconu/FlutterPalette

Repository files navigation

Flutter Palette

Palette implementation for Flutter. It uses native iOS and Android implementations.

Palette palette = await PaletteLib.getPalette(imageFile.path);
print(palette.vibrant);

DEPRECATED - There's something better out there

Use https://pub.dartlang.org/packages/palette_generator instead of this.

While we still use this implementation in our app and will keep maintaining it for now, the palette_generator plugin is really cool and fully written in Dart. We intend to move our own app to use it and consolidate any bug fixing in one good plugin instead of many smaller, not so well maintained plugins. You can still look around this repo if you want to see a decent example for creating an async, computation heavy plugin example for Flutter.

Native implementation

Known issues

  • Library is not published. You can use it by declaring it as a git dependency in your pubspec
  • iOS library has not been updated to Swift 4.0 (it uses an old SwiftPriorityQueue version). We manually fixed the few issues reported by xcode on our machines. This is not ideal. There is a pull request open for that.

Getting Started

License

This repo and library is published under Apache License 2.0. Feel free to use it.

About

[DEPRECATED] Palette implementation for Flutter. It uses native iOS and Android implementations. We are using it internally at PostMuse

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published