From a5e9ae0d366bc93c35166704ff127ab7de38100b Mon Sep 17 00:00:00 2001 From: Jess Moore Date: Mon, 2 Feb 2026 12:28:30 +1100 Subject: [PATCH] source WindowSize() from solidui --- lib/constants/ui.dart | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/lib/constants/ui.dart b/lib/constants/ui.dart index 5d6a5003..f4e8a7ba 100644 --- a/lib/constants/ui.dart +++ b/lib/constants/ui.dart @@ -27,31 +27,7 @@ library; import 'package:flutter/material.dart'; -/// Thresholds for window size -class WindowSize { - /// Small width threshold - static const double smallWidthLimit = 600; - - /// Small height threshold - static const double smallHeightLimit = 600; - - /// Boolean describing whether the parent widget - /// is narrow. Derived from the box constraints - /// found by LayoutBuilder(). - /// - /// Arguments: - /// - [constraints] - The box constraints of the parent widget where LayoutBuilder() called. - bool isNarrowWindow(BoxConstraints constraints) { - final bool isNarrow; - if (constraints.maxWidth < WindowSize.smallWidthLimit) { - isNarrow = true; - } else { - isNarrow = false; - } - - return isNarrow; - } -} +import 'package:solidui/solidui.dart' show WindowSize; /// Approximate size for grid items used for /// displaying text of user's notes.