From 2b7b21429a9e0f0971a5491dc19fec07faa17243 Mon Sep 17 00:00:00 2001 From: Jens Becker Date: Fri, 1 Apr 2022 21:10:31 +0200 Subject: [PATCH] Make ScreenWidthBreakpoints constants --- lib/src/extensions/build_context/adaptive_helpers.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/extensions/build_context/adaptive_helpers.dart b/lib/src/extensions/build_context/adaptive_helpers.dart index 7445d95..78a3673 100644 --- a/lib/src/extensions/build_context/adaptive_helpers.dart +++ b/lib/src/extensions/build_context/adaptive_helpers.dart @@ -3,13 +3,13 @@ import 'package:flutter/material.dart'; /// Class which defines the screen width breakpoints class ScreenWidthBreakpoints { /// Devices with a width greater than 900. - static double desktop = 900; + static const double desktop = 900; /// Devices with a width greater than 600. - static double tablet = 600; + static const double tablet = 600; /// Devices with a width greater than 300. - static double mobile = 300; + static const double mobile = 300; } /// The possible form factors a device can have.