liuyuqi-dellpc 2 years ago
parent
commit
573a3b569a
3 changed files with 6 additions and 5 deletions
  1. 1 1
      .github/workflows/build.yml
  2. 4 3
      lib/main.dart
  3. 1 1
      pubspec.yaml

+ 1 - 1
.github/workflows/build.yml

@@ -72,4 +72,4 @@ jobs:
             build/app/outputs/flutter-apk/app.apk
             build/ios/**/*.ipa
             build/web/web-app.zip
-            build/windows/
+            build/windows/runner/Release/

+ 4 - 3
lib/main.dart

@@ -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

+ 1 - 1
pubspec.yaml

@@ -4,7 +4,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
 version: 1.0.0+1
 
 environment:
-  sdk: ">=2.12.0 <3.0.0"
+  sdk: ">=2.7.0 <3.0.0"
 
 dependencies:
   flutter: