Skip to content

Commit 1a169aa

Browse files
committed
Update ResponsiveValue Reverse Order
- Later conditions override earlier conditions, just like how a stack works.
1 parent 81c1fa0 commit 1a169aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/responsive_value.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class ResponsiveValue<T> {
7979
ResponsiveBreakpoints.of(context);
8080
double screenWidth = responsiveWrapperData.screenWidth;
8181

82-
for (Condition condition in conditions) {
82+
for (Condition condition in conditions.reversed) {
8383
if (condition.condition == Conditional.EQUALS) {
8484
if (condition.name == responsiveWrapperData.breakpoint.name) {
8585
return condition;

0 commit comments

Comments
 (0)