mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
24 lines
687 B
Dart
24 lines
687 B
Dart
import 'package:bitsdojo_window/bitsdojo_window.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class PageWindowTitleBar extends StatelessWidget {
|
|
final Widget? leading;
|
|
final Widget? center;
|
|
const PageWindowTitleBar({Key? key, this.leading, this.center})
|
|
: super(key: key);
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return WindowTitleBarBox(
|
|
child: Row(
|
|
children: [
|
|
if (leading != null) leading!,
|
|
Expanded(child: MoveWindow(child: Center(child: center))),
|
|
MinimizeWindowButton(animate: true),
|
|
MaximizeWindowButton(animate: true),
|
|
CloseWindowButton(animate: true),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|