DeviceSimulator constructor
DeviceSimulator({
- required WidgetBuilder builder,
- bool enable = true,
- Brightness brightness = Brightness.light,
- Color iOSMultitaskBarColor = Colors.grey,
- Color androidStatusBarBackgroundColor = Colors.black26,
- Orientation? orientation,
- int initialDeviceIndex = 0,
- TargetPlatform initialPlatform = TargetPlatform.android,
- Color? backgroundColor,
- bool showBottomBar = true,
- bool showDeviceSlider = true,
Creates a new DeviceSimulator.
Implementation
DeviceSimulator({
// Widget? child,
required this.builder,
this.enable = true,
this.brightness = Brightness.light,
this.iOSMultitaskBarColor = Colors.grey,
this.androidShowNavigationBar = true,
this.androidStatusBarBackgroundColor = Colors.black26,
this.orientation,
this.initialDeviceIndex = 0,
this.initialPlatform = TargetPlatform.android,
Color? backgroundColor,
this.showBottomBar = true,
this.showDeviceSlider = true,
}) : this.backgroundColor = backgroundColor ?? Colors.grey.shade900;