SimulatorSettings constructor
SimulatorSettings({
- Color? backgroundColor,
- Color? accentColor,
- Color? dividerColor,
- bool enable = true,
- Brightness brightness = Brightness.dark,
- Color iOSMultitaskBarColor = Colors.grey,
- Color statusBarBackgroundColor = Colors.black26,
- Orientation orientation = Orientation.portrait,
- int initialDeviceIndex = 0,
- TargetPlatform initialPlatform = TargetPlatform.android,
- bool showBottomBar = true,
- bool showDeviceSlider = true,
- bool showColorSelector = false,
- bool useSafeArea = true,
- required List<
DeviceDescriptor> iosDevices, - required List<
DeviceDescriptor> androidDevices,
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;