Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non dragable progress bar #498

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ensarkurrt
Copy link

@ensarkurrt ensarkurrt commented Jun 21, 2021

Hi, i need to non-draggable progress bar feature on player. And Chewie Player too for power :) So i modified this library. I hope you merge that feature. I missed add Feature label. Sorry for that.

lib/src/chewie_player.dart Outdated Show resolved Hide resolved
@Ahmadre
Copy link
Collaborator

Ahmadre commented Sep 7, 2021

thx. I will run the CI, after it's green, we can merge this 👍🏼

@ensarkurrt
Copy link
Author

ensarkurrt commented Sep 7, 2021

thx. I will run the CI, after it's green, we can merge this 👍🏼

it’s red. I will fix errors.

@ensarkurrt
Copy link
Author

thx. I will run the CI, after it's green, we can merge this 👍🏼

it’s red. I will fix errors.

Fixed. Can you run CI please ?

@Ahmadre
Copy link
Collaborator

Ahmadre commented Sep 10, 2021

thx. I will run the CI, after it's green, we can merge this 👍🏼

it’s red. I will fix errors.

Fixed. Can you run CI please ?

still failing :/

@diegotori
Copy link
Collaborator

@ensarkurrt looks like there's some conflicts with your changes preventing merging. Please resolve those first so that I can merge it into master. Otherwise, the change LGTM. @maherjaafar what say you regarding this change?

Thanks in advance for this change

@diegotori
Copy link
Collaborator

@ensarkurrt also looks like CI was failing. Please ensure that it passes lint and formatting checks. Thanks.

@@ -263,6 +264,7 @@ class ChewieController extends ChangeNotifier {
double? aspectRatio,
bool? autoInitialize,
bool? autoPlay,
bool? draggableProgressBar,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
bool? draggableProgressBar,
bool draggableProgressBar,

Comment on lines +105 to +119
child: Center(
child: Container(
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
color: Colors.transparent,
child: CustomPaint(
painter: _ProgressBarPainter(
value: controller.value,
colors: widget.colors,
barHeight: widget.barHeight,
handleHeight: widget.handleHeight,
drawShadow: widget.drawShadow,
),
),
),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be extracted to a Getter and use it between the lines 122-137

Widget get centeredProgressBar => Center(
                child: Container(
                  height: MediaQuery.of(context).size.height,
                  width: MediaQuery.of(context).size.width,
                  color: Colors.transparent,
                  child: CustomPaint(
                    painter: _ProgressBarPainter(
                      value: controller.value,
                      colors: widget.colors,
                      barHeight: widget.barHeight,
                      handleHeight: widget.handleHeight,
                      drawShadow: widget.drawShadow,
                    ),
                  ),
                ),
              );

@ensarkurrt
Copy link
Author

@diegotori thanks for your reply. I will fix the issues.
@maherjaafar okey i will check out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants