When the user taps Apply in the news filter bottom sheet, the bottom sheet is dismissed with Navigator.of(context).pop(0). Because showCustomBottomSheet returns Future<String?>, this returns an int instead of a String?, causing a runtime type error.
Steps to reproduce
- Launch the app.
- Tap the filter icon in the news app bar.
- Select a topic.
- Tap Apply.

When the user taps Apply in the news filter bottom sheet, the bottom sheet is dismissed with Navigator.of(context).pop(0). Because showCustomBottomSheet returns Future<String?>, this returns an int instead of a String?, causing a runtime type error.
Steps to reproduce
- Launch the app.
- Tap the filter icon in the news app bar.
- Select a topic.
- Tap Apply.