Skip to content

Commit 52bcf75

Browse files
committed
chore: add barHeight and handleHeight properties.
1 parent 502dd0b commit 52bcf75

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/src/material/material_progress_bar.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ class MaterialVideoProgressBar extends StatelessWidget {
77
MaterialVideoProgressBar(
88
this.controller, {
99
this.height = kToolbarHeight,
10+
this.barHeight = 10,
11+
this.handleHeight = 6,
1012
ChewieProgressColors? colors,
1113
this.onDragEnd,
1214
this.onDragStart,
@@ -15,6 +17,8 @@ class MaterialVideoProgressBar extends StatelessWidget {
1517
}) : colors = colors ?? ChewieProgressColors();
1618

1719
final double height;
20+
final double barHeight;
21+
final double handleHeight;
1822
final VideoPlayerController controller;
1923
final ChewieProgressColors colors;
2024
final Function()? onDragStart;
@@ -25,8 +29,8 @@ class MaterialVideoProgressBar extends StatelessWidget {
2529
Widget build(BuildContext context) {
2630
return VideoProgressBar(
2731
controller,
28-
barHeight: 10,
29-
handleHeight: 6,
32+
barHeight: barHeight,
33+
handleHeight: handleHeight,
3034
drawShadow: true,
3135
colors: colors,
3236
onDragEnd: onDragEnd,

0 commit comments

Comments
 (0)