mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-06-17 10:36:08 +08:00
refactor:按照代码规范调整注释文件
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user