Q Quit (terminate the application on the device).Īn Observatory debugger and profiler on macOS is available at: H List all available interactive commands.ĭ Detach (terminate "flutter run" but leave application running). Launching lib/main.dart on macOS in debug mode. Thanks to the previous step, running as a desktop application should be the only available option. Alternatively, open this project in your IDE, and use its tooling to run the application. To make sure everything is working, run the boilerplate Flutter application as a desktop application as shown below. PS C:\src\github_graphql_client> rmdir web PS C:\src\github_graphql_client> rmdir ios
Deleting the files helps to eliminate accidentally running the wrong variant during this codelab.įor macOS and Linux: $ rm -r android ios webįor Windows: PS C:\src\github_graphql_client> rmdir android These files are not required for Flutter for a desktop application.
Your application code is in github_graphql_client/lib/main.dart.įor the purpose of simplifying this codelab, delete the Android, iOS, and web support files. $ flutter create github_graphql_clientĬreating project github_graphql_client. Alternatively, your IDE may provide a workflow for creating a Flutter project through its UI. Does running flutter channel list either dev or master as the current channel? This is required as the code will not run on the stable or beta channels.Īn easy way to get started writing Flutter for desktop apps is to use the Flutter command-line tool to create a Flutter project.
You need to configure desktop support with a one-time configuration change. Get started developing desktop applications with Flutter In addition, there are operating system specific requirements which are covered in detail on v/desktop.
So, if you want to develop a Windows desktop app, you must develop on Windows for access to the appropriate build chain.ĭeveloping for all operating systems requires two pieces of software to complete this lab: the Flutter SDK, and an editor. You must develop on the platform where you plan to deploy.
I'm looking for an explanation of something specific. I'm looking for example code to use in my project. I know something about this topic, but I want a refresher. What would you like to learn from this codelab? I'm new to the topic, and I want a good overview. Non-relevant concepts and code blocks are glossed over, and are provided for you to simply copy and paste. This codelab focuses on adding GraphQL capabilities to a Flutter desktop app. Here is a screenshot of the desktop application that you will build, running on Windows.
How to create a Flutter plugin to integrate with native APIs.How to use GraphQL from Flutter with code generation.How to authenticate using OAuth2 on desktop.How to create a Flutter desktop application.In accomplishing this task, you'll create and use plugins to interact with native APIs and desktop applications, and use code generation to build type safe client libraries for GitHub's APIs. In this codelab, you'll build a Flutter desktop app that accesses GitHub APIs to retrieve your repositories, assigned issues, and pull requests. Flutter is Google's UI toolkit for building beautiful, natively compiled applications for mobile, web, and desktop from a single codebase.