import 'package:flutter/material.dart'; import 'package:get/get_navigation/src/router_report.dart'; class GetXRouteObserver extends NavigatorObserver { @override void didPush(Route route, Route? previousRoute) { RouterReportManager.reportCurrentRoute(route); } @override void didPop(Route route, Route? previousRoute) async { RouterReportManager.reportRouteDispose(route); } }