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_colorpicker/flutter_colorpicker.dart';
|
||||
import 'package:flutter_hsvcolor_picker/flutter_hsvcolor_picker.dart';
|
||||
import 'package:manager_app/Components/rounded_button.dart';
|
||||
|
||||
import '../constants.dart';
|
||||
@ -18,8 +18,13 @@ showColorPicker (Color currentColor, Function onSelect, BuildContext context) {
|
||||
borderRadius: BorderRadius.all(Radius.circular(20.0))
|
||||
),
|
||||
content: SingleChildScrollView(
|
||||
child: SizedBox(
|
||||
width: 500,
|
||||
height: 500,
|
||||
child: ColorPicker(
|
||||
pickerColor: currentColor,
|
||||
color: currentColor,
|
||||
onChanged: changeColor,
|
||||
/*pickerColor: currentColor,
|
||||
onColorChanged: changeColor,
|
||||
colorPickerWidth: 300.0,
|
||||
pickerAreaHeightPercent: 0.7,
|
||||
@ -31,6 +36,7 @@ showColorPicker (Color currentColor, Function onSelect, BuildContext context) {
|
||||
.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"
|
||||
source: hosted
|
||||
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:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -438,6 +430,14 @@ packages:
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
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:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user