refactor:按照代码规范调整注释文件

This commit is contained in:
ryan
2019-02-19 00:06:43 +08:00
parent 2dc2da9156
commit 45ef00f9f5
139 changed files with 671 additions and 849 deletions

View File

@ -27,6 +27,7 @@
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
333E5DAE7FC10AC69FEC26C0 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = DDA792F029EDD7A11295D192 /* libPods-Runner.a */; };
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */ = {isa = PBXBuildFile; fileRef = 2D5378251FAA1A9400D5DBA9 /* flutter_assets */; };
3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
@ -74,6 +75,7 @@
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
2D5378251FAA1A9400D5DBA9 /* flutter_assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = flutter_assets; path = Flutter/flutter_assets; sourceTree = SOURCE_ROOT; };
3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
@ -146,6 +148,7 @@
children = (
3B80C3931E831B6300D905FE /* App.framework */,
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
2D5378251FAA1A9400D5DBA9 /* flutter_assets */,
9740EEBA1CF902C7004384FC /* Flutter.framework */,
9740EEB21CF90195004384FC /* Debug.xcconfig */,
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
@ -271,6 +274,7 @@
0828E4A2220692B500A59437 /* iPhone Portrait-Retina HD 5.5.png in Resources */,
0828E49A220692B500A59437 /* iPhone X_XS Portrait.png in Resources */,
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */,
0828E49E220692B500A59437 /* iPad Portrait@2x.png in Resources */,
0828E49D220692B500A59437 /* iPhone Portrait@2x.png in Resources */,
0828E499220692B500A59437 /* iPhone Portrait-Retina HD 4.7.png in Resources */,

View File

