Fluent – powerful framework demo, which can be downloaded and used

Time:2021-11-14
Fluent - powerful framework demo, which can be downloaded and used

image.png

introduce

Network optimization, built-in app package upgrade, data loading optimization, cache access optimization, local crash log collection, and subsequent demos will be continuously updated

File directory

Dio: network request encapsulation file
api_ Utils.dart: baseurl and API interface definition class
Tools: all encapsulated public classes used in the project store files
win_ Pages: all pages store files. For intuitive feeling, the files under this page are ABC sorted

Fluent - powerful framework demo, which can be downloaded and used

image.png
Fluent - powerful framework demo, which can be downloaded and used

image.png

Import package

Fluent - powerful framework demo, which can be downloaded and used

image.png

Introduction to use

global_ Key.dart – > defines the global router. See the demo for the specific definition,
Usage: Context: routerkey.navigatorstate.currentstate.context,
Refer to alert.dart
show_ Alert.dart – > you can customize the pop-up window here and use it together with alert.dart to pop up everywhere
Preferences.dart – > lightweight local cache, which transforms asynchronous acquisition into synchronous acquisition, which is easy to access
Public. Dart – > this class encapsulates the global theme color, font, style, etc
a_ Tabbotom – > this file is where tabbar is defined
Main.dart – > log collection, third-party registration, etc. are all in this class

Method display

Fluent - powerful framework demo, which can be downloaded and used

image.png
Fluent - powerful framework demo, which can be downloaded and used

image.png
Fluent - powerful framework demo, which can be downloaded and used

image.png
Fluent - powerful framework demo, which can be downloaded and used

image.png

The specific detailed code logic can be viewed in the demo with clear comments. This document will be improved later. Thank you for your support
Demo download address:https://gitee.com/old-swordsman/flutter_demo_yxq

It’s not easy to edit. Brush RMB to support it!!!