Created
May 4, 2025 18:22
-
-
Save fredgrott/2728ea1b6f5a391abc540d727ec0a01b to your computer and use it in GitHub Desktop.
window size enum
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2025 Fredrick Allan Grott. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
/// WindowSizeEnum per WindowSize class docs, see | |
/// https://m3.material.io/foundations/layout/applying-layout/window-size-classes | |
/// | |
/// Vertical Paddinhg is at | |
/// https://m3.material.io/foundations/layout/understanding-layout/spacing | |
/// @author Fredrick Allan Grott | |
enum WindowSizeEnum { | |
compact(0, 599, 16, 0, 4), | |
medium(600, 839, 24, 24, 8), | |
expanded(840, 1199, 24, 24, 12), | |
large(1200, 1599, 24, 24, 16), | |
extraLarge(1600, double.infinity, 24, 24, 20); | |
final double beginWidth; | |
final double endWidth; | |
final double margin; | |
final double spacing; | |
final double verticalPadding; | |
const WindowSizeEnum(this.beginWidth, this.endWidth, this.margin, this.spacing, this.verticalPadding); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment