Update color picker (fix web build)
This commit is contained in:
parent
785301d908
commit
530157bbb2
@ -1,5 +1,5 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_colorpicker/flutter_colorpicker.dart';
|
import 'package:flutter_hsvcolor_picker/flutter_hsvcolor_picker.dart';
|
||||||
import 'package:manager_app/Components/rounded_button.dart';
|
import 'package:manager_app/Components/rounded_button.dart';
|
||||||
|
|
||||||
import '../constants.dart';
|
import '../constants.dart';
|
||||||
@ -18,19 +18,25 @@ showColorPicker (Color currentColor, Function onSelect, BuildContext context) {
|
|||||||
borderRadius: BorderRadius.all(Radius.circular(20.0))
|
borderRadius: BorderRadius.all(Radius.circular(20.0))
|
||||||
),
|
),
|
||||||
content: SingleChildScrollView(
|
content: SingleChildScrollView(
|
||||||
child: ColorPicker(
|
child: SizedBox(
|
||||||
pickerColor: currentColor,
|
width: 500,
|
||||||
onColorChanged: changeColor,
|
height: 500,
|
||||||
colorPickerWidth: 300.0,
|
child: ColorPicker(
|
||||||
pickerAreaHeightPercent: 0.7,
|
color: currentColor,
|
||||||
enableAlpha: true,
|
onChanged: changeColor,
|
||||||
displayThumbColor: true,
|
/*pickerColor: currentColor,
|
||||||
showLabel: true,
|
onColorChanged: changeColor,
|
||||||
paletteType: PaletteType.hsv,
|
colorPickerWidth: 300.0,
|
||||||
pickerAreaBorderRadius: const BorderRadius
|
pickerAreaHeightPercent: 0.7,
|
||||||
.only(
|
enableAlpha: true,
|
||||||
topLeft: const Radius.circular(2.0),
|
displayThumbColor: true,
|
||||||
topRight: const Radius.circular(2.0),
|
showLabel: true,
|
||||||
|
paletteType: PaletteType.hsv,
|
||||||
|
pickerAreaBorderRadius: const BorderRadius
|
||||||
|
.only(
|
||||||
|
topLeft: const Radius.circular(2.0),
|
||||||
|
topRight: const Radius.circular(2.0),
|
||||||
|
),*/
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
16
pubspec.lock
16
pubspec.lock
@ -422,14 +422,6 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "3.3.1"
|
version: "3.3.1"
|
||||||
flutter_colorpicker:
|
|
||||||
dependency: "direct main"
|
|
||||||
description:
|
|
||||||
name: flutter_colorpicker
|
|
||||||
sha256: "458a6ed8ea480eb16ff892aedb4b7092b2804affd7e046591fb03127e8d8ef8b"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "1.0.3"
|
|
||||||
flutter_compass:
|
flutter_compass:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -438,6 +430,14 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.8.0"
|
version: "0.8.0"
|
||||||
|
flutter_hsvcolor_picker:
|
||||||
|
dependency: "direct main"
|
||||||
|
description:
|
||||||
|
name: flutter_hsvcolor_picker
|
||||||
|
sha256: ea5868dbb1c840ef502bbf60168b26e18eab13a3a2b07bfef0c59a64e7fedc2c
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.5.0"
|
||||||
flutter_map:
|
flutter_map:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user