-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.dart
43 lines (37 loc) · 966 Bytes
/
main.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import 'package:fluent_ui/fluent_ui.dart';
import 'dart:io';
import 'package:macos_ui/macos_ui.dart';
import 'package:flutter/cupertino.dart';
void main() {
if (Platform.isWindows || Platform.isLinux || Platform.isMacOS) {}
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MacosApp(
theme: MacosThemeData.light(),
darkTheme: MacosThemeData.dark(),
themeMode: ThemeMode.system,
debugShowCheckedModeBanner: false,
home: const HomePage(),
);
}
}
class HomePage extends StatelessWidget {
const HomePage({super.key});
@override
Widget build(BuildContext context) {
return Builder(
builder: (context) {
return const MacosScaffold(
toolBar: ToolBar(
title: Text('ToolBar Demo Bar'),
titleWidth: 200.0,
),
);
},
);
}
}