Showing
1 changed file
with
2 additions
and
3 deletions
| @@ -259,9 +259,8 @@ class _MobileScannerState extends State<MobileScanner> | @@ -259,9 +259,8 @@ class _MobileScannerState extends State<MobileScanner> | ||
| 259 | size: constraints.biggest, | 259 | size: constraints.biggest, |
| 260 | child: FittedBox( | 260 | child: FittedBox( |
| 261 | fit: widget.fit, | 261 | fit: widget.fit, |
| 262 | - child: SizedBox( | ||
| 263 | - width: value.size.width, | ||
| 264 | - height: value.size.height, | 262 | + child: SizedBox.fromSize( |
| 263 | + size: value.size, | ||
| 265 | child: kIsWeb | 264 | child: kIsWeb |
| 266 | ? HtmlElementView(viewType: value.webId!) | 265 | ? HtmlElementView(viewType: value.webId!) |
| 267 | : Texture(textureId: value.textureId!), | 266 | : Texture(textureId: value.textureId!), |
-
Please register or login to post a comment