question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use linear-progress with determinate state?

See original GitHub issue

I tried just passing progress as a number between [0, 1], as the MDC docs say to do, but it always renders the progress bar completely full

JSX:

<LinearProgress progress="0.5" />

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
prateekbhcommented, Nov 15, 2017

it is there… sorry the doc says its values are true/false but actually its from 0 to 1

progress={0..1}

1reaction
garrett-thompsoncommented, Oct 23, 2017

Awesome!

I think progress is defaulting to 1 as well, which on initial load causes an animation from full bar down to whatever your desired initial progress is.

Maybe set this initial progress to 0 instead?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Material UI linear progress animation when using data
I am trying to modify it to use data from a json file so that it stops at the value that I specified...
Read more >
How to create a Progressbar in Material-UI React
One is circular progress bar and another is linear progress bar. ... We can use a state variable and assign its value to...
Read more >
Linear Progress Indicator In Flutter | by vikas tiwari - FlutterDevs
However, if some value has been passed then it will work as a determinate progress indicator. > backgroundColor: This property is used to...
Read more >
LinearProgress - React Native Elements
They communicate an app's state and indicate available actions, such as whether users can navigate away from the current screen.
Read more >
LinearProgressIndicator class - material library - Dart API
A widget that shows progress along a line. There are two kinds of linear progress indicators: Determinate. Determinate progress indicators have a specific ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found