Skip to content

Latest commit

 

History

History
110 lines (63 loc) · 4.89 KB

README_zh.md

File metadata and controls

110 lines (63 loc) · 4.89 KB

中文 | EN

Flutter

Flutter is a new cross-platform, open source UI framework developed by Google that supports iOS, Android system development, and is the default development kit for the new operating system Fuchsia.

Flutter implements graphics rendering through the cross-platform Skia graphics library, relying solely on the graphics of the various systems to draw the relevant Api, which may be the true full-platform UI framework so far.

With the Feather platform, we can run our Flutter app on MacOS and Windows, which means you can write an app that runs on all major desktops and mobile devices.

Feather Platform

Feather is a platform for running Flutter applications on the desktop.

  • Compilers and libraries for running Flutter applications on Mac and Windows
  • An app store that you can use to publish and update apps and provide users with minimal installation resistance
  • An optional set of extended Flutter UI widgets for advanced interface design
  • Currently in the alpha test phase
  • Free use of business license

See more: https://feather-apps.com

Configuration

Go to the official website and click Build an App Now to download the Mac compiler.

After the download is complete, open the Feature Workbench, there is a wall here, non-excellent network may have to deal with it.

Once you've signed in to your Google Account, you'll see a list of projects. If you do it for the first time, it's of course empty.

Project transformation

Let's create a new project here, and teach you how to run the Flutter project on MacOS. It's very simple.

  1. Open the terminal and create a new Flutter project
flutter create mac_app
  1. Open main.dart in the mac_app project to modify two places:
  1. Introduce the foundation package at the top of the code
import 'package:flutter/foundation.dart';
  1. Modify the void main() function to increase platform coverage
void main() {
  debugDefaultTargetPlatformOverride = TargetPlatform.iOS;
  runApp(MyApp());
}

Save the code and you're done.

New Feather Project

Click the plus sign in the lower right corner of the Feature Workbench interface to enter the new page and click BROWSE to find the Flutter project.

Setting the app name and icon is complete.

Clicking on TEST will open Xcode, and command + r will run and you will see Flutter's official example running on MacOS.

The DEBUG in the upper right corner of Flutter is the environment tag. I don't want to see it. I switch the production environment and it disappears.

Publishing and using

Click on PUBLISH to set the app description and screenshots and publish the app to the Feather store.

Once the release is complete, go back to the project list and you will see the WEB option, which will take you to the Feather App Store website.

Any Mac computer can access and install this app via this link (https://feather-apps.com/alpha/app.html?id=app_gqcz24d6Vw80).

Update

Just like the release process, just pay attention to modify the version number, application description and screenshots, and finally upload the application.

Demonstration

The above is Flutter's official example project, a friend said it seems to be not addictive, so I found a sample project on the Internet that seems to be suitable for cross-platform services, I modified it to run on the macOS system.

Friends are satisfied with nothing🤪...

Flutter installation, use, commissioning tips and more demonstration projects, see Flutter Practice archive