text stringlengths 1 372 |
|---|
android supports IA32 (x86) in software emulation only. |
<topic_end> |
<topic_start> |
desktop support for flutter |
flutter provides support for compiling |
a native windows, macOS, or linux desktop app. |
flutter’s desktop support also extends to plugins—you |
can install existing plugins that support the windows, |
macOS, or linux platforms, or you can create your own. |
info note |
this page covers developing apps for all desktop |
platforms. once you’ve read this, you can dive into |
specific platform information at the following links: |
<topic_end> |
<topic_start> |
requirements |
to compile a desktop application, |
you must build it on the targeted |
platform: build a windows application on windows, |
a macOS application on macOS, |
and a linux application on linux. |
to create a flutter application with desktop support, |
you need the following software: |
<topic_end> |
<topic_start> |
additional windows requirements |
for windows desktop development, |
you need the following in addition to the flutter SDK: |
info note |
visual studio is different than visual studio code. |
<topic_end> |
<topic_start> |
additional macOS requirements |
for macOS desktop development, |
you need the following in addition to the flutter SDK: |
<topic_end> |
<topic_start> |
additional linux requirements |
for linux desktop development, |
you need the following in addition to the flutter SDK: |
one easy way to install the flutter SDK along with the necessary |
dependencies is by using snapd. |
for more information, see installing snapd. |
once you have snapd, you can install flutter |
using the snap store, or at the command line: |
alternatively, if you prefer not to use snapd, |
you can use the following command: |
<topic_end> |
<topic_start> |
create a new project |
you can use the following steps |
to create a new project with desktop support. |
<topic_end> |
<topic_start> |
set up |
you might run flutter doctor to see if |
there are any unresolved issues. |
you should see a checkmark for each successfully |
configured area. it should look something like |
the following on windows, |
with an entry for “develop for windows”: |
on macOS, look for a line like this: |
on linux, look for a line like this: |
if flutter doctor finds problems or missing components |
for a platform that you don’t want to develop for, |
you can ignore those warnings. or you can disable the |
platform altogether using the flutter config command, |
for example: |
other available flags: |
after enabling desktop support, |
restart your IDE so that it can detect the new device. |
<topic_end> |
<topic_start> |
create and run |
creating a new project with desktop support is no different |
than creating a new flutter project for other platforms. |
once you’ve configured your environment for desktop |
support, you can create and run a desktop application |
either in the IDE or from the command line. |
<topic_end> |
<topic_start> |
using an IDE |
after you’ve configured your environment to support |
desktop, make sure you restart the IDE if it was |
already running. |
create a new application in your IDE and it automatically |
creates iOS, android, web, and desktop versions of your app. |
from the device pulldown, select windows (desktop), |
macOS (desktop), or linux (desktop) |
and run your application to see it launch on the desktop. |
<topic_end> |
<topic_start> |
from the command line |
to create a new application that includes desktop support |
(in addition to mobile and web support), run the following commands, |
substituting my_app with the name of your project: |
to launch your application from the command line, |
enter one of the following commands from the top |
of the package: |
info note |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.