0 purchases
direct flutter sms
direct_flutter_sms #
A Flutter package to enable direct sending of SMS messages from your Flutter application, without relying on external services.
Features #
Send SMS messages directly from your Flutter app.
Platform-specific implementation for Android using SmsManager.
Getting started #
To start using this package, ensure you have Flutter installed and create a new Flutter project. Then, add direct_flutter_sms to your pubspec.yaml file:
dependencies:
flutter:
sdk: flutter
direct_flutter_sms: ^1.0.0
copied to clipboard
For Android, you'll also need to add the necessary permissions in your AndroidManifest.xml file:
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
copied to clipboard
Usage #
import 'package:direct_flutter_sms/direct_flutter_sms.dart';
void main() {
SmsService.sendSms('555-1234', 'Hello from direct_flutter_sms!');
}
copied to clipboard
Additional information #
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.