spline_viewer 0.0.1
spline_viewer: ^0.0.1 copied to clipboard
A tool to integrate Spline Views
Installing #
dependencies:
spline_viewer: ^0.0.1
Android #
Make sure to add this line android:usesCleartextTraffic="true" in your <project-directory>/android/app/src/main/AndroidManifest.xml under application like this.
<application
android:usesCleartextTraffic="true">
</application>
Required Permissions are:
<uses-permission android:name="android.permission.INTERNET" />
iOS #
Add following code in your <project-directory>/ios/Runner/Info.plist
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key> <true/>
</dict>
Usage
SplineViewer(
moduleUrl: "url to your spline module",
splineViewerUrl: "spline viewer Url",
cameraHint: true,
loadingAnimType:
LoadingSpinner.bigLight,
altText: "Explanation of your Spline Animation",
styleCss: "width: 100%; height: 100%;",
),