refactor:code view

This commit is contained in:
yifeng.yl
2019-01-14 17:15:15 +08:00
parent 5da3b4c3e9
commit 441ed56a00
15 changed files with 125 additions and 144 deletions

View File

@ -9,10 +9,8 @@
import 'dart:math';
import 'package:flutter/material.dart';
/*
* FlatButton 默认按钮的实例
* isDisabled:是否是禁用isDisabled 默认为true
* */
// FlatButton 默认按钮的实例
// isDisabled:是否是禁用isDisabled 默认为true
class FlatButtonDefault extends StatelessWidget {
final bool isDisabled;
@ -29,11 +27,10 @@ class FlatButtonDefault extends StatelessWidget {
}
}
/*
* FlatButton.icon 默认按钮的实例
* Create a text button from a pair of widgets that serve as the button's icon and label
* isDisabled:是否是禁用
* */
// FlatButton.icon 默认按钮的实例
// * Create a text button from a pair of widgets that serve as the button's icon and label
// * isDisabled:是否是禁用
class FlatButtonIconDefault extends StatelessWidget {
final bool isDisabled;
final IconData icon;
@ -63,9 +60,9 @@ class FlatButtonIconDefault extends StatelessWidget {
}
}
/*
* FlatButton 自定义的实例
* */
// FlatButton 自定义的实例
class FlatButtonCustom extends StatelessWidget {
final String txt;
final Color color;