@@ -2,6 +2,7 @@ import 'package:flutter/gestures.dart';
22import 'package:flutter/material.dart' ;
33import 'package:flutter/services.dart' ;
44import 'package:mizer/consts.dart' ;
5+ import 'package:mizer/extensions/color_extensions.dart' ;
56import 'package:mizer/widgets/high_contrast_text.dart' ;
67
78import 'decoration.dart' ;
@@ -87,20 +88,28 @@ class _FaderInputState extends State<FaderInput> {
8788 onVerticalDragUpdate: (update) => _onInput (constraints, update.localPosition),
8889 onTapDown: (update) => _onInput (constraints, update.localPosition),
8990 child: Container (
90- decoration: BoxDecoration (color: Grey700 ),
91- // decoration: ControlDecoration(
92- // gradient: widget.gradient, color: widget.color, highlight: widget.highlight),
91+ decoration: BoxDecoration (color: widget.color? .dimmed ?? Grey700 ),
9392 child: MouseRegion (
9493 cursor: SystemMouseCursors .click,
95- child: Align (
96- alignment: AlignmentDirectional (0 , y),
97- child: Container (
98- color: widget.highlight == true
99- ? HIGHLIGHT_CONTROL_COLOR
100- : DEFAULT_CONTROL_COLOR ,
101- alignment: AlignmentDirectional .center,
102- constraints: BoxConstraints .expand (height: 30 ),
103- child: Text ("$percentage %" , textAlign: TextAlign .center))),
94+ child: Stack (
95+ alignment: AlignmentGeometry .bottomCenter,
96+ children: [
97+ Container (
98+ color: widget.color ?? Grey600 ,
99+ alignment: AlignmentGeometry .bottomCenter,
100+ height: this .value * constraints.maxHeight,
101+ ),
102+ Align (
103+ alignment: AlignmentDirectional (0 , y),
104+ child: Container (
105+ color: widget.highlight == true
106+ ? HIGHLIGHT_CONTROL_COLOR
107+ : DEFAULT_CONTROL_COLOR ,
108+ alignment: AlignmentDirectional .center,
109+ constraints: BoxConstraints .expand (height: 30 ),
110+ child: Text ("$percentage %" , textAlign: TextAlign .center))),
111+ ],
112+ ),
104113 ),
105114 ),
106115 );
0 commit comments