mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-06-01 14:58:50 +08:00
refactor:code view
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user