Changing App Layout Drawer persistent to temporary at media change in AngularDart Changing App Layout Drawer persistent to temporary at media change in AngularDart dart dart

Changing App Layout Drawer persistent to temporary at media change in AngularDart


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;});// onDestroysubscription.cancel();