Parcourir la source

version 0.0.1

tanghongliang il y a 7 ans
Parent
commit
0011d6ee3e
3 fichiers modifiés avec 12 ajouts et 28 suppressions
  1. 0 25
      example/test/widget_test.dart
  2. 5 0
      lib/src/net/test.dart
  3. 7 3
      pubspec.yaml

+ 0 - 25
example/test/widget_test.dart

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

+ 5 - 0
lib/src/net/test.dart

@@ -0,0 +1,5 @@
+class Calculator {
+  int addOne(int value) {
+    return value + 1;
+  }
+}

+ 7 - 3
pubspec.yaml

@@ -1,16 +1,20 @@
 name: flustars
 description: A new Flutter plugin.
 version: 0.0.1
-author:
-homepage:
+author: thl <863764940@qq.com>
+homepage: https://github.com/Sky24n/flustars
 
 environment:
-  sdk: ">=2.0.0-dev.68.0 <3.0.0"
+  sdk: ">=1.19.0 <3.0.0"
 
 dependencies:
   flutter:
     sdk: flutter
 
+  shared_preferences: ^0.4.2
+  dio: ^1.0.6
+  common_utils: ^1.0.3
+
 # For information on the generic Dart part of this file, see the
 # following page: https://www.dartlang.org/tools/pub/pubspec