1 Star 8 Fork 7

يىگانە/SpringDictFlutterProject

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
global.dart 706 Bytes
Copy Edit Raw Blame History
يىگانە authored 2019-09-13 12:39 +08:00 . Api updation successfully
import 'package:flutter/material.dart';
import 'package:spring_dict/EventBus/EventBus.dart';
final globalBus = EventBus.singleton(key: "application");
//const primaryColor = Color(0xFFff7979);
const primaryColor = Colors.deepPurple;
void log(Object message, {Object context}){
message = "****************$context LOG ****************"
"\n"
"$message"
"\n"
"**************** LOG END ****************";
globalBus.publish("application.log", message);
}
void applyLogger(){
globalBus.subscribeIfNotExists("application.log", (bus, message){
print(message);
});
globalBus.subscribeIfNotExists("application.log", (bus, message){
//network.uploadLog(message)
});
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Dart
1
https://gitee.com/dream-lab/SpringDictFlutterProject.git
git@gitee.com:dream-lab/SpringDictFlutterProject.git
dream-lab
SpringDictFlutterProject
SpringDictFlutterProject
master

Search