Rollback titlebar change on macOS
This commit is contained in:
parent
6163a4c7ac
commit
538689a8b3
|
|
@ -135,7 +135,7 @@ void main({bool isTesting = false}) async {
|
|||
);
|
||||
}
|
||||
|
||||
if (isDesktopOS()) {
|
||||
if (isDesktopOS() && !isMacOS()) {
|
||||
doWhenWindowReady(() {
|
||||
final win = appWindow;
|
||||
win.title = 'Invoice Ninja';
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue