Skip to content

Commit ef50034

Browse files
committed
ResponsiveValue Between Condition
1 parent 3351cf6 commit ef50034

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

lib/main.dart

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,10 @@ class MyApp extends StatelessWidget {
3535
width: ResponsiveValue<double>(context,
3636
conditionalValues: [
3737
const Condition.equals(name: MOBILE, value: 450),
38-
const Condition.largerThan(
39-
breakpoint: 800, value: 800),
40-
const Condition.largerThan(
41-
breakpoint: 1000, value: 1000),
42-
const Condition.largerThan(
43-
breakpoint: 1200, value: null),
44-
const Condition.equals(name: '4K', value: null),
38+
const Condition.between(
39+
start: 800, end: 1100, value: 800),
40+
const Condition.between(
41+
start: 1000, end: 1200, value: 1000),
4542
]).value,
4643
child: child!),
4744
),

0 commit comments

Comments
 (0)