File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ class MaterialVideoProgressBar extends StatelessWidget {
7
7
MaterialVideoProgressBar (
8
8
this .controller, {
9
9
this .height = kToolbarHeight,
10
+ this .barHeight = 10 ,
11
+ this .handleHeight = 6 ,
10
12
ChewieProgressColors ? colors,
11
13
this .onDragEnd,
12
14
this .onDragStart,
@@ -15,6 +17,8 @@ class MaterialVideoProgressBar extends StatelessWidget {
15
17
}) : colors = colors ?? ChewieProgressColors ();
16
18
17
19
final double height;
20
+ final double barHeight;
21
+ final double handleHeight;
18
22
final VideoPlayerController controller;
19
23
final ChewieProgressColors colors;
20
24
final Function ()? onDragStart;
@@ -25,8 +29,8 @@ class MaterialVideoProgressBar extends StatelessWidget {
25
29
Widget build (BuildContext context) {
26
30
return VideoProgressBar (
27
31
controller,
28
- barHeight: 10 ,
29
- handleHeight: 6 ,
32
+ barHeight: barHeight ,
33
+ handleHeight: handleHeight ,
30
34
drawShadow: true ,
31
35
colors: colors,
32
36
onDragEnd: onDragEnd,
You can’t perform that action at this time.
0 commit comments