From d4207e27bc28a63df9cccd8abd6c8ceae0d8009b Mon Sep 17 00:00:00 2001 From: hackycy Date: Tue, 16 Jun 2020 11:10:26 +0800 Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9A=E5=A2=9E=E5=8A=A0EventBus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/event/event_bus.dart | 7 +++++++ lib/event/event_model.dart | 7 +++++++ pubspec.lock | 7 +++++++ pubspec.yaml | 3 ++- 4 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 lib/event/event_bus.dart create mode 100644 lib/event/event_model.dart diff --git a/lib/event/event_bus.dart b/lib/event/event_bus.dart new file mode 100644 index 0000000..1484e13 --- /dev/null +++ b/lib/event/event_bus.dart @@ -0,0 +1,7 @@ +import 'package:event_bus/event_bus.dart'; + +class ApplicationEvent { + + static EventBus eventBus; + +} \ No newline at end of file diff --git a/lib/event/event_model.dart b/lib/event/event_model.dart new file mode 100644 index 0000000..15c7ab2 --- /dev/null +++ b/lib/event/event_model.dart @@ -0,0 +1,7 @@ +class DemoEvent { + + final String name; + + DemoEvent(this.name); + +} \ No newline at end of file diff --git a/pubspec.lock b/pubspec.lock index 350f613..9933068 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -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: diff --git a/pubspec.yaml b/pubspec.yaml index 0d055cc..0881924 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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.