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!(); 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()); } } 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';