Write an App with Flutter to Readhub

Readhub is open source for Flutter

Related article 3: Documentation of Flutter iOS debugging and packaging process

Related article 4: Summary of the packaging process of Flutter iOS and the approval process of the build launch

Freadhub has finally updated Flutter2.0

Freadhub for Mac It’s coming

preface

The release of Flutter 2.0 on 2021.03.04 officially entered the era of all-platform Stable

The official release of Flutter 2.0 is Stable across all platforms

Here’s a look at the new features of Flutter 2

The Flutter upgrade 2.0 pit filling guide takes you off in place

Freadhub was not upgraded at the first time, but it was also upgraded to Flutter 2.0 and air safety in April and released version 1.2.4 on 2021-04-12. Some minor adjustments were made gradually in the later period. Until recently, the company made a card sharing function in its project, and the effect was good, so it was synchronized transplant. Here’s a quick note. — The latest version is 1.3.0

Fredhub link
Open source making flutter_readhub
Open source Gitee flutter_readhub
Android Freadhub
iOS Clone automatically run or mail to the deviceUUID
MacOS Gitee download Download from a Shared disk

Download the MacOS zip package and unzip it. Click the icon to open it.

A tip from an unidentified developer appears. System Preferences -> Security & Privacy -> General Unlock and allow application installation.

Upgrade Flutter2.0

Everyone knows that you can upgrade a flutter to the latest version by executing a flutter upgrade or Tools – flutter upgrade -> Flutter upgrade.

However, it is recommended to have a copy before upgrading to avoid unexpected situations — there are other ways to recover, just get used to it.

Migration space security

Official website documents, Chinese documents, empty security migration probably has the following steps:

1. Execute flutter pub outdated –mode=null-safety to check whether all libraries that your project relies on support air safety

What’s more, most of the third-party libraries used by Freadhub have been upgraded with empty security versions. The only unsupported sharing plugin flutter_share_plugin has replaced 😂 with the official website sharing library share — you can also try it during the upgrade process. If it is a frequently used library, chances are it will be upgraded quickly. Or we can find a replacement library.

All your dependencies declare support for null-safety. prompt

If there are libraries that don’t support air security – wait. Because their own download down to modify the cost is too high, and later maintenance costs are not small.

Dart Migrate –apply-changes After this, your Dart SDK version will automatically change to greater than 2.12.0.

Note: Executing the Dart Migrate command must be ensuredSDKIs less than2.12.0; Do not add--apply-changesThere’s a browser address, and when you open it, you can change it in your browser

3. There will be some errors when the tool is executed. Correct the code according to your own business scenarios.

Use the official shared library

As mentioned earlier, the previous version of Freadhub used the sharing plugin flutter_share_plugin. Unfortunately, the library was not updated with empty security support. Therefore, use the official sharing plug-in share instead. The reason for using flutter_share_plugin was that the official share plugin only supported text sharing but not files. The official plugin now supports file sharing and supports empty security. The file sharing function is added in version 0.6.5.

Rich sharing effect

The previous version of Freadhub only supports the list-long sharing card mode, and does not support the sharing of specified apps (common QQ, wechat, Weibo, etc.).

Latest version support: information details page to share text links to wechat friends, QQ, Weibo, nails, enterprise wechat, copy links, browser open, more.

Latest version: information list and information details sharing page support card (picture) share to wechat friends, circle of friends, QQ, Weibo, nail nail, enterprise wechat, more. — And built-in Freadhub card style and gold digging card style two effect options

Note: This function involves the modification of share plug-in – version 2.0.1 is the latest version, and only the Android part has been modified, iOS has not found the corresponding implementation method, and the online implementation method is around 2017 code, copy and run without the relevant App. — If you know how to use iOS system to share the trouble designated App, thank 🙏!

Android only supports 64-bit cpus

The original Android version of Freadhub was set up with Armeabi-V7A to support the vast majority of 32 and 64-bit CPU phones on the market. Now the latest version 1.2.6 setting arm64-V8A namely: only support 64-bit CPU phones

Other minor optimizations

1. Global rounded effect increased from 6 to 12- including AlertDialog, more information Dialog, bottom ModalBottomSheet, Card rounded line and Card, select the theme Button rounded corner

2. Optimize the mode of selecting the theme – change the original folding form to the bottom pop-up mode bottomsheet mode

3. Change the ToastUtitl component oktoast to BOT_toast, and change ToastUtitl to use the floating notification card mode by default

4, remove the blank characters after the first paragraph of the text paragraph, optimize the display of more information logic.

5. Added FloatingActionButton at the bottom of information details page to facilitate one-handed operation

Running environment of the current version

Use tripartite library 2021-6-10

Environment: SDK: '>=2.12.0 <3.0.0' ^1.0.3 # support for flutter_localizations: SDK: # State provider: ^5.0.0 # toast: ^4.0.1 # device_info_plus: ^1.0.1 # application package info package_info_plus: ^1.0.2 # WebView webview_flutter: Cached_network_image: ^3.0.0 synchronized: ^3.0.0 # pull_to_refresh: ^2.0.0 # local cache sp shared_preferences: ^2.0.6 # shimmer: ^4.0.0 # utility class flustars: ^2.0.1 # Dynamic Permission Application - Version 8.0.0 requires a Profile application to enable permissions https://github.com/Baseflow/flutter-permission-handler/blob/master/permission_handler/example/ios/Podfile Permission_handler: ^8.0.1 # path_provider: ^ flutter_share_plugin: 0.1.2 # share: # flutter_share_plugin: 0.1.2 # share: ^2.0.1 # Use the official website branch to add a method to share a specific App/App to add a method to determine whether the App is installed https://flutter.dev/docs/development/packages-and-plugins/using-packages share: git: url: git://github.com/AriesHoo/plugins.git path: packages/share ref: Master # MAC shareFile method is not implemented on the Web and Windows shareFile method is also called url_launcher share_plus: ^2.1.2 # Adaptive breakpoint? ^0.4.0 # macOS webView flutter_macOS_webView: path: ./plugins/flutter_macos_webviewCopy the code

Operating environment 2021-6-10

% flutter doctor Doctor summary (to see all details, run flutter doctor -v): ✓] Flutter (Channel stable, 2.2.0, on macOS 11.4 20F71 darwin-x64, ✓ ✓ Android toolchain-develop for Android Devices (Android SDK version 30.0.3) [✓] Xcode-develop Chrome - develop for the web [✓] Android Studio (version 4.2) [✓] IntelliJ IDEA Ultimate Edition (Version 2020.3.3) [✓] VS Code (Version 1.56.2) [✓] Connected device (5 available) • No issues found!Copy the code

Overview of Main Functions

Light color theme The dark theme
Information for details Share links
Freadhub card Freadhub card – Dark mode
Gold digger style cards Gold digger style card – Dark color mode
Share the effect of micro-blog Email Sharing Effect
More sources Application Settings
Choose a topic Quick back to the top
The vertical screen Android Pad Landscape – Emulator
The landscape Android Pad Landscape – Emulator

conclusion

This App is developed for the author to learn about Flutter practice. It is right to throw a piece of advice to others

About me

The Denver nuggets: AriesHoo

Jane: AriesHoo

GitHub: AriesHoo

Email: [email protected]