mirror of
https://github.com/tonytins/bullseye.git
synced 2025-03-19 14:01:21 +00:00
- Added Attach to Device to launch settings - Fallback to standard flutter desktop window on Linux
21 lines
512 B
Dart
21 lines
512 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);
|
|
bool get isMacWin => (Platform.isMacOS || Platform.isWindows);
|
|
|
|
class WindowButtons extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Row(
|
|
children: [
|
|
MinimizeWindowButton(),
|
|
MaximizeWindowButton(),
|
|
CloseWindowButton()
|
|
],
|
|
);
|
|
}
|
|
}
|