visit_flutter_sdk 0.0.2 copy "visit_flutter_sdk: ^0.0.2" to clipboard
visit_flutter_sdk: ^0.0.2 copied to clipboard

visit_flutter_sdk is a Flutter plugin that integrates web views, URL handling, location services, and permission management. Enhance your mobile app functionality effortlessly with this versatile toolkit!

visit_flutter_sdk #

Flutter Plugin Visit WebView Sdk #

[Version]

A Flutter plugin that provides WebView access with permissions for location, file read/write, and more.

Getting Started #

This plugin allows you to easily embed a WebView in your Flutter application while managing permissions for location access and file operations.

Installation #

Add the following dependency in your pubspec.yaml file:

dependencies:
  flutter:
    sdk: flutter
  flutter_plugin_name: ^1.0.0


iOS Setup
To configure the plugin on iOS:

Open the ios/Runner/Info.plist file.
Add the following permissions:

<key>NSLocationWhenInUseUsageDescription</key>
<string>We need access to your location for...</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>We need access to your location for...</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>We need access to your photo library for...</string>
<key>NSCameraUsageDescription</key>
<string>We need access to your camera for...</string>

Android Setup
To configure the plugin on Android:

Open the android/app/build.gradle file.
Ensure you have the following permissions:
xml
Copy code
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

WebView Permissions
You can enable WebView access to handle location and file operations by configuring the plugin in your Dart code.


class _MyAppState extends State

@override Widget build(BuildContext context) { return const MaterialApp( home: Scaffold( body: Center( child: VisitFlutterSdk( ssoUrl: 'https://flutter.cn', ), ), ), ); } }

Key Updates: #

  • WebView Permissions: Added a section on how to handle WebView access and permission management.
  • Example Usage: Provided an example of using the WebView with permission callbacks.
  • Permissions for iOS and Android: Detailed permission requirements for location and file access.

Feel free to adjust any parts that might better fit your plugin’s functionality! Let me know if you need more help.

0
likes
0
points
58
downloads

Publisher

unverified uploader

Weekly Downloads

visit_flutter_sdk is a Flutter plugin that integrates web views, URL handling, location services, and permission management. Enhance your mobile app functionality effortlessly with this versatile toolkit!

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, geolocator, geolocator_apple, permission_handler, plugin_platform_interface, url_launcher, webview_flutter

More

Packages that depend on visit_flutter_sdk

Packages that implement visit_flutter_sdk