Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- import 'package:laundryku/utils/bacground.dart';
- import 'package:laundryku/pages/registrasi_page.dart';
- import 'package:laundryku/pages/aktivasi_page.dart';
- import 'package:laundryku/pages/navigation/navigation_page.dart';
- import 'package:laundryku/utils/colors.dart';
- class Login_page extends StatefulWidget {
- static final String path = "lib/src/pages/login/login7.dart";
- @override
- _LoginSevenPageState createState() => _LoginSevenPageState();
- }
- class _LoginSevenPageState extends State<Login_page> {
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- backgroundColor: Colors.white,
- body: ListView(
- children: <Widget>[
- SizedBox(height: 30,),
- Container(
- margin: EdgeInsets.only(left: 20),
- child: Text('Login',
- style: TextStyle(
- fontSize: 45,
- fontWeight: FontWeight.w900,
- color:LightColor.darkpurple,
- ),),
- ),
- SizedBox(
- height: 30,
- ),
- Padding(
- padding: EdgeInsets.symmetric(horizontal: 32),
- child: Material(
- elevation: 2.0,
- borderRadius: BorderRadius.all(Radius.circular(10)),
- child: TextField(
- cursorColor: LightColor.purple,
- decoration: InputDecoration(
- hintText: "Email",
- prefixIcon: Material(
- elevation: 0,
- borderRadius: BorderRadius.all(Radius.circular(10)),
- child: Icon(
- Icons.email,
- color: Colors.cyan,
- ),
- ),
- border: InputBorder.none,
- contentPadding:
- EdgeInsets.symmetric(horizontal: 25, vertical: 13)),
- ),
- ),
- ),
- SizedBox(
- height: 20,
- ),
- Padding(
- padding: EdgeInsets.symmetric(horizontal: 32),
- child: Material(
- elevation: 2.0,
- borderRadius: BorderRadius.all(Radius.circular(10)),
- child: TextField(
- cursorColor:LightColor.purple,
- decoration: InputDecoration(
- hintText: "Password",
- prefixIcon: Material(
- elevation: 0,
- borderRadius: BorderRadius.all(Radius.circular(10)),
- child: Icon(
- Icons.lock,
- color: Colors.cyan,
- ),
- ),
- border: InputBorder.none,
- contentPadding:
- EdgeInsets.symmetric(horizontal: 25, vertical: 13)),
- ),
- ),
- ),
- SizedBox(
- height: 35,
- ),
- Padding(
- padding: EdgeInsets.symmetric(horizontal: 32),
- child: Container(
- decoration: BoxDecoration(
- borderRadius: BorderRadius.all(Radius.circular(100)),
- color: LightColor.purple),
- child: FlatButton(
- child: Text(
- "Login",
- style: TextStyle(
- color: Colors.white,
- fontWeight: FontWeight.w700,
- fontSize: 18),
- ),
- onPressed: () {
- Navigator.push(context, MaterialPageRoute(builder: (context)=> NavPage() ));
- },
- ),
- )),
- SizedBox(height: 20,),
- Row(
- mainAxisAlignment: MainAxisAlignment.end,
- children: <Widget>[
- Container(
- margin: EdgeInsets.only(right: 40),
- child: Text("FORGOT PASSWORD ?", style: TextStyle(color:Colors.blue,fontSize: 12 ,fontWeight: FontWeight.w700),),
- ),
- ],
- ),
- SizedBox(height: 40,),
- Row(
- mainAxisAlignment: MainAxisAlignment.center,
- children: <Widget>[
- Text("Don't have an Account ? ", style: TextStyle(color:Colors.black,fontSize: 14 ,fontWeight: FontWeight.normal),),
- Container(
- child: GestureDetector(
- child: Text(
- "Sign Up ",
- style: TextStyle(
- color:Colors.lightBlueAccent,
- fontWeight: FontWeight.w500,
- fontSize: 18, decoration: TextDecoration.underline,
- ),
- ),
- onTap: (){
- Navigator.push(context, MaterialPageRoute(builder: (context)=> Registrasi_page() ));
- },
- ),
- ),
- ],
- )
- ],
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement