Skip to content

Mahmoud7Osman/flutter-desktop-embedding

 
 

Repository files navigation

Adjusting Window Size

  // git clone this repo and rename the folder to 'plugins'
  
  // main.dart
  import "package:cvenom/window_size.dart";
  
  void main(){
  	  WidgetsFlutterBinding.ensureInitialized(); // Initialization
  	  setWindowTitle("Title");            // Window Title
	  setWindowMinSize(Size(1000, 1000)); // Minimum Window Size
	  setWindowMaxSize(Size(1000, 1000)); // Maximum Window Size
    
	  runApp(MaterialApp(home:App()));
  }
  // Copy window_size.dart and src/ from plugins to lib/
  // then your pubspec.yaml should look like this
  // ------------------------------------------------
  
  // pubspec.yaml
  dependencies:
  	window_size:
		path: plugins/window_size

Desktop Embedding for Flutter

This project was originally created to develop Windows, macOS, and Linux embeddings of Flutter. That work has since become part of Flutter, and all that remains here are experimental, early-stage desktop plugins.

If you want to get started with Flutter on desktop, the place to start is now the Flutter documentation, rather than this project. You will already need to have followed the instructions there to get an application running on desktop before using any of the plugins here.

Feedback

Do not file issues about Flutter for desktop here. Since the embeddings have all moved to the Flutter project, the place for desktop bugs and feature requests is now the Flutter issue tracker.

For bug reports and feature requests related to the plugins in this repository, please file issues here.

Repository Structure

The plugins directory contains all the plugins. See its README to get started.

Caveats

  • This is not an officially supported Google product.

About

Experimental plugins for Flutter for Desktop

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 43.8%
  • Dart 20.4%
  • CMake 19.5%
  • Objective-C 4.8%
  • Objective-C++ 4.0%
  • C 3.5%
  • Other 4.0%