当前位置:网站首页>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,))
],
感谢各位的支持。
边栏推荐
- 晶方科技:光刻机厂商ASML为公司参与并购的Anteryon公司的最主要客户之一
- oracle分组取最大值
- 氧气温湿度模组
- Examples of application of JMeter in performance testing
- Deepening the concept of linear algebra [23] 01 - points coordinate points and vectors vectors
- 6月19日上会,中芯国际或创造国内最快上市记录!
- Understanding of cap
- C language programming | single dog topic explanation
- Unknown database ‘xxxxx‘
- Shenzhen Huaqiang announced that it plans to invest no more than 20million yuan in BYD semiconductor
猜你喜欢

BAT大厂测试架构师如何解读测试平台的各种争议

Un7.13: how to add, delete, modify and query in vs Code?

mysql查询条件字段值末尾有空格也能查到数据问题

C语言程序设计 | offsetof宏的讲解及其模拟实现
![[300 opencv routines] 241. Scale invariant feature transformation (SIFT)](/img/7a/a764c779c3162920c832325f89f340.png)
[300 opencv routines] 241. Scale invariant feature transformation (SIFT)

Introduction to the browser video frame operation method requestvideoframecallback()

《安富莱嵌入式周报》第275期:2022.07.18--2022.07.24

Safety detection risk

Code random notes_ Hash_ 1002 find common characters

BSP视频教程第21期:轻松一键实现串口DMA不定长收发,支持裸机和RTOS,含MDK和IAR两种玩法,比STM32CubeMX还方便(2022-07-24)
随机推荐
EWM收货ECC交货单校验逻辑问题
6月19日上会,中芯国际或创造国内最快上市记录!
Basic learning of cesium
Self use drawing bed building tutorial
Brief analysis of advantages, disadvantages and development of SAP modules
Shell系统学习之循环结构
Storage of deep planing data in memory
Jointly create a new chapter in cultural tourism | xinqidian signs a strategic cooperation agreement with Guohua cultural tourism
总投资近16亿元!乾照光电VCSEL、高端LED芯片项目正式开工
How to clearly understand and express IAAs, PAAS and SaaS?
Data problems can also be found if there is a space at the end of the field value of MySQL query criteria
Matlab 绘制 - 点和向量:向量加减的方法和源码
At the meeting on June 19, SMIC may set the fastest listing record in China!
闻泰科技收购安世半导体剩余股权获得无条件通过
Node red interacts with tdengine
【C语言】文件操作
二维数组相关知识
激光器芯片厂商陕西源杰半导体获广发证券、中信证券等8家投资机构入股
华为回应美国封锁供应链:他们仍需为5G专利付费
C语言main函数传递参数