I have an App Layout of angular components in my AngularDart project. How can I change the drawer
of App layout from persistent
to temporary
at the change of media screen?
you can use the onResize
event on the window to listen change on it and set your layout to temporary
or persistent
import "dart:html";
import "dart:async";
StreamSubscription<Event> subscription = window.onResize.listen((Event e) {
final width = window.screen.width;
});
// onDestroy
subscription.cancel();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With