ソースを参照

define structure

zhaoyadi 3 年 前
コミット
cda37ed721

+ 0 - 0
lib/dao.dart


+ 0 - 0
lib/data.dart


+ 7 - 5
lib/luojigou_thinking_core.dart

@@ -1,7 +1,9 @@
+///
 library luojigou_thinking_core;
 
-/// A Calculator.
-class Calculator {
-  /// Returns [value] plus 1.
-  int addOne(int value) => value + 1;
-}
+import 'dao.dart';
+import 'data.dart';
+import 'model.dart';
+import 'page.dart';
+import 'view.dart';
+import 'widget.dart';

+ 0 - 0
lib/model.dart


+ 0 - 0
lib/page.dart


+ 2 - 0
lib/src/dao/dao.dart

@@ -0,0 +1,2 @@
+/// 网络访问有关的均放在 src/dao 文件夹下
+class Dao{}

+ 2 - 0
lib/src/data/data.dart

@@ -0,0 +1,2 @@
+/// 数据存储有关的均放在 src/data 文件夹下
+class Data{}

+ 2 - 0
lib/src/model/model.dart

@@ -0,0 +1,2 @@
+/// 本项目所有的 model 都应放在 src/model 文件夹下
+class Model {}

+ 2 - 0
lib/src/page/page.dart

@@ -0,0 +1,2 @@
+/// 本项目所有的 page 都应放在 src/page 文件夹下
+class Page {}

+ 2 - 0
lib/src/view/view.dart

@@ -0,0 +1,2 @@
+/// 与页面中业务有关的组件均放在 src/view 文件夹下
+class View {}

+ 2 - 0
lib/src/widget/widget.dart

@@ -0,0 +1,2 @@
+/// 与页面中业务无关的自绘组件放在 src/widget 文件夹下
+class Widget{}

+ 0 - 0
lib/view.dart


+ 0 - 0
lib/widget.dart