FlexAdaptive.iOSAndDesktop constructor

const FlexAdaptive.iOSAndDesktop({
  1. bool android = false,
  2. bool androidWeb = false,
  3. bool fuchsia = false,
  4. bool fuchsiaWeb = false,
  5. bool iOS = true,
  6. bool iOSWeb = true,
  7. bool linux = true,
  8. bool linuxWeb = true,
  9. bool macOS = true,
  10. bool macOSWeb = true,
  11. bool windows = true,
  12. bool windowsWeb = true,
  13. bool? overrideIsWeb,
})

Use adaptive feature on iOS and all desktop operating systems (Windows, macOS and linux), also when using the app in their web browsers.

Rationale for this configuration, you only want to retain the default none adaptive theme feature setup on Android and Fuchsia platforms on both device and their web behavior.

Useful for changing M3 opinionated styles on everything else than Android and Fuchsia, while also keeping it for web usage on Android and Fuchsia builds. Consider using it for correct platform styled progressive WEB apps on Android and Fuchsia. While the adaptive style is used on everything else, where the typical use case is to replace Material 3 opinionated styles with this platform adaptive design feature.

Implementation

const FlexAdaptive.iOSAndDesktop({
  this.android = false,
  this.androidWeb = false,
  this.fuchsia = false,
  this.fuchsiaWeb = false,
  this.iOS = true,
  this.iOSWeb = true,
  this.linux = true,
  this.linuxWeb = true,
  this.macOS = true,
  this.macOSWeb = true,
  this.windows = true,
  this.windowsWeb = true,
  this.overrideIsWeb,
});