Skip to content

Commit 32902bd

Browse files
FarazFaraz
authored andcommitted
add internet permission to android manifest
1 parent c079555 commit 32902bd

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

example/android/app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
3+
<uses-permission android:name="android.permission.INTERNET"/>
4+
25
<application
3-
android:label="example"
6+
android:label="F3DC Example"
47
android:name="${applicationName}"
58
android:icon="@mipmap/ic_launcher"
69
android:usesCleartextTraffic="true">

example/lib/main.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ class _MyHomePageState extends State<MyHomePage> {
154154
Flexible(
155155
flex: 1,
156156
child: Flutter3DViewer.obj(
157-
src: 'assets/flutter_dash.obj',
158-
//src: 'https://raw.githubusercontent.com/m-r-davari/content-holder/refs/heads/master/flutter_3d_controller/flutter_dash_model/flutter_dash.obj',
157+
//src: 'assets/flutter_dash.obj',
158+
src: 'https://raw.githubusercontent.com/m-r-davari/content-holder/refs/heads/master/flutter_3d_controller/flutter_dash_model/flutter_dash.obj',
159159
scale: 5,
160160
// Initial scale of obj model
161161
cameraX: 0,
@@ -204,10 +204,9 @@ class _MyHomePageState extends State<MyHomePage> {
204204
},
205205
//You can have full control of 3d model animations, textures and camera
206206
controller: controller,
207-
src:
208-
'assets/business_man.glb', //3D model with different animations
207+
//src: 'assets/business_man.glb', //3D model with different animations
209208
//src: 'assets/sheen_chair.glb', //3D model with different textures
210-
//src: 'https://modelviewer.dev/shared-assets/models/Astronaut.glb', // 3D model from URL
209+
src: 'https://modelviewer.dev/shared-assets/models/Astronaut.glb', // 3D model from URL
211210
),
212211
)
213212
],

0 commit comments

Comments
 (0)