Closed ilopX closed 3 years ago
Then I add to file example\windows\runner\main.cpp
#include <bitsdojo_window_windows/bitsdojo_window_plugin.h>
auto bdw = bitsdojo_window_configure(BDW_CUSTOM_FRAME | BDW_HIDE_ON_STARTUP);
and rebuild project.
And it worked for me 😃
That is already present in the example project. Its not a valid issue, neither a requirement for this plugin in specific.
First build example
Error Log
``` [ +23 ms] Build process failed. [ +3 ms] #0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3) #1 _runBuild (package:flutter_tools/src/windows/build_windows.dart:299:5)
#2 buildWindows (package:flutter_tools/src/windows/build_windows.dart:78:5)
#3 BuildWindowsCommand.runCommand (package:flutter_tools/src/commands/build_windows.dart:55:5)
#4 FlutterCommand.run.
(package:flutter_tools/src/runner/flutter_command.dart:1102:27)
#5 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)
#6 CommandRunner.runCommand (package:args/command_runner.dart:196:13)
#7 FlutterCommandRunner.runCommand.
(package:flutter_tools/src/runner/flutter_command_runner.dart:284:9)
#8 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)
#9 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:232:5)
#10 run.. (package:flutter_tools/runner.dart:62:9)
#11 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)
#12 main (package:flutter_tools/executable.dart:91:3)
[ +22 ms] Running shutdown hooks
[ +2 ms] Shutdown hooks complete
[ +2 ms] exiting with code 1
```
Second try
I remove folders 'example\windows' and 'example\build' and run
The build went well, but the flutter window got additional frames.
Screenshot
![image](https://user-images.githubusercontent.com/8049534/123165387-d6389e00-d47c-11eb-9f45-cb97b3b878c7.png)
flutter doctor -v
``` [√] Flutter (Channel dev, 2.3.0-16.0.pre, on Microsoft Windows [Version 10.0.18363.535], locale en-US) • Flutter version 2.3.0-16.0.pre at C:\Users\ilopX\fvm\default • Upstream repository https://github.com/flutter/flutter.git • Framework revision fa5883b78e (5 weeks ago), 2021-05-21 13:04:03 -0700 • Engine revision 2f067fc4c5 • Dart version 2.14.0 (build 2.14.0-136.0.dev) [√] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at C:\Users\ilopX\AppData\Local\Android\sdk • Platform android-30, build-tools 30.0.3 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01) • All Android licenses accepted. [√] Chrome - develop for the web • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe [√] Visual Studio - develop for Windows (Visual Studio Enterprise 2019 16.4.2) • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise • Visual Studio Enterprise 2019 version 16.4.29613.14 • Windows 10 SDK version 10.0.18362.0 [√] Android Studio (version 4.1.0) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01) [√] IntelliJ IDEA Ultimate Edition (version 2021.1) • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2021.1 • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart [√] VS Code (version 1.56.0) • VS Code at C:\Users\ilopX\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.22.0 [√] VS Code, 64-bit edition (version 1.49.0) • VS Code at C:\Program Files\Microsoft VS Code • Flutter extension version 3.22.0 [√] Connected device (2 available) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.18363.535] • Chrome (web) • chrome • web-javascript • Google Chrome 91.0.4472.106 • No issues found! ```