SimulatorSettings constructor

SimulatorSettings({
  1. Color? backgroundColor,
  2. Color? accentColor,
  3. Color? dividerColor,
  4. bool enable = true,
  5. Brightness brightness = Brightness.dark,
  6. Color iOSMultitaskBarColor = Colors.grey,
  7. bool showNavigationBar = false,
  8. Color statusBarBackgroundColor = Colors.black26,
  9. Color navigationBarBackgroundColor = Colors.black26,
  10. Orientation orientation = Orientation.portrait,
  11. int initialDeviceIndex = 0,
  12. TargetPlatform initialPlatform = TargetPlatform.android,
  13. bool showBottomBar = true,
  14. bool showDeviceSlider = true,
  15. bool showColorSelector = false,
  16. bool useSafeArea = true,
  17. required List<DeviceDescriptor> iosDevices,
  18. required List<DeviceDescriptor> androidDevices,
  19. MenuPosition menuPosition = MenuPosition.left,
})

Implementation

SimulatorSettings({
  Color? backgroundColor,
  Color? accentColor,
  Color? dividerColor,
  this.enable = true,
  this.brightness = Brightness.dark,
  this.iOSMultitaskBarColor = Colors.grey,
  this.showNavigationBar = false,
  this.statusBarBackgroundColor = Colors.black26,
  this.navigationBarBackgroundColor = Colors.black26,
  this.orientation = Orientation.portrait,
  this.initialDeviceIndex = 0,
  this.initialPlatform = TargetPlatform.android,
  this.showBottomBar = true,
  this.showDeviceSlider = true,
  this.showColorSelector = false,
  this.useSafeArea = true,
  required this.iosDevices,
  required this.androidDevices,
  this.menuPosition = MenuPosition.left,
})  : this.backgroundColor = backgroundColor ?? Colors.grey.shade900,
      this.accentColor = accentColor ?? Colors.lightBlueAccent.shade100,
      this.dividerColor = dividerColor ?? accentColor ?? Colors.grey.shade700;