AdaptivePlatformWidget constructor
const
AdaptivePlatformWidget({})
AdaptivePlatformWidget
This widget will render based on the current running platform
Example:
AdaptivePlatformWidget(
child: MyMaterialApp(),
ios: MyCupertinoApp(),
macos: MyMacosApp(),
web: MyWebApp(),
window: MyWindowApp(),
)
Implementation
const AdaptivePlatformWidget({
Key? key,
required this.child,
this.web,
this.ios,
this.android,
this.macos,
this.window,
this.linux,
}) : super(key: key);