FlexAdaptive.excludeAndroidFuchsia constructor

const FlexAdaptive.excludeAndroidFuchsia({
  1. bool android = false,
  2. bool androidWeb = true,
  3. bool fuchsia = false,
  4. bool fuchsiaWeb = true,
  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 all platforms on web and on all devices, except Android and Fuchsia devices.

Rationale for this configuration, you only want to retain the default Material 3 theme feature setup on Android and Fuchsia platform device builds, but on Web and all other platforms, you want the adaptive, less opinionated feature.

The rationale for Web being same on all, it should look the same regardless of platform and it should use the less opinionated adaptive config. This is a suitable option if you are not ready to use the Google opinionated Material 3 design on any platform on web.

Implementation

const FlexAdaptive.excludeAndroidFuchsia({
  this.android = false,
  this.androidWeb = true,
  this.fuchsia = false,
  this.fuchsiaWeb = true,
  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,
});