image_color_picker 0.0.2 copy "image_color_picker: ^0.0.2" to clipboard
image_color_picker: ^0.0.2 copied to clipboard

outdated

Pick color from image (assets/network/file) and get color hexcodes

example/lib/main.dart

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',
                        )));
          },
        ),
      ),
    );
  }
}
43
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Pick color from image (assets/network/file) and get color hexcodes

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on image_color_picker