build method
dynamic
build( - dynamic context
)
Implementation
@override
Widget build(BuildContext context) {
// Web: full WebRTC view
if (kIsWeb) {
return _buildWebView();
}
// Windows always, Linux when the Rust features were compiled in:
// Rust-owned webcam capture + ONNX inference.
if (_useRustWebcam) {
return _buildRustWebcamPage();
}
// Other desktop + Android: Native GStreamer/Texture view
if (_isLinux || _isMacOS || _isAndroid) {
return _buildNativeView();
}
// Fallback for other platforms: WebRTC stub view
return _buildWebView();
}