showColorPickerPage function

Future<Color?> showColorPickerPage(
  1. BuildContext context,
  2. Color? initialColor,
  3. String title
)

Implementation

Future<Color?> showColorPickerPage(BuildContext context, Color? initialColor, String title) async {
  return Navigator.of(context).push(
    MaterialPageRoute(
      builder: (context) {
        return ColorPickerPage(
          title: title,
          initialColor: initialColor,
          // onColorChanged: onColorChanged,
        );
      },
    ),
  );
}