This is the standard Flutter template application, modified to run on desktop.

Overview

Desktop Flutter Example

This is the standard Flutter template application, modified to run on desktop.

The linux, macos, and windows directories serve as early prototypes of what will eventually become the flutter create templates for desktop, and will be evolving over time to better reflect that goal.

Building and Running

See the main project README.

Dart Differences from Flutter Template

The main.dart and pubspec.yaml have minor changes to support desktop:

  • debugDefaultTargetPlatformOverride is set to avoid 'Unknown platform' exceptions.
  • The font is explicitly set to Roboto, and Roboto is bundled via pubspec.yaml, to ensure that text displays on all platforms.

See the Flutter Application Requirements section of the Flutter page on desktop support for more information.

Adapting for Another Project

Since flutter create is not yet supported for desktop, the easiest way to try out desktop support with an existing Flutter application is to start from this example. Two different approaches are described below.

With either approach, be sure to read the Flutter page on desktop support, especially the Flutter Application Requirements section.

Copy the 'linux', 'macos', and/or 'windows' Directories

These directories are self-contained, and can be copied to an existing Flutter project, enabling flutter run for those platforms.

Be aware that neither the API surface of the Flutter desktop libraries nor the interaction between the flutter tool and the platform directories is stable, and no attempt will be made to provide supported migration paths as things change. If you use this approach, you should expect that every time you update Flutter you may have to delete your copies of the platform directories and re-copy them from an updated version of flutter-desktop-embedding.

Replace Flutter Components

Since this example already supports running on desktop platforms, you can swap in your project's Dart code, pubspec.yaml, resources, etc.

This will be the easiest approach to keep working as desktop support evolves, but requires that you develop your project in a flutter-desktop-embedding fork.

You might also like...

Learn how to build a tensorflow model on Techable Machine and then run it on flutter app.

Learn how to build a tensorflow model on Techable Machine and then run it on flutter app.

Ml With Flutter Learn how to build a tensorflow model on Techable Machine and then run it on flutter app. Youtube Tutorial Show Support Recommend Me O

Jan 3, 2023

Win32 runner - Run a Flutter app without needing a lick of C/C++ code. Just Dart

Win32 runner - Run a Flutter app without needing a lick of C/C++ code. Just Dart

Experimental package for running Flutter apps from a Dart runner, instead of the

Sep 25, 2022

Run your MIT App Inventor projects on (nearly) any operating system!

xaif Run your MIT App Inventor projects on (nearly) any operating system! This tool is in an early development phase, see the disclaimer below. Prereq

Oct 17, 2022

Run Pubspec Script (RPS)

 Run Pubspec Script (RPS)

Run Pubspec Script (RPS) Define and use scripts from your pubspec.yaml file. Get

Nov 27, 2022

Helper app to run code on Aliucord iOS via websocket.

aliucordebug A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if

Jan 25, 2022

Integration Test Preview allows tests on multiple screen sizes in a single e2e test run.

Integration Test Preview allows tests on multiple screen sizes in a single e2e test run.

Integration Test Preview has pre-configured methods that allow for faster test deployment for end to end (e2e) test coverage (using Android and iOS pl

Aug 23, 2022

Schedule & run Dart code in the background on both Android & iOS

flt_worker The flt_worker plugin allows you to schedule and execute Dart-written background tasks in a dedicated isolate, by utilizing the WorkManager

Nov 27, 2022

Bluecherry DVR client to run across range of devices. 💙

Bluecherry DVR client to run across range of devices. 💙

Bluecherry Client Bluecherry DVR client to run across range of devices. Website • Purchase • Chat [work-in-progress] Download iOS (coming soon) Androi

Dec 2, 2022
Owner
Sheikh Shofiullah
Sheikh Shofiullah
Flutter Navigation - all types of navigation in flutter run main.tabBar.dart to see tabBar, and run main.dart to see the otheres

pop_up_bar A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if th

Michael Odumosu 0 Jan 1, 2022
A modified version of the existing checkbox with the shape of a circle instead of a rounded rectangle!

A modified version of the existing checkbox with the shape of a circle instead of a rounded rectangle!

Mash Ibtesum 53 Oct 24, 2022
Just collection of UI designs build with flutter. Can run on any mobile, web & desktop.

Flutter UI Designs True cross platform app runs on web, mobile & desktop Download Requirements to run locally Flutter stable v2.0.0+ Dart VM version:

Hamza Iqbal 222 Dec 28, 2022
meg4cyberc4t 11 Oct 24, 2022
Flutter getx template - A Flutter Template using GetX package for State management, routing and Dependency Injection

Flutter GetX Template (GetX, Dio, MVVM) This Flutter Template using GetX package

Tareq Islam 6 Aug 27, 2022
Flathub-desktop - Unofficial Desktop Client for Flathub

Flathub Desktop Unofficial Desktop Client for Flathub How to build and run: You

Jean3219 2 Sep 19, 2022
An E-Commerce application developed on Flutter, which helps to run the app on Android / IOS / Windows's OS / MacOS / Web Browser from a single codebase

BuySmart An E-Commerce application developed on Flutter, which helps to run the app on Android / IOS / Windows's OS / MacOS / Web Browser from a singl

Sumit Kumar 11 Oct 10, 2022
This is an application that uses the Flutter framework, SQFLite as a database to record blood pressure, blood sugar, BMI, or create medication reminders in multi mobile platforms You can run this project on iOS, Android

This is an application that uses the Flutter framework, SQFLite as a database to record blood pressure, blood sugar, BMI, or create medication reminders in multi mobile platforms You can run this project on iOS, Android

null 14 Dec 29, 2022
Flutter cloud functions - A sample project demonstrating how to run backend tasks in Flutter

Flutter Cloud Functions A sample project demonstrating how to run backend tasks

Souvik Biswas 2 Feb 15, 2022
Flutter Multi-platform allows developers to unleash their app to run on the wide variety of different platforms with little or no change.

Flutter Multi-platform sample Flutter Multi-platform allows developers to unleash their app to run on the wide variety of different platforms with lit

MindInventory 22 Dec 31, 2022