system_sounds_flutter

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

system sounds flutter

ringtone_set #
Flutter package for easily setting device's default ringtone or notification sound.

Important
Works only on Android




Getting Started #
Add these lines to AndroidManifest.xml.
<manifest>
...
<uses-permission android:name="android.permission.WRITE_SETTINGS"
tools:ignore="ProtectedPermissions" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
...
</manifest>
copied to clipboard
Put your sounds into <yourapp>/assets/
add them to your pubspec.yaml
flutter:
assets:
- assets/music.mp3
copied to clipboard
dependencies:
ringtone_set: ^0.7.0
copied to clipboard
Import the package
import 'package:ringtone_set/system_sounds_flutter.dart';
copied to clipboard
Call the function
RingtoneSet.setRingtone("music.mp3");
copied to clipboard
or
RingtoneSet.setNotification("music.mp3");
copied to clipboard
or
RingtoneSet.setAlarm("music.mp3");
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.