1. Introduction
Flutter2.0 added desktop development support to the stable branch, which was of great interest to me as a small mobile developer (/ manual head), so I started my first MacOS application development (FTools). To put it simply: Developing desktop applications is not too easy! Below is a screenshot of the app, multi-image warning
2. Screen capture
- Bright mode:
- Dark mode:
3.MacOS application development
See above, is also like me, want to write a macOS tool application, don’t worry, here to teach you how to create and generate macOS applications
1. Configure the environment
First of all, make sure that your FlutterSDK is 2.0. I use the Beta branch. You can also find the same version number under the Stable branch
2. Configure MacOS applications to be developed
Run the following command
flutter config --enable-macos-deaktop
Copy the code
3. Create projects
I usually use Android Studio, so follow the steps:
Create New Flutter Project
-> Select Flutter Application -> Click Next
-> Enter Project Name -> Click Next
-> Enter Package Name -> Click Finish
-> Wait until the Flutter is created (if it is stuck, try setting up the proxy, baidu search: Flutter set up the internal mirror)
-> Because the project created by Android Studio can only run Android and IOS, we need to switch to the root directory of the project from the command line and run flutter Create. After you finish, you can see the MacOS folder
4. Run the project
Here, we need to update Android Studio to the latest version of Flutter, select macOS and click the green triangle button to run Flutter
4. Follow-up development of FTools
This application only took two days at present, and it will be maintained and put on the AppStore for free in the future. If you want to know what functions this application has (users are for developers), please leave a message in the comment section, and it will be arranged into the development plan if it can be realized and there is enough time. Currently scheduled!
- Json To Table (Json To Table)
- Json To Create SQLite
- App Icon Make
- . Welcome to leave a message
-
Download address: image. Rhyme95. Cn/FTools1.0.2…
-
Follow-up development ac plus Q group: 129380453 or public number: Dart Inn