fast_color_picker 0.1.1 copy "fast_color_picker: ^0.1.1" to clipboard
fast_color_picker: ^0.1.1 copied to clipboard

This package provides a color picker like in story editor of Instagram.

example/lib/main.dart

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:fast_color_picker/fast_color_picker.dart';

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

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

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(home: Home());
  }
}

class Home extends StatefulWidget {
  @override
  _HomeState createState() => _HomeState();
}

class _HomeState extends State<Home> {
  Color _color = Colors.white;
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.grey,
      appBar: AppBar(
        title: const Text('fast_color_picker'),
        actions: [],
      ),
      body: Center(
        child: FastColorPicker(
          selectedColor: _color,
          onColorSelected: (color) {
            setState(() {
              _color = color;
            });
          },
        ),
      ),
    );
  }
}
46
likes
150
pub points
81%
popularity

Publisher

verified publisherfusarihan.com

This package provides a color picker like in story editor of Instagram.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, smooth_page_indicator, spring_button

More

Packages that depend on fast_color_picker