image_color_picker 0.0.2 image_color_picker: ^0.0.2 copied to clipboard
Pick color from image (assets/network/file) and get color hexcodes
import 'package:flutter/material.dart';
import 'package:image_color_picker/image_color_picker.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: HomePage(),
);
}
}
class HomePage extends StatefulWidget {
@override
_HomePageState createState() => _HomePageState();
}
class _HomePageState extends State<HomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: Center(
child: RaisedButton(
child: Text('View Image'),
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => NetworkImageBG(
networkpath:
'https://media-exp1.licdn.com/dms/image/C5622AQE7PotICN1XEw/feedshare-shrink_800/0?e=1588809600&v=beta&t=iIua7ZUVO7mP5uDnElu2GSbgwM0eUYJPgoWb8OZJkEs',
)));
},
),
),
);
}
}