mirror of
https://github.com/tonytins/bullseye.git
synced 2025-03-19 22:11:22 +00:00
21 lines
449 B
Dart
21 lines
449 B
Dart
|
import 'dart:io';
|
||
|
|
||
|
import 'package:bitsdojo_window/bitsdojo_window.dart';
|
||
|
import 'package:flutter/material.dart';
|
||
|
|
||
|
bool get isDesktop =>
|
||
|
(Platform.isLinux || Platform.isMacOS || Platform.isWindows);
|
||
|
|
||
|
class WindowButtons extends StatelessWidget {
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return Row(
|
||
|
children: [
|
||
|
MinimizeWindowButton(),
|
||
|
MaximizeWindowButton(),
|
||
|
CloseWindowButton()
|
||
|
],
|
||
|
);
|
||
|
}
|
||
|
}
|