Explorar el Código

version 0.0.3

tanghongliang hace 7 años
padre
commit
ba0e0897a8
Se han modificado 6 ficheros con 16 adiciones y 24 borrados
  1. 0 21
      analysis_options.yaml
  2. 3 2
      lib/flustars.dart
  3. 0 0
      lib/src/db/db.dart
  4. 0 0
      lib/src/net/net.dart
  5. 12 0
      lib/src/sp_util.dart
  6. 1 1
      pubspec.yaml

+ 0 - 21
analysis_options.yaml

@@ -1,21 +0,0 @@
-# https://www.dartlang.org/guides/language/analysis-options
-# Source of linter options:
-# http://dart-lang.github.io/linter/lints/options/options.html
-analyzer:
-  strong-mode:
-    implicit-casts: false
-    implicit-dynamic: false
-  errors:
-    todo: ignore
-  exclude:
-    - flutter/**
-    - lib/*.dart
-
-linter:
-  rules:
-    - camel_case_types
-    - hash_and_equals
-    - iterable_contains_unrelated_type
-    - list_remove_unrelated_type
-    - unrelated_type_equality_checks
-    - valid_regexps

+ 3 - 2
lib/flustars.dart

@@ -1,2 +1,3 @@
-export 'src/net/test.dart';
-export 'src/db/test.dart';
+export 'src/net/net.dart';
+export 'src/db/db.dart';
+export 'package:flustars/src/sp_util.dart';

+ 0 - 0
lib/src/db/test.dart → lib/src/db/db.dart


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


+ 12 - 0
lib/src/sp_util.dart

@@ -0,0 +1,12 @@
+import 'package:shared_preferences/shared_preferences.dart';
+
+class SpUtil {
+  static SpUtil singleton = new SpUtil();
+  static SharedPreferences _sharedPreferences;
+
+  static SpUtil getInstance() {
+    return singleton;
+  }
+
+  void init() {}
+}

+ 1 - 1
pubspec.yaml

@@ -1,6 +1,6 @@
 name: flustars
 description: A new Flutter plugin.
-version: 0.0.2
+version: 0.0.3
 author: thl <863764940@qq.com>
 homepage: https://github.com/Sky24n/flustars