Skip to content

Commit

Permalink
Make ScreenWidthBreakpoints constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Becker committed Apr 1, 2022
1 parent 1b378bd commit 2b7b214
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/extensions/build_context/adaptive_helpers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2b7b214

Please sign in to comment.