我想在Navigation BLoC中装饰我的超类。我尝试插入图像,但是在插入该图像后,看不到其他页面的内容。当我在超级屏幕上尝试输入文本时,可以看到具有该超级类文本的其他页面的内容。如何在不干扰其他页面的情况下将图像放入超类。
NavigationBloc.dart
class NavigationBloc extends Bloc<NavigationEvents, NavigationStates> {
NavigationBloc(this.auth) : super(HomePage(auth));
final BaseAuth auth;
@override
Stream<NavigationStates> mapEventToState(NavigationEvents event) async* {
switch (event) {
case NavigationEvents.HomePageClickedEvent:
yield HomePage(this.auth);
break;
case NavigationEvents.WaitingPharmacyEvent:
yield WaitingPharmacy(this.auth);
break;
}
}
}