sent to Dart Pub
This commit is contained in:
parent
b5a3e86cbd
commit
a7afdf6218
@ -1,3 +1,3 @@
|
|||||||
## 0.0.1
|
## 0.0.1
|
||||||
|
|
||||||
* TODO: Describe initial release.
|
* SMS and MMS for Android and iOS
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
// This is a basic Flutter widget test.
|
|
||||||
// To perform an interaction with a widget in your test, use the WidgetTester utility that Flutter
|
|
||||||
// provides. For example, you can send tap and scroll gestures. You can also use WidgetTester to
|
|
||||||
// find child widgets in the widget tree, read text, and verify that the values of widget properties
|
|
||||||
// are correct.
|
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
|
|
||||||
import 'package:flutter_sms_example/main.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
testWidgets('Verify Platform version', (WidgetTester tester) async {
|
|
||||||
// Build our app and trigger a frame.
|
|
||||||
await tester.pumpWidget(new MyApp());
|
|
||||||
|
|
||||||
// Verify that platform version is retrieved.
|
|
||||||
expect(
|
|
||||||
find.byWidgetPredicate(
|
|
||||||
(Widget widget) =>
|
|
||||||
widget is Text && widget.data.startsWith('Running on:'),
|
|
||||||
),
|
|
||||||
findsOneWidget);
|
|
||||||
});
|
|
||||||
}
|
|
@ -19,8 +19,8 @@ class FlutterSms {
|
|||||||
mapData["message"] = message;
|
mapData["message"] = message;
|
||||||
mapData["recipients"] = recipients;
|
mapData["recipients"] = recipients;
|
||||||
final String result = await _channel.invokeMethod('sendSMS', mapData);
|
final String result = await _channel.invokeMethod('sendSMS', mapData);
|
||||||
String _log = "SMS Message: $message";
|
// String _log = "SMS Message: $message";
|
||||||
for (var person in recipients) _log += "\nSent: $person";
|
// for (var person in recipients) _log += "\nSent: $person";
|
||||||
// final String result = _log;
|
// final String result = _log;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
name: flutter_sms
|
name: flutter_sms
|
||||||
description: A Flutter plugin for Sending SMS on Android and iOS.
|
description: A Flutter plugin for Sending SMS on Android and iOS.
|
||||||
version: 0.0.1
|
version: 0.0.1
|
||||||
author:
|
author: Rody Davis <rody.davis.jr@gmail.com>
|
||||||
homepage:
|
homepage: https://github.com/AppleEducate/flutter_sms
|
||||||
|
environment:
|
||||||
|
sdk: ">=1.19.0 <2.0.0"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
flutter:
|
flutter:
|
||||||
|
@ -1,29 +0,0 @@
|
|||||||
// This is a basic Flutter widget test.
|
|
||||||
// To perform an interaction with a widget in your test, use the WidgetTester utility that Flutter
|
|
||||||
// provides. For example, you can send tap and scroll gestures. You can also use WidgetTester to
|
|
||||||
// find child widgets in the widget tree, read text, and verify that the values of widget properties
|
|
||||||
// are correct.
|
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
// import 'package:flutter_test/flutter_test.dart';
|
|
||||||
|
|
||||||
// import 'package:flutter_sms/main.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
// testWidgets('Counter increments smoke test', (WidgetTester tester) async {
|
|
||||||
// // Build our app and trigger a frame.
|
|
||||||
// await tester.pumpWidget(new MyApp());
|
|
||||||
|
|
||||||
// // Verify that our counter starts at 0.
|
|
||||||
// expect(find.text('0'), findsOneWidget);
|
|
||||||
// expect(find.text('1'), findsNothing);
|
|
||||||
|
|
||||||
// // Tap the '+' icon and trigger a frame.
|
|
||||||
// await tester.tap(find.byIcon(Icons.add));
|
|
||||||
// await tester.pump();
|
|
||||||
|
|
||||||
// // Verify that our counter has incremented.
|
|
||||||
// expect(find.text('0'), findsNothing);
|
|
||||||
// expect(find.text('1'), findsOneWidget);
|
|
||||||
// });
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user