'Is there a way to reverse a LinearProgressBar in flutter? [closed]

So I want a LinearProgressBar that goes from right to left. So basically in reverse. Is there a line of code I need to add? Couldn't find anything.

LinearProgressIndicator (...)

Here's what we're already getting:

Left to right progress indicator

Here's what we're looking for:

enter image description here



Solution 1:[1]

Try using a Transform widget. I do not have access to test the Matrix4, but it should flip over the y-axis give my map (x, y, z) => (-x, y, z).

Transform(
  transform: Matrix4.diagonal3Values(-1.0, 1.0, 1.0),
  child: LinearProgressIndicator(),
)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1