Here are my settings in void main.
void main() async {
WidgetsFlutterBinding.ensureInitialized();
// Must add this line.
await windowManager.ensureInitialized();
WindowOptions windowOptions = WindowOptions(
size: Size(800, 600),
center: true,
backgroundColor: Colors.transparent,
skipTaskbar: false,
titleBarStyle: TitleBarStyle.hidden,
);
windowManager.waitUntilReadyToShow(windowOptions, () async {
await windowManager.show();
await windowManager.focus();
});
runApp(ProviderScope(child: PdfReaderApp()));
}
The following code is not working when I maximize windows:
WindowCaptionButton.maximize(),
And the following code works
WindowCaptionButton.maximize(
onPressed: () async {
if (await windowManager.isMaximized()) {
windowManager.unmaximize();
} else {
windowManager.maximize();
}
},
),
System
Windows 11, 25H2
Here are my settings in void main.
The following code is not working when I maximize windows:
And the following code works
System
Windows 11, 25H2