|
@@ -6,7 +6,8 @@ import 'package:window_size/window_size.dart';
|
|
|
void main() {
|
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
|
if (Platform.isWindows) {
|
|
|
- setWindowMinSize(Size(600, 400));
|
|
|
+ setWindowTitle("不开心");
|
|
|
+ setWindowMinSize(Size(800, 500));
|
|
|
setWindowMaxSize(Size.infinite);
|
|
|
}
|
|
|
|
|
@@ -14,7 +15,7 @@ void main() {
|
|
|
}
|
|
|
|
|
|
class MyApp extends StatelessWidget {
|
|
|
- const MyApp({Key? key}) : super(key: key);
|
|
|
+ const MyApp({Key key}) : super(key: key);
|
|
|
|
|
|
// This widget is the root of your application.
|
|
|
@override
|
|
@@ -39,7 +40,7 @@ class MyApp extends StatelessWidget {
|
|
|
}
|
|
|
|
|
|
class MyHomePage extends StatefulWidget {
|
|
|
- const MyHomePage({Key? key, required this.title}) : super(key: key);
|
|
|
+ const MyHomePage({Key key, this.title}) : super(key: key);
|
|
|
|
|
|
// This widget is the home page of your application. It is stateful, meaning
|
|
|
// that it has a State object (defined below) that contains fields that affect
|