forked from lxm_tools/flutter-picgo
chore:增加EventBus
This commit is contained in:
7
lib/event/event_bus.dart
Normal file
7
lib/event/event_bus.dart
Normal file
@@ -0,0 +1,7 @@
|
||||
import 'package:event_bus/event_bus.dart';
|
||||
|
||||
class ApplicationEvent {
|
||||
|
||||
static EventBus eventBus;
|
||||
|
||||
}
|
||||
7
lib/event/event_model.dart
Normal file
7
lib/event/event_model.dart
Normal file
@@ -0,0 +1,7 @@
|
||||
class DemoEvent {
|
||||
|
||||
final String name;
|
||||
|
||||
DemoEvent(this.name);
|
||||
|
||||
}
|
||||
@@ -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:
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user