title: why routing is not working when tap on the notification in flutter? ( the project is based on GetX and flutter local push notification package )
body: <p>Good day.
  I know that we use the onSelectNotification property to get the callback when the user tap on the notification in using the flutter local push notification package.</p>
  <pre><code>  Future&lt;void&gt; _initialize() async {
      await _configureLocalTimeZone();
      AndroidInitializationSettings initializationSettingsAndroid =
          AndroidInitializationSettings('@mipmap/ic_launcher');
  
      IOSInitializationSettings initializationSettingsIOS =
          IOSInitializationSettings(
              onDidReceiveLocalNotification: _onDidReceiveLocalNotification);
  
      InitializationSettings initializationSettings = InitializationSettings(
          android: initializationSettingsAndroid, iOS: initializationSettingsIOS);
  
      await _flutterLocalNotificationsPlugin.initialize(initializationSettings,
          onSelectNotification: _onSelectNotification);        // This is for the callback
    }
  </code></pre>
  <p>This is the _onSelectsNotification function.</p>
  <pre><code>  Future _onSelectNotification(String payload) async {
      if (payload != null) {
        print('notification payload: $payload');
      }
      BuildContext context;
      await Navigator.of(context)
          .push(MaterialPageRoute(builder: (BuildContext context) {
        return NotificationsView();
      }));                           // ***** This is not working. with no error.
    }
  </code></pre>
  <p>I am not sure what to use for the context. I think the next route to the NotificationView() is not working because of the context value.
  Could you please help me with this issue?
  I am now using the GetX for the state management.</p>
  <p>Thanks.</p>