remove dep on window_size
This commit is contained in:
parent
dd9b9fdc62
commit
4bbf694479
8 changed files with 2 additions and 29 deletions
|
|
@ -18,7 +18,6 @@ import "package:nexus/widgets/loading.dart";
|
|||
import "package:window_manager/window_manager.dart";
|
||||
import "package:flutter/material.dart";
|
||||
import "package:dynamic_system_colors/dynamic_system_colors.dart";
|
||||
import "package:window_size/window_size.dart";
|
||||
|
||||
final GlobalKey<NavigatorState> navigatorKey = GlobalKey<NavigatorState>();
|
||||
|
||||
|
|
@ -64,12 +63,7 @@ void main() async {
|
|||
await windowManager.waitUntilReadyToShow(
|
||||
WindowOptions(titleBarStyle: TitleBarStyle.hidden),
|
||||
);
|
||||
|
||||
// if (Platform.isLinux) {
|
||||
// setWindowMinSize(const Size.square(500));
|
||||
// } else {
|
||||
// await windowManager.setMinimumSize(Size.square(500));
|
||||
// }
|
||||
await windowManager.setMinimumSize(Size.square(500));
|
||||
}
|
||||
|
||||
FlutterError.onError = (FlutterErrorDetails details) =>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
#include <screen_retriever_linux/screen_retriever_linux_plugin.h>
|
||||
#include <url_launcher_linux/url_launcher_plugin.h>
|
||||
#include <window_manager/window_manager_plugin.h>
|
||||
#include <window_size/window_size_plugin.h>
|
||||
|
||||
void fl_register_plugins(FlPluginRegistry* registry) {
|
||||
g_autoptr(FlPluginRegistrar) dynamic_system_colors_registrar =
|
||||
|
|
@ -29,7 +28,4 @@ void fl_register_plugins(FlPluginRegistry* registry) {
|
|||
g_autoptr(FlPluginRegistrar) window_manager_registrar =
|
||||
fl_plugin_registry_get_registrar_for_plugin(registry, "WindowManagerPlugin");
|
||||
window_manager_plugin_register_with_registrar(window_manager_registrar);
|
||||
g_autoptr(FlPluginRegistrar) window_size_registrar =
|
||||
fl_plugin_registry_get_registrar_for_plugin(registry, "WindowSizePlugin");
|
||||
window_size_plugin_register_with_registrar(window_size_registrar);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ list(APPEND FLUTTER_PLUGIN_LIST
|
|||
screen_retriever_linux
|
||||
url_launcher_linux
|
||||
window_manager
|
||||
window_size
|
||||
)
|
||||
|
||||
list(APPEND FLUTTER_FFI_PLUGIN_LIST
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ static void my_application_activate(GApplication* application) {
|
|||
}
|
||||
}
|
||||
#endif
|
||||
gtk_widget_set_size_request(GTK_WIDGET(window), 500, 500);
|
||||
if (use_header_bar) {
|
||||
GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new());
|
||||
gtk_widget_show(GTK_WIDGET(header_bar));
|
||||
|
|
|
|||
|
|
@ -1548,15 +1548,6 @@ packages:
|
|||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.5.1"
|
||||
window_size:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
path: "plugins/window_size"
|
||||
ref: HEAD
|
||||
resolved-ref: eb3964990cf19629c89ff8cb4a37640c7b3d5601
|
||||
url: "https://github.com/google/flutter-desktop-embedding"
|
||||
source: git
|
||||
version: "0.1.0"
|
||||
xdg_directories:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
|
|
|||
|
|
@ -34,10 +34,6 @@ dependencies:
|
|||
dynamic_system_colors: ^1.8.0
|
||||
collection: ^1.19.1
|
||||
window_manager: ^0.5.1
|
||||
window_size:
|
||||
git:
|
||||
url: https://github.com/google/flutter-desktop-embedding
|
||||
path: plugins/window_size
|
||||
flutter_chat_core: ^2.0.0
|
||||
flyer_chat_image_message: ^2.2.2
|
||||
flyer_chat_system_message: ^2.1.13
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
#include <screen_retriever_windows/screen_retriever_windows_plugin_c_api.h>
|
||||
#include <url_launcher_windows/url_launcher_windows.h>
|
||||
#include <window_manager/window_manager_plugin.h>
|
||||
#include <window_size/window_size_plugin.h>
|
||||
|
||||
void RegisterPlugins(flutter::PluginRegistry* registry) {
|
||||
DynamicColorPluginCApiRegisterWithRegistrar(
|
||||
|
|
@ -24,6 +23,4 @@ void RegisterPlugins(flutter::PluginRegistry* registry) {
|
|||
registry->GetRegistrarForPlugin("UrlLauncherWindows"));
|
||||
WindowManagerPluginRegisterWithRegistrar(
|
||||
registry->GetRegistrarForPlugin("WindowManagerPlugin"));
|
||||
WindowSizePluginRegisterWithRegistrar(
|
||||
registry->GetRegistrarForPlugin("WindowSizePlugin"));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ list(APPEND FLUTTER_PLUGIN_LIST
|
|||
screen_retriever_windows
|
||||
url_launcher_windows
|
||||
window_manager
|
||||
window_size
|
||||
)
|
||||
|
||||
list(APPEND FLUTTER_FFI_PLUGIN_LIST
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue