diff --git a/lib/main.dart b/lib/main.dart index 1867beb..b5b9dd2 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -41,9 +41,9 @@ class MyApp extends StatelessWidget { background: Container(color: const Color(0xFFF5F5F5)), child: ResponsiveScaledBox( width: ResponsiveValue(context, conditionalValues: [ - const Condition.equals(name: MOBILE, value: 450), - const Condition.between(start: 800, end: 1100, value: 800), - const Condition.between(start: 1000, end: 1200, value: 1000), + Condition.equals(name: MOBILE, value: 450), + Condition.between(start: 800, end: 1100, value: 800), + Condition.between(start: 1000, end: 1200, value: 1000), // There are no conditions for width over 1200 // because the `maxWidth` is set to 1200 via the MaxWidthBox. ]).value, diff --git a/lib/main_advanced.dart b/lib/main_advanced.dart index 687832f..fe537da 100644 --- a/lib/main_advanced.dart +++ b/lib/main_advanced.dart @@ -51,10 +51,10 @@ class MyApp extends StatelessWidget { // Set the fixed width value based on the active breakpoint. width: ResponsiveValue(context, conditionalValues: [ - const Condition.equals(name: MOBILE, value: 450), - const Condition.between( + Condition.equals(name: MOBILE, value: 450), + Condition.between( start: 800, end: 1100, value: 800), - const Condition.between( + Condition.between( start: 1000, end: 1200, value: 1000), // There are no conditions for width over 1200 // because the `maxWidth` is set to 1200 via the MaxWidthBox.