Rollback titlebar change on macOS

This commit is contained in:
Hillel Coren 2022-01-24 23:09:59 +02:00
parent 6163a4c7ac
commit 538689a8b3
3 changed files with 3 additions and 7 deletions

View File

@ -135,7 +135,7 @@ void main({bool isTesting = false}) async {
);
}
if (isDesktopOS()) {
if (isDesktopOS() && !isMacOS()) {
doWhenWindowReady(() {
final win = appWindow;
win.title = 'Invoice Ninja';

View File

@ -296,7 +296,7 @@ class MainScreen extends StatelessWidget {
policy: ReadingOrderTraversalPolicy(),
child: Column(
children: [
if (isDesktopOS()) AppTitleBar(),
if (isDesktopOS() && !isMacOS()) AppTitleBar(),
Expanded(
child: ChangeLayoutBanner(
appLayout: prefState.appLayout,

View File

@ -1,11 +1,7 @@
import Cocoa
import FlutterMacOS
import bitsdojo_window_macos
class MainFlutterWindow: BitsdojoWindow {
override func bitsdojo_window_configure() -> UInt {
return BDW_CUSTOM_FRAME | BDW_HIDE_ON_STARTUP
}
class MainFlutterWindow: NSWindow {
override func awakeFromNib() {
let flutterViewController = FlutterViewController.init()
let windowFrame = self.frame