当前位置:网站首页>Flutter--密码登录注册界面
Flutter--密码登录注册界面
2022-07-27 23:01:00 【Alex.凌】
密码登录及注册页面(Flutter–Sign in & up --UI)
觉得还OK的话,不妨点赞关注一下,不定期分享一些简单易学的新项目。
点击便可下载源码
注意: GitHub 上源码注释为英文,Gitee上后期会上传中文注释版

children: <Widget>[
const SizedBox(height: 30,),
const Text("Hi, Alex",style: TextStyle(fontWeight: FontWeight.bold, fontSize: 24),),
Container(
width: 90,
height: 5,
decoration: const BoxDecoration(
color: primary
),
),
const SizedBox(height: 40,),
TextField(
cursorColor: primary,
controller: _controllerEmail,
decoration: const InputDecoration(
enabledBorder: UnderlineInputBorder(
borderSide: BorderSide(color: primary)
),
focusedBorder: UnderlineInputBorder(
borderSide: BorderSide(color: primary)
),
hintText: "Please enter your mobile/email number",
hintStyle: TextStyle(fontSize: 14)
),
),
const SizedBox(height: 30,),
TextField(
obscureText: !isShowPassword,
cursorColor: primary,
controller: _controllerPassword,
decoration: InputDecoration(
hintStyle: const TextStyle(fontSize: 14),
hintText: "Please enter password",
enabledBorder: const UnderlineInputBorder(
borderSide: BorderSide(color: primary)
),
focusedBorder: const UnderlineInputBorder(
borderSide: BorderSide(color: primary)
),
suffixIcon: FlatButton(onPressed: () {
setState(() { isShowPassword = !isShowPassword; }); }, child: Icon(isShowPassword ? Icons.visibility : Icons.visibility_off, color: primary,))
),
),
const SizedBox(height: 30,),
InkWell(
onTap: () {
gotoForgotPassword();
},
child: const Align(child: Text("Forgot password?"), alignment: Alignment.centerRight,)),
const SizedBox(height: 30,),
Row(
children: <Widget>[
Expanded(
child: FlatButton(
color: primary,
onPressed: () {
print("login action");
}, child: const Text("Sign in",style: TextStyle(color: white),)),
)
],
),
const SizedBox(height: 30,),
InkWell(
onTap: () {
goToSignUpPage();
},
child: const Align(child: Text("unregistered?"),alignment: Alignment.center,))
],
感谢各位的支持。
边栏推荐
- Analysis and recurrence of network security vulnerabilities
- 容器网络硬核技术内幕 (7) 大海航行靠舵手
- 3年经验想拿20K,居然面了半个月都没拿到?
- Shenzhen Huaqiang announced that it plans to invest no more than 20million yuan in BYD semiconductor
- 实现ABCD字母递增
- 逻辑回归原理
- Data problems can also be found if there is a space at the end of the field value of MySQL query criteria
- Oracle error: ora-01722 invalid number
- dataworks 传输数据到mysql 中文乱码是什么原因
- mysql-JPA对数据库中JSON类型数据的支持
猜你喜欢

The cooperation between starfish OS and metabell is just the beginning

Redefine analysis - release of eventbridge real-time event analysis platform

Matlab 绘制 - 点和向量:向量加减的方法和源码

DEMO:测试接口短时间内接收重复数据创建单据

I/O设备的基本概念及分类

浏览器视频帧操作方法 requestVideoFrameCallback() 简介

EWM receiving ECC delivery note verification logic problem

【C语言】文件操作

Redis缓存穿透击穿和雪崩

Demo: the test interface receives duplicate data and creates documents in a short time
随机推荐
吴雄昂发内部信:Arm的指控是莫须有的,现有成果不允许有任何损害!
3年经验想拿20K,居然面了半个月都没拿到?
URDF 集成 Gazebo
Matlab 绘制 - 点和向量:向量加减的方法和源码
Un7.13: how to add, delete, modify and query in vs Code?
Meguiar sued liandian for secret theft and sentenced: liandian was fined NT $100million and three employees were sentenced!
华为旗下哈勃投资入股VCSEL芯片厂商纵慧芯光
oracle分组取最大值
The cooperation between starfish OS and metabell is just the beginning
Wu xiongang sent an internal letter: arm's allegations are unwarranted, and no damage is allowed to the existing achievements!
氧气温湿度模组
Fabric2.4.4 version building process (complete process)
比亚迪半导体完成8亿元A+轮融资:30家知名投资机构入局,估值已达102亿元!
Oracle错误: ORA-01722 无效数字
Focal Loss讲解
BSP video tutorial issue 21: easy one key implementation of serial port DMA variable length transceiver, support bare metal and RTOS, including MDK and IAR, which is more convenient than stm32cubemx (
Monitor mouse sideslip (adapt to mobile terminal)
C语言程序设计 | offsetof宏的讲解及其模拟实现
Node red interacts with tdengine
Shell系统学习之循环结构