A package to help you get the main color from a pickture
https://pub.dev/packages/main_color/versions/0.0.4
Add this to your package's pubspec.yaml file:
dependencies: main_color: ^0.0.3
You can install packages from the command line:
with Flutter:
$ flutter pub get
Alternatively, your editor might support flutter pub get
.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:main_color/main_color.dart';