基本属性 请查阅文本

示例

  1. Container(
  2. margin: EdgeInsets.only(top : 358.0,left: 30.0, right: 30.0),
  3. decoration: BoxDecoration(
  4. // border: Border(bottom: BorderSide(color: Colors.red, width: 1.0))
  5. ),
  6. child : Theme(
  7. data: new ThemeData(primaryColor: Color(0xff666666)),
  8. child: TextField(
  9. keyboardType : TextInputType.number,
  10. decoration: InputDecoration(
  11. hintText: "手机号码",
  12. prefixIcon: Icon(Icons.person)
  13. ),
  14. onChanged :(event){
  15. phone = event;
  16. }
  17. ),
  18. )
  19. ),
  20. Container(
  21. margin: EdgeInsets.only(top : 421.0,left: 30.0, right: 30.0),
  22. child : Theme(
  23. data: new ThemeData(primaryColor: Color(0xff666666)),
  24. child: TextField(
  25. decoration: InputDecoration(
  26. hintText: "密码",
  27. prefixIcon: Icon(IconData(0xe635, fontFamily: "MyIcons"), color: Color(0xff666666), size: 18,)
  28. ),
  29. onChanged :(event){
  30. password = event;
  31. },
  32. obscureText: true,
  33. ),
  34. )
  35. ),

image.png