Skip to content

Commit

Permalink
Update something
Browse files Browse the repository at this point in the history
  • Loading branch information
神楽坂花火 committed Jul 8, 2021
1 parent e196277 commit f61c679
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 7 deletions.
1 change: 0 additions & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ linter:
- recursive_getters
- slash_for_doc_comments
- sort_constructors_first
- sort_pub_dependencies
- sort_unnamed_constructors_first
- type_init_formals
- unnecessary_const
Expand Down
19 changes: 19 additions & 0 deletions android/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions lib/utils/windows.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ import 'package:win32/win32.dart';

class Windows {
static void useAsWallpaper(File wallpaperFile) {
final hr = CoInitializeEx(
nullptr, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE);
final hr = CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE);
if (FAILED(hr)) throw WindowsException(hr);

final wallpaper = DesktopWallpaper.createInstance();
Expand Down
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ packages:
name: meta
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.3.0"
version: "1.4.0"
mime:
dependency: transitive
description:
Expand Down
2 changes: 2 additions & 0 deletions windows/flutter/generated_plugin_registrant.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// Generated file. Do not edit.
//

// clang-format off

#include "generated_plugin_registrant.h"

#include <url_launcher_windows/url_launcher_plugin.h>
Expand Down
2 changes: 2 additions & 0 deletions windows/flutter/generated_plugin_registrant.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// Generated file. Do not edit.
//

// clang-format off

#ifndef GENERATED_PLUGIN_REGISTRANT_
#define GENERATED_PLUGIN_REGISTRANT_

Expand Down
4 changes: 2 additions & 2 deletions windows/runner/Runner.rc
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ BEGIN
BLOCK "040904e4"
BEGIN
VALUE "CompanyName", "cn.dailypics" "\0"
VALUE "FileDescription", "A new Flutter project." "\0"
VALUE "FileDescription", "Dailypics Desktop" "\0"
VALUE "FileVersion", VERSION_AS_STRING "\0"
VALUE "InternalName", "dailypics" "\0"
VALUE "LegalCopyright", "Copyright (C) 2021 cn.dailypics. All rights reserved." "\0"
VALUE "LegalCopyright", "Copyright (C) 2021 图鉴事务所 All rights reserved." "\0"
VALUE "OriginalFilename", "dailypics.exe" "\0"
VALUE "ProductName", "dailypics" "\0"
VALUE "ProductVersion", VERSION_AS_STRING "\0"
Expand Down
2 changes: 1 addition & 1 deletion windows/runner/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,

FlutterWindow window(&run_loop, project);
Win32Window::Point origin(10, 10);
Win32Window::Size size(1280, 720);
Win32Window::Size size(480, 800);
if (!window.CreateAndShow(L"Dailypics Desktop", origin, size)) {
return EXIT_FAILURE;
}
Expand Down

0 comments on commit f61c679

Please sign in to comment.