@ -1,11 +1,10 @@
/**
* Created with Android Studio.
* User: 一晟
* Date: 2019/1/4
* Time: 上午1:16
* email: zhu.yan@alibaba-inc.com
* tartget: FlatButton 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2019/1/4
/// Time: 上午1:16
/// email: zhu.yan@alibaba-inc.com
/// target: ListRefresh 的示例
import 'package:flutter/material.dart';
import 'dart:async';

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
* Date: 31/01/2019
* Time: 18:13
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
//enum DateType {

View File

@ -34,9 +34,7 @@ class FirstPageState extends State<FirstPage> with AutomaticKeepAliveClientMixin
return (prefs.getBool('disclaimer::Boolean') ?? false);
});
/**
* 判断是否需要弹出免责声明,已经勾选过不在显示,就不会主动弹
*/
/// 判断是否需要弹出免责声明,已经勾选过不在显示,就不会主动弹
_unKnow.then((bool value) {
new Future.delayed(const Duration(seconds: 1),(){
if (!value) {

View File

@ -4,7 +4,7 @@
* Date: 2019/1/5
* Time: 下午10:20
* email: zhu.yan@alibaba-inc.com
* tartget: FirstPageItem
* target: FirstPageItem
*/
import 'package:flutter_go/utils/util.dart';

View File

@ -4,7 +4,7 @@
* Date: 16/01/2019
* Time: 11:16
* email: sanfan.hx@alibaba-inc.com
* tartget: app首页
* target: app首页
*/

View File

@ -71,9 +71,10 @@ class Page extends StatelessWidget {
Widget build(BuildContext context) {
return new Container(
width: double.infinity,
/// height:MediaQuery.of(context).size.height-200.0,
color: viewModel.color,
padding: const EdgeInsets.fromLTRB(0, 0, 0, 0),
child: new Opacity(
child: Opacity(
opacity: percentVisible,
child:ListView(
children: <Widget>[

View File

@ -4,7 +4,7 @@
* Date: 14/01/2019
* Time: 23:00
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter/material.dart';

View File

@ -1,11 +1,9 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2019/1/1
* Time: 下午7:33
* email: zhu.yan@alibaba-inc.com
* tartget: AppBar 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2019/1/1
/// Time: 下午7:33
/// email: zhu.yan@alibaba-inc.com
/// target: AppBar 的示例
import 'package:flutter/material.dart';

View File

@ -1,11 +1,10 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2019/1/1
* Time: 下午7:30
* email: zhu.yan@alibaba-inc.com
* tartget: AppBar 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2019/1/1
/// Time: 下午7:30
/// email: zhu.yan@alibaba-inc.com
/// target: AppBar 的示例
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';

View File

@ -1,11 +1,9 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2019/1/1
* Time: 下午8:56
* email: zhu.yan@alibaba-inc.com
* tartget: BottomAppBar 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2019/1/1
/// Time: 下午8:56
/// email: zhu.yan@alibaba-inc.com
/// target: BottomAppBar 的示例
import 'package:flutter/material.dart';

View File

@ -1,11 +1,10 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2019/1/1
* Time: 下午8:53
* email: zhu.yan@alibaba-inc.com
* tartget: BottomAppBar 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2019/1/1
/// Time: 下午8:53
/// email: zhu.yan@alibaba-inc.com
/// target: BottomAppBar 的示例
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';

View File

@ -1,11 +1,9 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2019/1/1
* Time: 下午11:11
* email: zhu.yan@alibaba-inc.com
* tartget: ButtonBar 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2019/1/1
/// Time: 下午11:11
/// email: zhu.yan@alibaba-inc.com
/// target: ButtonBar 的示例
import 'package:flutter/material.dart';

View File

@ -1,11 +1,10 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2019/1/1
* Time: 下午11:10
* email: zhu.yan@alibaba-inc.com
* tartget: ButtonBar 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2019/1/1
/// Time: 下午11:10
/// email: zhu.yan@alibaba-inc.com
/// target: ButtonBar 的示例
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';

View File

@ -1,12 +1,9 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2019/1/1
* Time: 下午10:38
* email: zhu.yan@alibaba-inc.com
* tartget: FlexibleSpaceBar 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2019/1/1
/// Time: 下午10:38
/// email: zhu.yan@alibaba-inc.com
/// target: FlexibleSpaceBar 的示例
import 'package:flutter/material.dart';

View File

@ -1,11 +1,10 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2019/1/1
* Time: 下午10:38
* email: zhu.yan@alibaba-inc.com
* tartget: FlexibleSpaceBar 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2019/1/1
/// Time: 下午10:38
/// email: zhu.yan@alibaba-inc.com
/// target: FlexibleSpaceBar 的示例
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';

View File

@ -1,11 +1,9 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2019/1/1
* Time: 下午4:11
* email: zhu.yan@alibaba-inc.com
* tartget: SliverAppBar 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2019/1/1
/// Time: 下午4:11
/// email: zhu.yan@alibaba-inc.com
/// target: SliverAppBar 的示例
import 'package:flutter/material.dart';

View File

@ -1,11 +1,10 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2019/1/1
* Time: 下午4:10
* email: zhu.yan@alibaba-inc.com
* tartget: SliverAppBar 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2019/1/1
/// Time: 下午4:10
/// email: zhu.yan@alibaba-inc.com
/// target: SliverAppBar 的示例
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';

View File

@ -1,12 +1,9 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2019/1/2
* Time: 上午12:07
* email: zhu.yan@alibaba-inc.com
* tartget: SnackBar 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2019/1/2
/// Time: 上午12:07
/// email: zhu.yan@alibaba-inc.com
/// target: SnackBar 的示例
import 'package:flutter/material.dart';

View File

@ -1,11 +1,10 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2019/1/2
* Time: 上午12:06
* email: zhu.yan@alibaba-inc.com
* tartget: SnackBar 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2019/1/2
/// Time: 上午12:06
/// email: zhu.yan@alibaba-inc.com
/// target: SnackBar 的示例
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 2019/1/6
* Time: 下午17:08
* email: sanfan.hx@alibaba-inc.com
* tartget: SnackBarAction 的示例
* target: SnackBarAction 的示例
*/
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 2019/1/6
* Time: 下午17:08
* email: sanfan.hx@alibaba-inc.com
* tartget: SnackBarAction 的示例
* target: SnackBarAction 的示例
*/
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';

View File

@ -1,11 +1,9 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2019/1/6
* Time: 下午7:33
* email: sanfann@alibaba-inc.com
* tartget: TabBar 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2019/1/6
/// Time: 下午7:33
/// email: sanfann@alibaba-inc.com
/// target: TabBar 的示例
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 2019/1/6
* Time: 下午17:08
* email: sanfan.hx@alibaba-inc.com
* tartget: SnackBarAction 的示例
* target: SnackBarAction 的示例
*/
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';

View File

@ -1,11 +1,10 @@
/**
* Created with Android Studio.
* User: 一晟
* Date: 2018/12/27
* Time: 下午2:50
* email: zhu.yan@alibaba-inc.com
* tartget: FlatButton 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2018/12/27
/// Time: 下午2:50
/// email: zhu.yan@alibaba-inc.com
/// target: Bar 的示例
import "package:flutter/material.dart";
import '../../../model/widget.dart';
@ -18,7 +17,6 @@ import 'SnackBar/index.dart' as SnackBar;
import 'SnackBarAction/index.dart' as SnackBarAction;
import 'TabBar/index.dart' as TabBar;
List<WidgetPoint> widgetPoints = [
WidgetPoint(
name: 'AppBar',

View File

@ -1,17 +1,14 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2019/1/1
* Time: 下午2:57
* email: zhu.yan@alibaba-inc.com
* tartget: Card 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2019/1/1
/// Time: 下午2:57
/// email: zhu.yan@alibaba-inc.com
/// target: Card 的示例
import 'package:flutter/material.dart';
/*
* Checkbox 默认Card的实例
* */
/// Checkbox 默认Card的实例
class CardFullDefault extends StatefulWidget {
const CardFullDefault() : super();
@ -19,9 +16,8 @@ class CardFullDefault extends StatefulWidget {
State<StatefulWidget> createState() => _CardFullDefault();
}
/*
* Card 默认的实例,有状态
* */
/// Card 默认的实例,有状态
class _CardFullDefault extends State {
@override
Widget build(BuildContext context) {
@ -31,9 +27,7 @@ class _CardFullDefault extends State {
}
}
/*
* Card 默认的实例,无状态
* */
/// Card 默认的实例,无状态
class CardLessDefault extends StatelessWidget {
final widget;
final parent;

View File

@ -1,11 +1,10 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2019/1/1
* Time: 下午2:56
* email: zhu.yan@alibaba-inc.com
* tartget: Card 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2019/1/1
/// Time: 下午2:56
/// email: zhu.yan@alibaba-inc.com
/// target: Card 的示例
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';
@ -45,11 +44,10 @@ class _DemoState extends State<Demo> {
}
}
/*
* 所有的 Card widget
* context: 运行上下文
* that: 指向有状态的 StatefulWidget
*/
/// 所有的 Card widget
/// context: 运行上下文
/// that: 指向有状态的 StatefulWidget
Widget allDomes(BuildContext context, _DemoState that) {
return Container(
//padding: EdgeInsets.only(bottom: 20.0, top: 20.0, left: 0, right: 0),

View File

@ -1,11 +1,10 @@
/**
* Created with Android Studio.
* User: 一晟
* Date: 2018/12/27
* Time: 下午2:50
* email: zhu.yan@alibaba-inc.com
* tartget: FlatButton 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2018/12/27
/// Time: 下午2:50
/// email: zhu.yan@alibaba-inc.com
/// target: Card 的示例
import "package:flutter/material.dart";
import '../../../model/widget.dart';

View File

@ -4,7 +4,7 @@
* Date: 07/01/2019
* Time: 10:31
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 07/01/2019
* Time: 10:26
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 07/01/2019
* Time: 10:31
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 07/01/2019
* Time: 10:26
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 07/01/2019
* Time: 10:31
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 07/01/2019
* Time: 10:26
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 07/01/2019
* Time: 10:31
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 07/01/2019
* Time: 10:26
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 07/01/2019
* Time: 10:31
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 07/01/2019
* Time: 10:26
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 07/01/2019
* Time: 10:31
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 07/01/2019
* Time: 10:26
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 07/01/2019
* Time: 10:31
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 07/01/2019
* Time: 10:26
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 07/01/2019
* Time: 10:31
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 07/01/2019
* Time: 10:26
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 07/01/2019
* Time: 10:31
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 07/01/2019
* Time: 10:26
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 07/01/2019
* Time: 19:40
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import "package:flutter/material.dart";

View File

@ -11,9 +11,8 @@ class AnimatedListFullDefault extends StatefulWidget {
_AnimatedListFullDefault createState() => _AnimatedListFullDefault();
}
/*
* AnimatedList 默认的实例,有状态
* */
/// AnimatedList 默认的实例,有状态
class _AnimatedListFullDefault extends State<AnimatedListFullDefault> {
final GlobalKey<AnimatedListState> _listKey = GlobalKey<AnimatedListState>();
ListModel<int> _list;

View File

@ -1,11 +1,10 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2018/12/31
* Time: 下午9:48
* email: zhu.yan@alibaba-inc.com
* tartget: AnimatedList 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2018/12/31
/// Time: 下午9:48
/// email: zhu.yan@alibaba-inc.com
/// target: AnimatedList 的示例
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';
@ -51,11 +50,10 @@ class _DemoState extends State<Demo> {
}
}
/*
* 所有的 AnimatedList widget
* context: 运行上下文
* that: 指向有状态的 StatefulWidget
*/
/// 所有的 AnimatedList widget
/// context: 运行上下文
/// that: 指向有状态的 StatefulWidget
Widget allDemoBoxs(BuildContext context, _DemoState that) {
return Container(
//padding: EdgeInsets.only(bottom: 20.0, top: 20.0, left: 0, right: 0),
@ -81,9 +79,8 @@ Widget allDemoBoxs(BuildContext context, _DemoState that) {
);
}
/*
* 演示辅助按钮
* */
/// 演示辅助按钮
Widget assistButtonLeft(that) {
return FloatingActionButton(
// 文本内容
@ -98,9 +95,8 @@ Widget assistButtonLeft(that) {
);
}
/*
* 演示辅助按钮
* */
/// 演示辅助按钮
Widget assistButtonRight(that) {
return FloatingActionButton(
// 文本内容

View File

@ -1,21 +1,10 @@
/**
* Created with Android Studio.
* User: 一晟
* Date: 2018/12/31
* Time: 下午10:15
* email: zhu.yan@alibaba-inc.com
* tartget: FlatButton 的示例
*/
/// Keeps a Dart List in sync with an AnimatedList.
///
/// The [insert] and [removeAt] methods apply to both the internal list and the
/// animated list that belongs to [listKey].
///
/// This class only exposes as much of the Dart List API as is needed by the
/// sample app. More list methods are easily added, however methods that mutate the
/// list must make the same changes to the animated list in terms of
/// [AnimatedListState.insertItem] and [AnimatedList.removeItem].
///
/// Created with Android Studio.
/// User: 一晟
/// Date: 2018/12/31
/// Time: 下午10:15
/// email: zhu.yan@alibaba-inc.com
/// target: model 的示例
import 'package:flutter/material.dart';
class ListModel<E> {

View File

@ -1,17 +1,14 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2018/12/31
* Time: 下午2:42
* email: zhu.yan@alibaba-inc.com
* tartget: ListBody 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2018/12/31
/// Time: 下午2:42
/// email: zhu.yan@alibaba-inc.com
/// target: ListBody 的示例
import 'package:flutter/material.dart';
/*
* Checkbox 默认ListBody的实例
* */
/// Checkbox 默认ListBody的实例
class ListBodyFullDefault extends StatefulWidget {
const ListBodyFullDefault() : super();
@ -19,9 +16,8 @@ class ListBodyFullDefault extends StatefulWidget {
State<StatefulWidget> createState() => _ListBodyFullDefault();
}
/*
* ListBody 默认的实例,有状态
* */
/// ListBody 默认的实例,有状态
class _ListBodyFullDefault extends State {
@override
Widget build(BuildContext context) {
@ -31,9 +27,7 @@ class _ListBodyFullDefault extends State {
}
}
/*
* ListBody 默认的实例,无状态
* */
/// ListBody 默认的实例,无状态
class ListBodyLessDefault extends StatelessWidget {
final widget;
final parent;

View File

@ -1,11 +1,10 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2018/12/31
* Time: 下午2:38
* email: zhu.yan@alibaba-inc.com
* tartget: ListBody 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2018/12/31
/// Time: 下午2:38
/// email: zhu.yan@alibaba-inc.com
/// target: ListBody 的示例
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';
@ -48,11 +47,10 @@ class _DemoState extends State<Demo> {
}
}
/*
* 所有的 ListBody widget
* context: 运行上下文
* that: 指向有状态的 StatefulWidget
*/
/// 所有的 ListBody widget
/// context: 运行上下文
/// that: 指向有状态的 StatefulWidget
Widget allCheckboxs(BuildContext context, _DemoState that) {
return Container(
//padding: EdgeInsets.only(bottom: 20.0, top: 20.0, left: 0, right: 0),

View File

@ -1,17 +1,13 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2018/12/31
* Time: 下午2:27
* email: zhu.yan@alibaba-inc.com
* tartget: ListView 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2018/12/31
/// Time: 下午2:27
/// email: zhu.yan@alibaba-inc.com
/// target: ListView 的示例
import 'package:flutter/material.dart';
/*
* ListView 默认ListView的实例
* */
/// ListView 默认ListView的实例
class ListViewFullDefault extends StatefulWidget {
const ListViewFullDefault() : super();
@ -19,9 +15,8 @@ class ListViewFullDefault extends StatefulWidget {
State<StatefulWidget> createState() => _ListViewFullDefault();
}
/*
* ListView 默认的实例,有状态
* */
/// ListView 默认的实例,有状态
class _ListViewFullDefault extends State {
@override
Widget build(BuildContext context) {
@ -30,9 +25,8 @@ class _ListViewFullDefault extends State {
}
}
/*
* ListView 默认的实例,无状态
* */
/// ListView 默认的实例,无状态
class ListViewLessDefault extends StatelessWidget {
final widget;
final parent;

View File

@ -1,11 +1,10 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2018/12/31
* Time: 下午2:25
* email: zhu.yan@alibaba-inc.com
* tartget: ListView 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2018/12/31
/// Time: 下午2:25
/// email: zhu.yan@alibaba-inc.com
/// target: ListView 的示例
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';
@ -74,11 +73,9 @@ class _DemoState extends State<Demo> {
}
}
/*
* 所有的 ListView widget
* context: 运行上下文
* that: 指向有状态的 StatefulWidget
*/
/// 所有的 ListView widget
/// context: 运行上下文
/// that: 指向有状态的 StatefulWidget
Widget allCheckboxs(BuildContext context, _DemoState that) {
return Container(
//padding: EdgeInsets.only(bottom: 20.0, top: 20.0, left: 0, right: 0),
@ -103,9 +100,8 @@ Widget allCheckboxs(BuildContext context, _DemoState that) {
);
}
/*
* 带align的text
* */
/// 带align的text
Widget textAlignBar(String txt) {
return Align(
alignment: FractionalOffset.centerLeft,

View File

@ -1,11 +1,10 @@
/**
* Created with Android Studio.
* User: 一晟
* Date: 2018/12/27
* Time: 下午2:50
* email: zhu.yan@alibaba-inc.com
* tartget: FlatButton 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2018/12/27
/// Time: 下午2:50
/// email: zhu.yan@alibaba-inc.com
/// target: List 的示例
import "package:flutter/material.dart";
import '../../../model/widget.dart';

View File

@ -1,26 +1,22 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2018/12/27
* Time: 下午6:27
* email: zhu.yan@alibaba-inc.com
* tartget: BottomNavigationBar 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2018/12/27
/// Time: 下午6:27
/// email: zhu.yan@alibaba-inc.com
/// target: BottomNavigationBar 的示例
import 'package:flutter/material.dart';
/*
* BottomNavigationBar 默认的实例
* */
/// BottomNavigationBar 默认的实例
class BottomNavigationBarFullDefault extends StatefulWidget {
const BottomNavigationBarFullDefault() : super();
@override
State<StatefulWidget> createState() => _BottomNavigationBarFullDefault();
}
/*
* BottomNavigationBar 默认的实例,有状态
* */
/// BottomNavigationBar 默认的实例,有状态
class _BottomNavigationBarFullDefault extends State {
int _currentIndex = 1;

View File

@ -1,11 +1,9 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2018/12/27
* Time: 下午6:28
* email: zhu.yan@alibaba-inc.com
* tartget: BottomNavigationBar 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2018/12/27
/// Time: 下午6:28
/// email: zhu.yan@alibaba-inc.com
/// target: BottomNavigationBar 的示例
import 'package:flutter/material.dart';
import 'package:flutter_go/components/widget_demo.dart';
@ -50,11 +48,10 @@ class _DemoState extends State<Demo> {
}
}
/*
* 所有的 BottomNavigationBar widget
* context: 运行上下文
* that: 指向有状态的 StatefulWidget
*/
/// 所有的 BottomNavigationBar widget
/// context: 运行上下文
/// that: 指向有状态的 StatefulWidget
Widget allDemoBoxs(BuildContext context, _DemoState that) {
return Container(
//padding: EdgeInsets.only(bottom: 20.0, top: 20.0, left: 0, right: 0),
@ -75,9 +72,9 @@ Widget allDemoBoxs(BuildContext context, _DemoState that) {
);
}
/*
* 带align的text
* */
/// 带align的text
Widget textAlignBar(String txt) {
return Align(
alignment: FractionalOffset.centerLeft,

View File

@ -1,17 +1,13 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2019/1/1
* Time: 下午10:00
* email: zhu.yan@alibaba-inc.com
* tartget: BottomNavigationBarItem 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2019/1/1
/// Time: 下午10:00
/// email: zhu.yan@alibaba-inc.com
/// target: BottomNavigationBarItem 的示例
import 'package:flutter/material.dart';
/*
* BottomNavigationBarItem 默认的实例,无状态
* */
/// BottomNavigationBarItem 默认的实例,无状态
class BottomNavigationBarItemLessDefault extends StatelessWidget {
final widget;
final parent;

View File

@ -1,11 +1,10 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2019/1/1
* Time: 下午9:55
* email: zhu.yan@alibaba-inc.com
* tartget: BottomNavigationBarItem 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2019/1/1
/// Time: 下午9:55
/// email: zhu.yan@alibaba-inc.com
/// target: BottomNavigationBarItem 的示例
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';
@ -45,11 +44,10 @@ class _DemoState extends State<Demo> {
}
}
/*
* 所有的 BottomNavigationBarItem widget
* context: 运行上下文
* that: 指向有状态的 StatefulWidget
*/
/// 所有的 BottomNavigationBarItem widget
/// context: 运行上下文
/// that: 指向有状态的 StatefulWidget
Widget allCheckboxs(BuildContext context, _DemoState that) {
return Container(
//padding: EdgeInsets.only(bottom: 20.0, top: 20.0, left: 0, right: 0),
@ -66,9 +64,8 @@ Widget allCheckboxs(BuildContext context, _DemoState that) {
);
}
/*
* 带align的text
* */
/// 带align的text
Widget textAlignBar(String txt) {
return Align(
alignment: FractionalOffset.centerLeft,

View File

@ -1,11 +1,10 @@
/**
* Created with Android Studio.
* User: 一晟
* Date: 2018/12/27
* Time: 下午2:50
* email: zhu.yan@alibaba-inc.com
* tartget: FlatButton 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2018/12/27
/// Time: 下午2:50
/// email: zhu.yan@alibaba-inc.com
/// target: Navigation 的示例
import "package:flutter/material.dart";
import '../../../model/widget.dart';

View File

@ -4,7 +4,7 @@
// Date: 05/02/2019
// Time: 22:06
// email: sanfan.hx@alibaba-inc.com
// tartget: xxx
// target: xxx
//
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
// Date: 05/02/2019
// Time: 22:06
// email: sanfan.hx@alibaba-inc.com
// tartget: xxx
// target: xxx
//
import 'package:flutter/material.dart';

View File

@ -1,11 +1,9 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2019/1/6
* Time: 下午7:33
* email: sanfann@alibaba-inc.com
* tartget: TabBar 的示例
*/
/// Created with Android Studio.
/// User: 三帆
/// Date: 2019/1/6
/// Time: 下午7:33
/// email: sanfann@alibaba-inc.com
/// target: Scaffold 的示例
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 07/01/2019
* Time: 10:26
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';

View File

@ -1,11 +1,9 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2019/1/6
* Time: 下午7:33
* email: sanfann@alibaba-inc.com
* tartget: TabBar 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2019/1/6
/// Time: 下午7:33
/// email: sanfann@alibaba-inc.com
/// target: ScaffoldState 的示例
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 07/01/2019
* Time: 10:26
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 07/01/2019
* Time: 14:53
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import "package:flutter/material.dart";

View File

@ -1,11 +1,10 @@
/**
* Created with Android Studio.
* User: 一晟
* Date: 2018/11/22
* Time: 上午12:03
* email: zhu.yan@alibaba-inc.com
* tartget: DropdownButton 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2018/11/22
/// Time: 上午12:03
/// email: zhu.yan@alibaba-inc.com
/// target: DropdownButton 的示例
import 'package:flutter/material.dart';
/*

View File

@ -1,12 +1,11 @@
/**
* Created with 菜鸟手册.
* User: 一晟
* Date: 2018/11/14
* Time: 下午4:31
* email: zhu.yan@alibaba-inc.com
* target: DropdownButton 的示例
* 对应文档地址:https://docs.flutter.io/flutter/material/DropdownButton-class.html
*/
/// Created with 菜鸟手册.
/// User: 一晟
/// Date: 2018/11/14
/// Time: 下午4:31
/// email: zhu.yan@alibaba-inc.com
/// target: DropdownButton 的示例
/// 对应文档地址:https://docs.flutter.io/flutter/material/DropdownButton-class.html
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';

View File

@ -1,11 +1,10 @@
/**
* Created with Android Studio.
* User: 一晟
* Date: 2018/11/22
* Time: 上午12:03
* email: zhu.yan@alibaba-inc.com
* tartget: FlatButton 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2018/11/22
/// Time: 上午12:03
/// email: zhu.yan@alibaba-inc.com
/// target: FlatButton 的示例
import 'dart:math';
import 'package:flutter/material.dart';

View File

@ -1,12 +1,11 @@
/**
* Created with 菜鸟手册.
* User: 一晟
* Date: 2018/11/14
* Time: 下午4:31
* email: zhu.yan@alibaba-inc.com
* target: FlatButton 的示例
* 对应文档地址:https://docs.flutter.io/flutter/material/FlatButton-class.html
*/
/// Created with 菜鸟手册.
/// User: 一晟
/// Date: 2018/11/14
/// Time: 下午4:31
/// email: zhu.yan@alibaba-inc.com
/// target: FlatButton 的示例
/// 对应文档地址:https://docs.flutter.io/flutter/material/FlatButton-class.html
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';

View File

@ -1,17 +1,13 @@
/**
* Created with Android Studio.
* User: 一晟
* Date: 2018/11/22
* Time: 上午12:03
* email: zhu.yan@alibaba-inc.com
* tartget: OutlineButton 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2018/11/22
/// Time: 上午12:03
/// email: zhu.yan@alibaba-inc.com
/// target: OutlineButton 的示例
import 'package:flutter/material.dart';
/*
* OutlineButton 默认按钮的实例
* isDisabled:是否是禁用isDisabled 默认为true
* */
/// OutlineButton 默认按钮的实例
/// isDisabled:是否是禁用isDisabled 默认为true
class FloatingActionButtonDefault extends StatelessWidget {
final bool isDisabled;
@ -30,9 +26,7 @@ class FloatingActionButtonDefault extends StatelessWidget {
}
}
/*
* OutlineButton 自定义的实例
* */
/// OutlineButton 自定义的实例
class FloatingActionButtonCustom extends StatelessWidget {
final String txt;
final Color color;
@ -82,9 +76,7 @@ class FloatingActionButtonCustom extends StatelessWidget {
}
}
/*
* OutlineButton 自定义的实例2
* */
/// OutlineButton 自定义的实例2
class FloatingActionButtonCustom2 extends StatelessWidget {
final String txt;
final Color color;

View File

@ -1,12 +1,11 @@
/**
* Created with 菜鸟手册.
* User: 一晟
* Date: 2018/11/14
* Time: 下午4:31
* email: zhu.yan@alibaba-inc.com
* target: FloatingActionButton 的示例
* 对应文档地址:https://docs.flutter.io/flutter/material/FloatingActionButton-class.html
*/
/// Created with 菜鸟手册.
/// User: 一晟
/// Date: 2018/11/14
/// Time: 下午4:31
/// email: zhu.yan@alibaba-inc.com
/// target: FloatingActionButton 的示例
/// 对应文档地址:https://docs.flutter.io/flutter/material/FloatingActionButton-class.html
import 'package:flutter_go/components/widget_demo.dart';
import 'dart:math';
import 'package:flutter/material.dart';

View File

@ -1,11 +1,10 @@
/**
* Created with Android Studio.
* User: 一晟
* Date: 2018/11/22
* Time: 上午12:03
* email: zhu.yan@alibaba-inc.com
* tartget: IconButton 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2018/11/22
/// Time: 上午12:03
/// email: zhu.yan@alibaba-inc.com
/// target: IconButton 的示例
import 'dart:math';
import 'package:flutter/material.dart';
@ -14,10 +13,9 @@ import 'package:flutter_go/resources/icon_names.dart';
final int len = IconNames.names.length;
/*
* IconButton 默认按钮的实例
* isDisabled:是否是禁用isDisabled 默认为true
* */
/// IconButton 默认按钮的实例
/// isDisabled:是否是禁用isDisabled 默认为true
class IconButtonDefault extends StatelessWidget {
final bool isDisabled;
@ -35,9 +33,7 @@ class IconButtonDefault extends StatelessWidget {
}
}
/*
* IconButton 自定义的实例
* */
/// IconButton 自定义的实例
class IconButtonCustom extends StatelessWidget {
final String txt;
final Color color;

View File

@ -1,12 +1,12 @@
/**
* Created with 菜鸟手册.
* User: 一晟
* Date: 2018/11/14
* Time: 下午4:31
* email: zhu.yan@alibaba-inc.com
* target: IconButton 的示例
* 对应文档地址:https://docs.flutter.io/flutter/material/IconButton-class.html
*/
/// Created with 菜鸟手册.
/// User: 一晟
/// Date: 2018/11/14
/// Time: 下午4:31
/// email: zhu.yan@alibaba-inc.com
/// target: IconButton 的示例
/// 对应文档地址:https://docs.flutter.io/flutter/material/IconButton-class.html
import 'package:flutter_go/components/widget_demo.dart';
import 'dart:math';
import 'package:flutter/material.dart';
@ -62,9 +62,7 @@ class _DemoState extends State<Demo> {
}
}
/*
* 所有的 IconButton 按钮
*/
/// 所有的 IconButton 按钮
Widget allIconButtons(BuildContext context,_DemoState that){
final ShapeBorder buttonShape = drawShape(that.buttonShapeType);
return Container(
@ -104,9 +102,7 @@ Widget allIconButtons(BuildContext context,_DemoState that){
);
}
/*
* 带align的text
* */
/// 带align的text
Widget textAlignBar(String txt){
//style: TextStyle(fontSize: 15.5, height: 1.2),textAlign:TextAlign.left
return Align(
@ -120,9 +116,8 @@ Widget textAlignBar(String txt){
);
}
/*
* 绘制边框信息,比如是否有边框,是否是圆角
* */
/// 绘制边框信息,比如是否有边框,是否是圆角
ShapeBorder drawShape(String type){
final Color _color = _randomColor();
final borderWidth = Random.secure().nextInt(5).toDouble();
@ -157,9 +152,8 @@ ShapeBorder drawShape(String type){
}
}
/*
* 取随机颜色
* */
/// 取随机颜色
Color _randomColor() {
var red = Random.secure().nextInt(255);
var greed = Random.secure().nextInt(255);

View File

@ -1,11 +1,10 @@
/**
* Created with Android Studio.
* User: 一晟
* Date: 2018/11/22
* Time: 上午12:03
* email: zhu.yan@alibaba-inc.com
* tartget: OutlineButton 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2018/11/22
/// Time: 上午12:03
/// email: zhu.yan@alibaba-inc.com
/// target: OutlineButton 的示例
import 'dart:math';
import 'package:flutter/material.dart';

View File

@ -1,12 +1,11 @@
/**
* Created with 菜鸟手册.
* User: 一晟
* Date: 2018/11/14
* Time: 下午4:31
* email: zhu.yan@alibaba-inc.com
* target: OutlineButton 的示例
* 对应文档地址:https://docs.flutter.io/flutter/material/OutlineButton-class.html
*/
/// Created with 菜鸟手册.
/// User: 一晟
/// Date: 2018/11/14
/// Time: 下午4:31
/// email: zhu.yan@alibaba-inc.com
/// target: OutlineButton 的示例
/// 对应文档地址:https://docs.flutter.io/flutter/material/OutlineButton-class.html
import 'package:flutter_go/components/widget_demo.dart';
import 'dart:math';
import 'package:flutter/material.dart';

View File

@ -1,11 +1,10 @@
/**
* Created with Android Studio.
* User: 一晟
* Date: 2018/11/22
* Time: 上午12:03
* email: zhu.yan@alibaba-inc.com
* tartget: RaisedButton 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2018/11/22
/// Time: 上午12:03
/// email: zhu.yan@alibaba-inc.com
/// target: PopupMenuButton 的示例
import 'package:flutter/material.dart';
/*

View File

@ -1,12 +1,10 @@
/**
* Created with Android Studio.
* User: 一晟
* Date: 2018/11/24
* Time: 下午5:25
* email: zhu.yan@alibaba-inc.com
* tartget: PopupMenusButton 的示例
* 对应文档地址:https://docs.flutter.io/flutter/material/PopupMenuButton-class.html
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2018/11/24
/// Time: 下午5:25
/// email: zhu.yan@alibaba-inc.com
/// target: PopupMenusButton 的示例
/// 对应文档地址:https://docs.flutter.io/flutter/material/PopupMenuButton-class.html
import 'package:flutter_go/components/widget_demo.dart';

View File

@ -1,18 +1,15 @@
/**
* Created with Android Studio.
* User: 一晟
* Date: 2018/11/22
* Time: 上午12:03
* email: zhu.yan@alibaba-inc.com
* tartget: RaisedButton 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2018/11/22
/// Time: 上午12:03
/// email: zhu.yan@alibaba-inc.com
/// target: RaisedButton 的示例
import 'dart:math';
import 'package:flutter/material.dart';
/*
* RaisedButton 默认按钮的实例
* isDisabled:是否是禁用isDisabled 默认为true
* */
/// RaisedButton 默认按钮的实例
/// isDisabled:是否是禁用isDisabled 默认为true
class RaisedButtonDefault extends StatelessWidget {
final bool isDisabled;
@ -29,11 +26,9 @@ class RaisedButtonDefault extends StatelessWidget {
}
}
/*
* RaisedButton.icon 默认按钮的实例
* Create a text button from a pair of widgets that serve as the button's icon and label
* isDisabled:是否是禁用
* */
/// RaisedButton.icon 默认按钮的实例
/// Create a text button from a pair of widgets that serve as the button's icon and label
/// isDisabled:是否是禁用
class RaisedButtonIconDefault extends StatelessWidget {
final bool isDisabled;
final IconData icon;
@ -63,9 +58,8 @@ class RaisedButtonIconDefault extends StatelessWidget {
}
}
/*
* RaisedButton 自定义的实例
* */
/// RaisedButton 自定义的实例
class RaisedButtonCustom extends StatelessWidget {
final String txt;
final Color color;

View File

@ -1,12 +1,11 @@
/**
* Created with 菜鸟手册.
* User: 一晟
* Date: 2018/11/14
* Time: 下午4:31
* email: zhu.yan@alibaba-inc.com
* target: RaisedButton 的示例
* 对应文档地址:https://docs.flutter.io/flutter/material/RaisedButton-class.html
*/
/// Created with 菜鸟手册.
/// User: 一晟
/// Date: 2018/11/14
/// Time: 下午4:31
/// email: zhu.yan@alibaba-inc.com
/// target: RaisedButton 的示例
/// 对应文档地址:https://docs.flutter.io/flutter/material/RaisedButton-class.html
import 'package:flutter_go/components/widget_demo.dart';
import 'dart:math';
import 'package:flutter/material.dart';

View File

@ -1,11 +1,10 @@
/**
* Created with Android Studio.
* User: 一晟
* Date: 2018/11/22
* Time: 上午12:03
* email: zhu.yan@alibaba-inc.com
* tartget: RawMaterialButton 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2018/11/22
/// Time: 上午12:03
/// email: zhu.yan@alibaba-inc.com
/// target: RawMaterialButton 的示例
import 'dart:math';
import 'package:flutter/material.dart';

View File

@ -1,12 +1,11 @@
/**
* Created with 菜鸟手册.
* User: 一晟
* Date: 2018/11/14
* Time: 下午4:31
* email: zhu.yan@alibaba-inc.com
* target: RawMaterialButton 的示例
* 对应文档地址:https://docs.flutter.io/flutter/material/RawMaterialButton-class.html
*/
/// Created with 菜鸟手册.
/// User: 一晟
/// Date: 2018/11/14
/// Time: 下午4:31
/// email: zhu.yan@alibaba-inc.com
/// target: RawMaterialButton 的示例
/// 对应文档地址:https://docs.flutter.io/flutter/material/RawMaterialButton-class.html
import 'package:flutter_go/components/widget_demo.dart';
import 'dart:math';
import 'package:flutter/material.dart';

View File

@ -1,18 +1,15 @@
/**
* Created with Android Studio.
* User: 一晟
* Date: 2018/11/22
* Time: 上午12:03
* email: zhu.yan@alibaba-inc.com
* tartget: Checkbox 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2018/11/22
/// Time: 上午12:03
/// email: zhu.yan@alibaba-inc.com
/// target: Checkbox 的示例
import 'dart:math';
import 'package:flutter/material.dart';
/*
* Checkbox 默认的实例
* index 当前checkbox 的索引值
*/
/// Checkbox 默认的实例
/// index 当前checkbox 的索引值
class CheckboxDefault extends StatefulWidget{
final int index;
final parent;
@ -40,10 +37,8 @@ class _CheckboxDefault extends State {
}
}
/*
* Checkbox 默认的实例
* index 当前checkbox 的索引值
*/
/// Checkbox 默认的实例
/// index 当前checkbox 的索引值
class CheckboxSelect extends StatelessWidget {
final int index;
final widget;

View File

@ -1,12 +1,11 @@
/**
* Created with 菜鸟手册.
* User: 一晟
* Date: 2018/11/14
* Time: 下午4:31
* email: zhu.yan@alibaba-inc.com
* target: Checkbox 的示例
* 对应文档地址:https://docs.flutter.io/flutter/material/Checkbox-class.html
*/
/// Created with 菜鸟手册.
/// User: 一晟
/// Date: 2018/11/14
/// Time: 下午4:31
/// email: zhu.yan@alibaba-inc.com
/// target: Checkbox 的示例
/// 对应文档地址:https://docs.flutter.io/flutter/material/Checkbox-class.html
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';

View File

@ -1,11 +1,9 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2018/12/23
* Time: 下午6:08
* email: zhu.yan@alibaba-inc.com
* tartget: CheckboxListTile 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2018/12/23
/// Time: 下午6:08
/// email: zhu.yan@alibaba-inc.com
/// target: CheckboxListTile 的示例
import 'package:flutter/material.dart';

View File

@ -1,11 +1,10 @@
/**
* Created with Android Studio.
* User: ryan
* Date: 2018/12/23
* Time: 下午6:07
* email: zhu.yan@alibaba-inc.com
* tartget: CheckboxListTile 的示例
*/
/// Created with Android Studio.
/// User: 一晟
/// Date: 2018/12/23
/// Time: 下午6:07
/// email: zhu.yan@alibaba-inc.com
/// target: CheckboxListTile 的示例
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';

View File

@ -1,12 +1,10 @@
/**
* Created with 菜鸟手册.
* User: 一晟
* Date: 2018/11/14
* Time: 下午4:31
* email: zhu.yan@alibaba-inc.com
* target: TextField 的示例
* 对应文档地址:https://docs.flutter.io/flutter/material/TextField-class.html
*/
/// Created with 菜鸟手册.
/// User: 一晟
/// Date: 2018/11/14
/// Time: 下午4:31
/// email: zhu.yan@alibaba-inc.com
/// target: TextField 的示例
/// 对应文档地址:https://docs.flutter.io/flutter/material/TextField-class.html
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';

View File

@ -19,9 +19,7 @@ class DefaultTextField extends StatelessWidget {
}
}
/*
* 稍微复杂些的 TextField
* */
/// 稍微复杂些的 TextField
class CustomTextField extends StatelessWidget {
void _textFieldChanged(String str) {
print(str);

View File

@ -1,12 +1,11 @@
/**
* Created with 菜鸟手册.
* User: 一晟
* Date: 2018/11/14
* Time: 下午4:31
* email: zhu.yan@alibaba-inc.com
* target: RaisedButton 的示例
* 对应文档地址:https://docs.flutter.io/flutter/material/RaisedButton-class.html
*/
/// Created with 菜鸟手册.
/// User: 一晟
/// Date: 2018/11/14
/// Time: 下午4:31
/// email: zhu.yan@alibaba-inc.com
/// target: Input 的示例
/// 对应文档地址:https://docs.flutter.io/flutter/material/RaisedButton-class.html
import '../../../../model/widget.dart';
import "package:flutter/material.dart";

View File

@ -4,7 +4,7 @@
* Date: 22/11/2018
* Time: 19:37
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 22/11/2018
* Time: 19:17
* email: sanfan.hx@alibaba-inc.com
* tartget: Radio相关
* target: Radio相关
*/
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 20/12/2018
* Time: 14:32
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 22/11/2018
* Time: 19:17
* email: sanfan.hx@alibaba-inc.com
* tartget: Radio相关
* target: Radio相关
*/
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 20/12/2018
* Time: 17:51
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 20/12/2018
* Time: 17:43
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 27/12/2018
* Time: 14:40
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 20/12/2018
* Time: 17:43
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter/material.dart';

View File

@ -4,7 +4,7 @@
* Date: 27/12/2018
* Time: 14:40
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
* target: xxx
*/
import 'package:flutter/material.dart';

Some files were not shown because too many files have changed in this diff Show More