showDictionaryMenu method

Future<void> showDictionaryMenu()

Show the dictionary menu. This should be callable from many parts of the app, so it is appropriately handled by the model.

Implementation

Future<void> showDictionaryMenu() async {
  await showDialog(
    barrierDismissible: true,
    context: navigatorKey.currentContext!,
    builder: (context) => const DictionaryDialogPage(),
  );

  notifyListeners();
  dictionaryMenuNotifier.notifyListeners();
}