From c52d1ea68b9e41e98e304cdb4137bc6920a7ed5c Mon Sep 17 00:00:00 2001 From: DanielQuick Date: Mon, 20 Dec 2021 22:27:42 -0600 Subject: [PATCH 1/3] Add height parameter to WindowTitleBarBox --- bitsdojo_window/lib/src/widgets/window_caption.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bitsdojo_window/lib/src/widgets/window_caption.dart b/bitsdojo_window/lib/src/widgets/window_caption.dart index 2a15b59..d08c00b 100644 --- a/bitsdojo_window/lib/src/widgets/window_caption.dart +++ b/bitsdojo_window/lib/src/widgets/window_caption.dart @@ -36,13 +36,15 @@ class MoveWindow extends StatelessWidget { class WindowTitleBarBox extends StatelessWidget { final Widget? child; - WindowTitleBarBox({Key? key, this.child}) : super(key: key); + final double? height; + WindowTitleBarBox({Key? key, this.child, this.height}) : super(key: key); @override Widget build(BuildContext context) { if (kIsWeb) { return Container(); } final titlebarHeight = appWindow.titleBarHeight; - return SizedBox(height: titlebarHeight, child: this.child ?? Container()); + return SizedBox( + height: height ?? titlebarHeight, child: this.child ?? Container()); } } From 9a139a7a7ee2f261ecaf04f2cd4448155c52d1f2 Mon Sep 17 00:00:00 2001 From: DanielQuick Date: Mon, 20 Dec 2021 22:38:18 -0600 Subject: [PATCH 2/3] Remove height limitation on WindowButton --- bitsdojo_window/lib/src/widgets/window_button.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bitsdojo_window/lib/src/widgets/window_button.dart b/bitsdojo_window/lib/src/widgets/window_button.dart index ddb40ef..5b9c77f 100644 --- a/bitsdojo_window/lib/src/widgets/window_button.dart +++ b/bitsdojo_window/lib/src/widgets/window_button.dart @@ -127,8 +127,7 @@ class WindowButton extends StatelessWidget { var button = (this.builder != null) ? this.builder!(buttonContext, icon) : iconWithPadding; - return SizedBox( - width: buttonSize.width, height: buttonSize.height, child: button); + return SizedBox(width: buttonSize.width, child: button); }, onPressed: () { if (this.onPressed != null) this.onPressed!(); From 41d8b506641c59dedb3f7a7c890b1fe9b90729f4 Mon Sep 17 00:00:00 2001 From: DanielQuick Date: Fri, 13 May 2022 16:01:58 -0500 Subject: [PATCH 3/3] fix flutter 3.0 errors --- bitsdojo_window_linux/lib/src/window.dart | 2 +- bitsdojo_window_windows/lib/src/window.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bitsdojo_window_linux/lib/src/window.dart b/bitsdojo_window_linux/lib/src/window.dart index d223248..7bf3b74 100644 --- a/bitsdojo_window_linux/lib/src/window.dart +++ b/bitsdojo_window_linux/lib/src/window.dart @@ -1,4 +1,4 @@ -import 'dart:ffi'; +import 'dart:ffi' hide Size; import 'dart:ui'; import 'package:flutter/painting.dart'; diff --git a/bitsdojo_window_windows/lib/src/window.dart b/bitsdojo_window_windows/lib/src/window.dart index 7e79600..7fcf58f 100644 --- a/bitsdojo_window_windows/lib/src/window.dart +++ b/bitsdojo_window_windows/lib/src/window.dart @@ -1,4 +1,4 @@ -import 'dart:ffi'; +import 'dart:ffi' hide Size; import 'dart:ui'; import 'package:flutter/painting.dart';