How to prohibit maximize window by double clicking toolbar or area within "DragToMoveArea"?
Closed this issue · 1 comments
dbsxdbsx commented
I want to prevent user to resize app, my main code like this :
void main() async {
WidgetsFlutterBinding.ensureInitialized();
if (Platform.isWindows) {
await WindowManager.instance.ensureInitialized();
windowManager.waitUntilReadyToShow().then((_) async {
await windowManager.setTitleBarStyle(
TitleBarStyle.hidden,
windowButtonVisibility: false,
);
await windowManager.setSize(const Size(755, 545));
await windowManager.setMinimumSize(const Size(755, 545));
await windowManager.setPreventClose(true);
await windowManager.setSkipTaskbar(false);
await windowManager.setResizable(false);
await windowManager.setMinimizable(true);
await windowManager.center();
await windowManager.focus();
await windowManager.show();
});
}
...
And my home page is wrapped within "DragToMoveArea". But the app can still be maximized by double clicking any area of the page.
dbsxdbsx commented
sorry, I pasted in wrong repository.