mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
windows title_bar on macos fix
page titlebar leading overlap with native macos titlebar buttons fix
This commit is contained in:
parent
350fc75803
commit
bbc8a29853
@ -1,3 +1,5 @@
|
|||||||
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:bitsdojo_window/bitsdojo_window.dart';
|
import 'package:bitsdojo_window/bitsdojo_window.dart';
|
||||||
import 'package:cached_network_image/cached_network_image.dart';
|
import 'package:cached_network_image/cached_network_image.dart';
|
||||||
import 'package:flutter/material.dart' hide Page;
|
import 'package:flutter/material.dart' hide Page;
|
||||||
@ -155,7 +157,7 @@ class _HomeState extends State<Home> {
|
|||||||
child: MoveWindow(),
|
child: MoveWindow(),
|
||||||
),
|
),
|
||||||
Expanded(child: MoveWindow()),
|
Expanded(child: MoveWindow()),
|
||||||
const TitleBarActionButtons(),
|
if (!Platform.isMacOS) const TitleBarActionButtons(),
|
||||||
],
|
],
|
||||||
)),
|
)),
|
||||||
],
|
],
|
||||||
|
@ -59,6 +59,10 @@ class PageWindowTitleBar extends StatelessWidget
|
|||||||
return WindowTitleBarBox(
|
return WindowTitleBarBox(
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
|
if (Platform.isMacOS)
|
||||||
|
const SizedBox(
|
||||||
|
width: 150,
|
||||||
|
),
|
||||||
if (leading != null) leading!,
|
if (leading != null) leading!,
|
||||||
Expanded(child: MoveWindow(child: Center(child: center))),
|
Expanded(child: MoveWindow(child: Center(child: center))),
|
||||||
if (!Platform.isMacOS) const TitleBarActionButtons()
|
if (!Platform.isMacOS) const TitleBarActionButtons()
|
||||||
|
Loading…
Reference in New Issue
Block a user