// 图片高度
height: 200,
),
完整代码示例 :
import 'package:flutter/material.dart...组件
----
TextField 组件构造函数的可选参数 : 下面代码中的可选参数就是 TextField 组件可以设置的参数选项 ;
class TextField extends StatefulWidget...this.cursorHeight,
this.cursorRadius,
this.cursorColor,
this.selectionHeightStyle = ui.BoxHeightStyle.tight...,
this.selectionWidthStyle = ui.BoxWidthStyle.tight,
this.keyboardAppearance,
this.scrollPadding...TextStyle(fontSize: 20, color: Colors.grey),
),
完整代码示例 :
import 'package:flutter/material.dart