chore:增加EventBus

This commit is contained in:
hackycy
2020-06-16 11:10:26 +08:00
parent d059e343b5
commit d4207e27bc
4 changed files with 23 additions and 1 deletions

7
lib/event/event_bus.dart Normal file
View File

@@ -0,0 +1,7 @@
import 'package:event_bus/event_bus.dart';
class ApplicationEvent {
static EventBus eventBus;
}

View File

@@ -0,0 +1,7 @@
class DemoEvent {
final String name;
DemoEvent(this.name);
}

View File

@@ -71,6 +71,13 @@ packages:
url: "https://mirrors.tuna.tsinghua.edu.cn/dart-pub"
source: hosted
version: "3.0.9"
event_bus:
dependency: "direct main"
description:
name: event_bus
url: "https://mirrors.tuna.tsinghua.edu.cn/dart-pub"
source: hosted
version: "1.1.1"
fluro:
dependency: "direct main"
description:

View File

@@ -28,7 +28,8 @@ dependencies:
image_picker: ^0.6.7+1
package_info: ^0.4.1
sqflite: ^1.3.0
fluro: "^1.6.3"
fluro: ^1.6.3
event_bus: ^1.1.1
# The following adds the Cupertino Icons font to your application.