flutter_circle_color_picker 0.1.0 copy "flutter_circle_color_picker: ^0.1.0" to clipboard
flutter_circle_color_picker: ^0.1.0 copied to clipboard

outdated

A beatiful circle color picker which picks hsl color for flutter.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_circle_color_picker/flutter_circle_color_picker.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  Color _currentColor = Colors.blue;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          backgroundColor: _currentColor,
          title: const Text('Circle color picker sample'),
        ),
        body: Center(
          child: CircleColorPicker(
            initialColor: _currentColor,
            onChanged: _onColorChanged,
          ),
        ),
      ),
    );
  }

  void _onColorChanged(Color color) {
    setState(() => _currentColor = color);
  }
}
69
likes
0
pub points
90%
popularity

Publisher

verified publisheritome.team

A beatiful circle color picker which picks hsl color for flutter.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_circle_color_picker