♻️ Add event bus to more places

This commit is contained in:
2025-11-02 17:13:10 +08:00
parent d764b042fe
commit e70439870e
4 changed files with 7 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:island/models/post.dart';
import 'package:island/pods/network.dart';
import 'package:island/services/event_bus.dart';
import 'package:island/widgets/post/compose_settings_sheet.dart';
import 'package:island/widgets/post/compose_shared.dart';
@@ -96,6 +97,7 @@ class ComposeSubmitUtils {
// Call the success callback
onSuccess();
eventBus.fire(PostCreatedEvent());
return post;
} catch (err) {