https://github.com/flutterbest/flutter_app
https://github.com/flutterbest/flutter_app
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/flutterbest/flutter_app
- Owner: flutterbest
- License: mit
- Created: 2022-07-23T03:24:00.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-02T02:57:34.000Z (over 2 years ago)
- Last Synced: 2025-05-18T06:36:10.301Z (about 1 month ago)
- Language: Dart
- Size: 3.83 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 开发环境
```
Flutter 2.10.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 7e9793dee1 (5 weeks ago) • 2022-03-02 11:23:12 -0600
Engine • revision bd539267b4
Tools • Dart 2.16.1 • DevTools 2.9.2
```
## 路由和状态管理基于getx```dart
@override
onInit() {
super.onInit();/// 每次更改都会回调
ever(count1, (_) => print("$_ has been changed"));/// 第一次更改回调
once(count1, (_) => print("$_ was changed once"));/// 更改后3秒回调
debounce(count1, (_) => print("debouce$_"), time: Duration(seconds: 3));///3秒内更新回调一次
interval(count1, (_) => print("interval $_"), time: Duration(seconds: 3));
}
```