sent to Dart Pub

This commit is contained in:
Rody Davis 2018-08-16 10:18:10 -04:00
parent b5a3e86cbd
commit a7afdf6218
5 changed files with 7 additions and 59 deletions

View File

@ -1,3 +1,3 @@
## 0.0.1
* TODO: Describe initial release.
* SMS and MMS for Android and iOS

View File

@ -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);
});
}

View File

@ -19,8 +19,8 @@ class FlutterSms {
mapData["message"] = message;
mapData["recipients"] = recipients;
final String result = await _channel.invokeMethod('sendSMS', mapData);
String _log = "SMS Message: $message";
for (var person in recipients) _log += "\nSent: $person";
// String _log = "SMS Message: $message";
// for (var person in recipients) _log += "\nSent: $person";
// final String result = _log;
return result;
}

View File

@ -1,8 +1,10 @@
name: flutter_sms
description: A Flutter plugin for Sending SMS on Android and iOS.
version: 0.0.1
author:
homepage:
author: Rody Davis <rody.davis.jr@gmail.com>
homepage: https://github.com/AppleEducate/flutter_sms
environment:
sdk: ">=1.19.0 <2.0.0"
dependencies:
flutter:

View File

@ -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);
// });
}