Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions bitsdojo_window/lib/src/widgets/window_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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!();
Expand Down
6 changes: 4 additions & 2 deletions bitsdojo_window/lib/src/widgets/window_caption.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
2 changes: 1 addition & 1 deletion bitsdojo_window_linux/lib/src/window.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'dart:ffi';
import 'dart:ffi' hide Size;
import 'dart:ui';
import 'package:flutter/painting.dart';

Expand Down
2 changes: 1 addition & 1 deletion bitsdojo_window_windows/lib/src/window.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'dart:ffi';
import 'dart:ffi' hide Size;
import 'dart:ui';
import 'package:flutter/painting.dart';

Expand Down