🐛 Fix bugs on windows
This commit is contained in:
parent
b7b673c96d
commit
1ac7704080
@ -52,11 +52,11 @@ Future<void> main(List<String> rawArgs) async {
|
|||||||
await KVStoreService.initialize();
|
await KVStoreService.initialize();
|
||||||
await EncryptedKvStoreService.initialize();
|
await EncryptedKvStoreService.initialize();
|
||||||
|
|
||||||
runApp(const MyApp());
|
runApp(const RhythmApp());
|
||||||
}
|
}
|
||||||
|
|
||||||
class MyApp extends StatelessWidget {
|
class RhythmApp extends StatelessWidget {
|
||||||
const MyApp({super.key});
|
const RhythmApp({super.key});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:rhythm_box/platform.dart';
|
import 'package:rhythm_box/platform.dart';
|
||||||
|
import 'package:window_manager/window_manager.dart';
|
||||||
|
|
||||||
class SystemShell extends StatelessWidget {
|
class SystemShell extends StatelessWidget {
|
||||||
final Widget child;
|
final Widget child;
|
||||||
@ -8,8 +9,9 @@ class SystemShell extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
if (PlatformInfo.isMacOS) {
|
if (PlatformInfo.isDesktop) {
|
||||||
return Column(
|
return DragToMoveArea(
|
||||||
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
height: 28,
|
height: 28,
|
||||||
@ -21,6 +23,7 @@ class SystemShell extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
Expanded(child: child),
|
Expanded(child: child),
|
||||||
],
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ import 'package:rhythm_box/main.dart';
|
|||||||
void main() {
|
void main() {
|
||||||
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
|
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
|
||||||
// Build our app and trigger a frame.
|
// Build our app and trigger a frame.
|
||||||
await tester.pumpWidget(const MyApp());
|
await tester.pumpWidget(const RhythmApp());
|
||||||
|
|
||||||
// Verify that our counter starts at 0.
|
// Verify that our counter starts at 0.
|
||||||
expect(find.text('0'), findsOneWidget);
|
expect(find.text('0'), findsOneWidget);
|
||||||
|
Loading…
Reference in New Issue
Block a user