当前位置:网站首页>Shutter -- password login registration interface

Shutter -- password login registration interface

2022-07-28 01:22:00 Alex Ling

Password login and registration page (Flutter–Sign in & up --UI)

I think it's still OK Words , You might as well like it and pay attention to , Share some new projects that are easy to learn from time to time .
Click to download Source code

Be careful : GitHub The comments on the source code are in English ,Gitee The Chinese annotation version will be uploaded later

 Insert picture description here

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,))
            ],

Thank you for your support .

原网站

版权声明
本文为[Alex Ling]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/209/202207272300073755.html