0

I want to disable screen resizing on a flutter desktop application but it doesn't seem to work. I also want to change the window title.

import 'package:desktop_window/desktop_window.dart';
    void main() async {
      WidgetsFlutterBinding.ensureInitialized();
      await DesktopWindow.setMinWindowSize(const Size(1280, 720));
      await DesktopWindow.setMaxWindowSize(const Size(1280, 720));
      runApp(MyApp());
    }

1 Answer 1

1

I would recommend you to use the window_manager package, with this package you can configure if the user should be able to resize the window or not. More info here: https://pub.dev/packages/window_manager#setresizable

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.