Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Foldblade committed Mar 15, 2022
1 parent 230184c commit bc65c0d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/src/model_viewer_plus_mobile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import 'dart:convert' show utf8;
import 'dart:io'
show File, HttpRequest, HttpServer, HttpStatus, InternetAddress, Platform;
import 'dart:typed_data' show Uint8List;
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:path/path.dart' as p;

import 'package:android_intent_plus/flag.dart';
Expand Down Expand Up @@ -59,6 +61,11 @@ class ModelViewerState extends State<ModelViewer> {
initialUrl: null,
javascriptMode: JavascriptMode.unrestricted,
initialMediaPlaybackPolicy: AutoMediaPlaybackPolicy.always_allow,
gestureRecognizers: <Factory<OneSequenceGestureRecognizer>>{
Factory<OneSequenceGestureRecognizer>(
() => EagerGestureRecognizer(),
),
},
onWebViewCreated: (final WebViewController webViewController) async {
_controller.complete(webViewController);
print('>>>> ModelViewer initializing... <$_proxyURL>'); // DEBUG
Expand Down

0 comments on commit bc65c0d

Please sign in to comment.