diegoveloper / flutter_percent_indicator

Flutter percent indicator library
BSD 2-Clause "Simplified" License
691 stars 206 forks source link

RTL orientation #11

Closed ahmednet0001 closed 5 years ago

ahmednet0001 commented 5 years ago

Hi Thanks very much for this package. My problem is that I want the tape to appear from right to left. Although I use Directionality widget It did not work isuss

diegoveloper commented 5 years ago

Just change the progressColor and backgroundColor

On Fri, Dec 21, 2018, 7:51 PM Ahmed AbdEl-rheem Osman < notifications@github.com wrote:

Hi Thanks very much for this package. My problem is that I want the tape to appear from right to left. Although I use Directionality widget It did not work [image: isuss] https://user-images.githubusercontent.com/11617821/50368700-6045da00-0594-11e9-8ecc-8677518517be.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/diegoveloper/flutter_percent_indicator/issues/11, or mute the thread https://github.com/notifications/unsubscribe-auth/AEq90HwFPxY8WqrciRvC9c6280LGxNy8ks5u7YH3gaJpZM4ZfQPE .

ahmednet0001 commented 5 years ago

But as percent increases it will move from left to right

diegoveloper commented 5 years ago

1.0 - your_percent_value

On Fri, Dec 21, 2018, 8:02 PM Ahmed AbdEl-rheem Osman < notifications@github.com wrote:

But as percent increases it will move from left to right

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/diegoveloper/flutter_percent_indicator/issues/11#issuecomment-449532994, or mute the thread https://github.com/notifications/unsubscribe-auth/AEq90LeXXC-_j7ZInKP-SmezZWyw5qSxks5u7YS-gaJpZM4ZfQPE .

ahmednet0001 commented 5 years ago

Exception when using negative percent
screenshot_1545440995

diegoveloper commented 5 years ago

Your_percent_value must not be greater than 1.0.

1.0 - your_percent_value will never be negative.

On Fri, Dec 21, 2018, 8:10 PM Ahmed AbdEl-rheem Osman < notifications@github.com wrote:

Exception when using negative percent [image: screenshot_1545440995] https://user-images.githubusercontent.com/11617821/50368972-2cb87f00-0597-11e9-9878-36e17c9c3728.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/diegoveloper/flutter_percent_indicator/issues/11#issuecomment-449533624, or mute the thread https://github.com/notifications/unsubscribe-auth/AEq90MEmyQsvXJQAslHiqM-YuMYq31bqks5u7YaggaJpZM4ZfQPE .

ahmednet0001 commented 5 years ago

OK I know that , but what I change to make it RTL orientation

diegoveloper commented 5 years ago

Change colors. Background with progressColor and change the value to : (1.0 - your_percent-value) what is the result of that change? Post code and result image.

On Fri, Dec 21, 2018, 8:18 PM Ahmed AbdEl-rheem Osman < notifications@github.com wrote:

OK I know that , but what I change to make it RTL orientation

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/diegoveloper/flutter_percent_indicator/issues/11#issuecomment-449534170, or mute the thread https://github.com/notifications/unsubscribe-auth/AEq90K9qcKlQtEx4TPsaGd6Cm93fz1Q0ks5u7YhUgaJpZM4ZfQPE .

ahmednet0001 commented 5 years ago

isuss

diegoveloper commented 5 years ago

Set percent to 0.5

On Fri, Dec 21, 2018, 8:23 PM Ahmed AbdEl-rheem Osman < notifications@github.com wrote:

[image: isuss] https://user-images.githubusercontent.com/11617821/50369114-eb28d380-0598-11e9-9346-4955b79ee29f.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/diegoveloper/flutter_percent_indicator/issues/11#issuecomment-449534574, or mute the thread https://github.com/notifications/unsubscribe-auth/AEq90A2bO6gA07hlHAvykzKf6BrxalJLks5u7YmfgaJpZM4ZfQPE .

ahmednet0001 commented 5 years ago

I understand what you say from beginning , But this solution for static progress

diegoveloper commented 5 years ago

If you set: percent: 1.0 - your_percent_value is not static.

On Fri, Dec 21, 2018, 8:28 PM Ahmed AbdEl-rheem Osman < notifications@github.com wrote:

I understand what you say from beginning , But this solution for static progress

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/diegoveloper/flutter_percent_indicator/issues/11#issuecomment-449535014, or mute the thread https://github.com/notifications/unsubscribe-auth/AEq90IxGx-r_Z7kERxsagSHlpc5pxQAOks5u7YragaJpZM4ZfQPE .

ahmednet0001 commented 5 years ago

Ok anyway thank you "diegoveloper isuss "I solve it using Transform.rotate

diegoveloper commented 5 years ago

Nice :)