re-run flutter create (to add windows platform)

This commit is contained in:
Pato05 2023-10-19 14:34:22 +02:00
parent f126ffef46
commit 276d0ad4bf
No known key found for this signature in database
GPG Key ID: ED4C6F9C3D574FB6
104 changed files with 7331 additions and 7327 deletions

View File

@ -1,11 +1,11 @@
# This file tracks properties of this Flutter project. # This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc. # Used by Flutter tool to assess capabilities and perform upgrades etc.
# #
# This file should be version controlled. # This file should be version controlled and should not be manually edited.
version: version:
revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 revision: "2f708eb8396e362e280fac22cf171c2cb467343c"
channel: stable channel: "stable"
project_type: app project_type: app
@ -13,26 +13,20 @@ project_type: app
migration: migration:
platforms: platforms:
- platform: root - platform: root
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 create_revision: 2f708eb8396e362e280fac22cf171c2cb467343c
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 base_revision: 2f708eb8396e362e280fac22cf171c2cb467343c
- platform: android
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
- platform: ios - platform: ios
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 create_revision: 2f708eb8396e362e280fac22cf171c2cb467343c
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 base_revision: 2f708eb8396e362e280fac22cf171c2cb467343c
- platform: linux - platform: linux
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 create_revision: 2f708eb8396e362e280fac22cf171c2cb467343c
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 base_revision: 2f708eb8396e362e280fac22cf171c2cb467343c
- platform: macos - platform: macos
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 create_revision: 2f708eb8396e362e280fac22cf171c2cb467343c
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 base_revision: 2f708eb8396e362e280fac22cf171c2cb467343c
- platform: web
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
- platform: windows - platform: windows
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 create_revision: 2f708eb8396e362e280fac22cf171c2cb467343c
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 base_revision: 2f708eb8396e362e280fac22cf171c2cb467343c
# User provided section # User provided section

View File

@ -18,6 +18,11 @@ class Paths {
} }
return path.dirname(Platform.resolvedExecutable); return path.dirname(Platform.resolvedExecutable);
case TargetPlatform.windows: case TargetPlatform.windows:
final String? localAppData = Platform.environment['LOCALAPPDATA'];
if (localAppData != null) {
final target = await Directory(path.join(localAppData, 'Freezer')).create();
return target.path;
}
String? home = Platform.environment['USERPROFILE']; String? home = Platform.environment['USERPROFILE'];
if (home == null) { if (home == null) {
final drive = Platform.environment['HOMEDRIVE']; final drive = Platform.environment['HOMEDRIVE'];
@ -30,7 +35,7 @@ class Paths {
} }
final target = final target =
await Directory(path.join(home, 'AppData', 'Freezer')).create(); await Directory(path.join(home, 'AppData', 'Local', 'Freezer')).create();
return target.path; return target.path;
default: default:
return (await getApplicationDocumentsDirectory()).path; return (await getApplicationDocumentsDirectory()).path;

View File

@ -227,7 +227,7 @@
isa = PBXProject; isa = PBXProject;
attributes = { attributes = {
LastSwiftUpdateCheck = 0920; LastSwiftUpdateCheck = 0920;
LastUpgradeCheck = 1300; LastUpgradeCheck = 1430;
ORGANIZATIONNAME = ""; ORGANIZATIONNAME = "";
TargetAttributes = { TargetAttributes = {
331C80D4294CF70F00263BE5 = { 331C80D4294CF70F00263BE5 = {

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<Scheme <Scheme
LastUpgradeVersion = "1300" LastUpgradeVersion = "1430"
version = "1.3"> version = "1.3">
<BuildAction <BuildAction
parallelizeBuildables = "YES" parallelizeBuildables = "YES"

View File

@ -8,7 +8,7 @@ set(BINARY_NAME "freezer")
# Explicitly opt in to modern CMake behaviors to avoid warnings with recent # Explicitly opt in to modern CMake behaviors to avoid warnings with recent
# versions of CMake. # versions of CMake.
cmake_policy(SET CMP0063 NEW) cmake_policy(VERSION 3.14...3.25)
# Define build configuration option. # Define build configuration option.
get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)

View File

@ -31,6 +31,11 @@ bool FlutterWindow::OnCreate() {
this->Show(); this->Show();
}); });
// Flutter can complete the first frame before the "show window" callback is
// registered. The following call ensures a frame is pending to ensure the
// window is shown. It is a no-op if the first frame hasn't completed yet.
flutter_controller_->ForceRedraw();
return true; return true;
} }