Files
TubeCards/lib/utils/sizes.dart
friebetill 80f218097d Initial commit
Add Space version 2.0.1
2022-03-28 14:56:00 +02:00

29 lines
772 B
Dart

import 'dart:io';
/// The minimum height of the window.
const minimumScreenHeight = 640.0;
/// The minimum width of the window.
const minimumScreenWidth = 360.0;
/// The height of the title bar depending on the OS.
final titleBarHeight = Platform.isWindows
? 26
: Platform.isMacOS
? 28
: Platform.isLinux
? 26
: 0;
/// The height of the system bar depending on the OS.
final systemBarHeight = Platform.isAndroid || Platform.isIOS ? 28 : 0;
/// The height of the app bar.
const appBarHeight = 56;
/// The minimum height of a fully extended widget.
///
/// On some OSs, there is a title bar which has to be subtracted from the
/// [minimumScreenHeight].
final minimumWidgetHeight = minimumScreenHeight - titleBarHeight;