amugofjava / anytime_podcast_player

Simple, easy to use Podcast player app written in Flutter and Dart.
BSD 3-Clause "New" or "Revised" License
403 stars 101 forks source link

Option to force-use Material Design for BasicDialogAlert on iOS #41

Closed erdemyerebasmaz closed 3 years ago

erdemyerebasmaz commented 3 years ago

We're using Material design on our app, on both Android and iOS platforms for consistency. However, using the anytime podcast player inside our app breaks this rule as the player uses Cupertino widgets on iOS.

We'd like the option to use Material design on anytime podcast player, that chooses Material widgets over their Cupertino counterpart.

Something along the lines of:

    if (appSettings.useMaterialDesign) {
      showDialog<void>(
        builder: (_) => AlertDialog(...),
      );
    } else {
      showPlatformDialog<void>(
        context: context,
        builder: (_) => BasicDialogAlert(...),
      );
    }