all sliders visible where it's needed
This commit is contained in:
parent
f1b1b23234
commit
4dbe3d07a3
@ -192,6 +192,8 @@ class FilcColorPickerState extends State<FilcColorPicker> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
bool advOverride = widget.colorMode == CustomColorMode.grade ? true : false;
|
||||||
|
|
||||||
if (MediaQuery.of(context).orientation == Orientation.portrait ||
|
if (MediaQuery.of(context).orientation == Orientation.portrait ||
|
||||||
widget.portraitOnly) {
|
widget.portraitOnly) {
|
||||||
return Column(
|
return Column(
|
||||||
@ -218,7 +220,7 @@ class FilcColorPickerState extends State<FilcColorPicker> {
|
|||||||
child: colorPickerSlider(TrackType.saturation),
|
child: colorPickerSlider(TrackType.saturation),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (isAdvancedView)
|
if (isAdvancedView || advOverride)
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.only(left: 12.0, right: 12.0),
|
padding: const EdgeInsets.only(left: 12.0, right: 12.0),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
@ -230,7 +232,7 @@ class FilcColorPickerState extends State<FilcColorPicker> {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (isAdvancedView &&
|
if ((isAdvancedView || advOverride) &&
|
||||||
widget.colorMode != CustomColorMode.theme &&
|
widget.colorMode != CustomColorMode.theme &&
|
||||||
widget.colorMode != CustomColorMode.enterId)
|
widget.colorMode != CustomColorMode.enterId)
|
||||||
Padding(
|
Padding(
|
||||||
@ -348,7 +350,8 @@ class FilcColorPickerState extends State<FilcColorPicker> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (widget.colorMode != CustomColorMode.theme &&
|
if (widget.colorMode != CustomColorMode.theme &&
|
||||||
widget.colorMode != CustomColorMode.enterId)
|
widget.colorMode != CustomColorMode.enterId &&
|
||||||
|
!advOverride)
|
||||||
Material(
|
Material(
|
||||||
color: Colors.transparent,
|
color: Colors.transparent,
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user