flutter 表单

 

                            Text("Email Address"),
                            SizedBox(
                              height: 10,
                            ),
                            TextField(
                                decoration: InputDecoration(
                              filled: true,
                              hintText: "admin@qq.com", //提示
                              //border: InputBorder.none, //去掉下划线
                              border: OutlineInputBorder(
                                //
                                borderRadius: BorderRadius.circular(10),
                                borderSide: BorderSide.none, //去掉边框
                              ),
                              fillColor:
                                  Color.fromRGBO(246, 246, 246, 1), //填充颜色
                            )),
                            Text("Password"),
                            SizedBox(
                              height: 10,
                            ),
                            TextField(
                              obscureText: true, //密码
                              decoration: InputDecoration(
                                  filled: true,
                                  hintText: "password", //提示
                                  //border: InputBorder.none, //去掉下划线
                                  border: OutlineInputBorder(
                                    //
                                    borderRadius: BorderRadius.circular(10),
                                    borderSide: BorderSide.none, //去掉边框
                                  ),
                                  fillColor:
                                      Color.fromRGBO(246, 246, 246, 1), //填充颜色
                                  suffixIcon: IconButton(
                                    // icon: Icon(Icons.remove_red_eye),
                                    icon: Icon(Icons.visibility_off),
                                    color: Color(0xff5572FA),
                                    iconSize: 24,
                                    onPressed: () {
                                      setState(() {});
                                    },
                                  )),
                            ),

 

 

 

来源:

https://blog.csdn.net/m0_46527751/article/details/122589250

posted @ 2023-04-26 13:39  小小强学习网  阅读(17)  评论(0)    收藏  举报