File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change 22// All rights reserved. Use of this source code is governed by a BSD-style
33// license that can be found in the LICENSE.md file.
44
5- import 'dart:math' ;
6-
75import 'package:equatable/equatable.dart' ;
86import 'package:json_annotation/json_annotation.dart' ;
97
@@ -118,27 +116,6 @@ class SliderNode extends SceneNode with CustomPropertiesMixin {
118116
119117 @override
120118 Map toJson () => _$SliderNodeToJson (this );
121-
122- @override
123- BoxConstraintsModel internalConstraints ({
124- required SizeFit horizontalFit,
125- required SizeFit verticalFit,
126- }) {
127- const trackBleedingPixels = 2 ;
128- final double thumbSize = properties.thumbRadius * 2 ;
129- final double width = properties.showThumb
130- ? thumbSize + (trackBleedingPixels * 2 )
131- : trackBleedingPixels * 2 ;
132- final double height = properties.showThumb
133- ? max (thumbSize, properties.trackHeight + trackBleedingPixels)
134- : properties.trackHeight + trackBleedingPixels;
135- return super
136- .internalConstraints (
137- horizontalFit: horizontalFit,
138- verticalFit: verticalFit,
139- )
140- .union (BoxConstraintsModel (minWidth: width, minHeight: height));
141- }
142119}
143120
144121/// Holds configurable properties of the slider.
You can’t perform that action at this time.
0 commit comments