introduce
Feather Platform is a Platform that enables Flutter applications to run on Mac OS and Windows
Feather-apps.com/
The official website is as follows:
The Feather platform will run Flutter apps on MacOS and Windows. So you can write a single app that runs on all major desktop and mobile devices.
Basically, you can write a Flutter app to run on all platforms.
So how do you do that?
practice
1. Click the button on the homepage of the official websiteBuild an App Now, will download the program installation package.
2. After downloading, open the installation application and enter the following application interface.
3. Log in with a Google account (requires scientific Internet access).
4. Click the “Add” button in the lower right corner.
5. Click “BROWSE” to select a Flutter project that has been developed.
Here we use the MusesWeather project.
Project address: github.com/KinsomyJS/m…
Article address: juejin.cn/post/684490…
6. Add code
According to clew need to increase the two code, in the project. The main dart files to add the import ‘package: flutter/foundation. The dart’; , in the main method to add debugDefaultTargetPlatformOverride = TargetPlatform. IOS; .
7. Add App Name and click Continue
So you’ve got an App project that’s been added, and you click in and you see it
Clicking On TEST will prompt you to open Xcode and run the project within Xcode.
product
Finally, we managed to run the Flutter project on Mac OS. Anyone who is interested can try it right away.
Project address: github.com/KinsomyJS/m…
explain
How is this different to the flutter-desktop-embedding project?
Feather is actually based on the flutter-desktop-embedding project. Currently for Mac it offers the same features plus:
(a) More functionality like copy and paste, mouse wheel and escape key
(b) More supported plugins like shared_preferences, url_launcher, google_sign_in
(c) An easy way to publish your app and push updates to end users
Feather Platform is developed based on Google’s open source project Flutter – desktop-Embedding and provides more features:
- Input devices such as keyboards and mice
- Support more plug-ins such as persistence, Google login, etc
- App can be published to Feather Store and updated.