Skip to content

Commit f5c1dd5

Browse files
committed
Update Condition Required Value
1 parent 96b8c24 commit f5c1dd5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/main.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ class MyApp extends StatelessWidget {
4141
background: Container(color: const Color(0xFFF5F5F5)),
4242
child: ResponsiveScaledBox(
4343
width: ResponsiveValue<double>(context, conditionalValues: [
44-
const Condition.equals(name: MOBILE, value: 450),
45-
const Condition.between(start: 800, end: 1100, value: 800),
46-
const Condition.between(start: 1000, end: 1200, value: 1000),
44+
Condition.equals(name: MOBILE, value: 450),
45+
Condition.between(start: 800, end: 1100, value: 800),
46+
Condition.between(start: 1000, end: 1200, value: 1000),
4747
// There are no conditions for width over 1200
4848
// because the `maxWidth` is set to 1200 via the MaxWidthBox.
4949
]).value,

lib/main_advanced.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ class MyApp extends StatelessWidget {
5151
// Set the fixed width value based on the active breakpoint.
5252
width: ResponsiveValue<double>(context,
5353
conditionalValues: [
54-
const Condition.equals(name: MOBILE, value: 450),
55-
const Condition.between(
54+
Condition.equals(name: MOBILE, value: 450),
55+
Condition.between(
5656
start: 800, end: 1100, value: 800),
57-
const Condition.between(
57+
Condition.between(
5858
start: 1000, end: 1200, value: 1000),
5959
// There are no conditions for width over 1200
6060
// because the `maxWidth` is set to 1200 via the MaxWidthBox.

0 commit comments

Comments
 (0)