fzhangtj 6 年前
当前提交
35881a13
共有 1 个文件被更改,包括 7 次插入5 次删除
  1. 12
      Runtime/material/text_field.cs

12
Runtime/material/text_field.cs


public class TextField : StatefulWidget {
public TextField(Key key = null, TextEditingController controller = null, FocusNode focusNode = null,
InputDecoration decoration = null, TextInputType keyboardType = null,
InputDecoration decoration = null, bool noDecoration = false, TextInputType keyboardType = null,
TextInputAction? textInputAction = null,
TextCapitalization textCapitalization = TextCapitalization.none, TextStyle style = null,
TextAlign textAlign = TextAlign.left, TextDirection textDirection = TextDirection.ltr,

this.controller = controller;
this.focusNode = focusNode;
this.decoration = decoration ?? new InputDecoration();
this.decoration = noDecoration ? null : (decoration ?? new InputDecoration());
this.textInputAction = textInputAction;
this.textCapitalization = textCapitalization;
this.style = style;

return splash;
}
RenderEditable _renderEditable => this._editableTextKey.currentState.renderEditable;
RenderEditable _renderEditable {
get {
return this._editableTextKey.currentState.renderEditable;
}
}
void _handleTapDown(TapDownDetails details) {
this._renderEditable.handleTapDown(details);

public override Widget build(BuildContext context) {
base.build(context); // See AutomaticKeepAliveClientMixin.
D.assert(MaterialD.debugCheckHasMaterial(context));
// TODO(jonahwilliams): uncomment out this check once we have migrated tests.
// assert(debugCheckHasMaterialLocalizations(context));
D.assert(WidgetsD.debugCheckHasDirectionality(context));
ThemeData themeData = Theme.of(context);
TextStyle style = this.widget.style ?? themeData.textTheme.subhead;

正在加载...
取消
保存