Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RaisedButton(
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.circular(80.0)),
- padding: const EdgeInsets.all(0.0),
- child: Container(
- decoration: const BoxDecoration(
- gradient: LinearGradient(
- colors: <Color>[
- AppString.lightpurple,
- AppString.lightpurple
- ],
- ),
- borderRadius:
- BorderRadius.all(Radius.circular(80.0)),
- ),
- padding: EdgeInsets.symmetric(
- vertical: 13, horizontal: 25),
- child: Row(
- children: <Widget>[
- Text(
- 'SING UP',
- style: TextStyle(
- color: Colors.white,
- fontSize: 20,
- ),
- ),
- SizedBox(width: 10),
- Icon(
- Icons.arrow_forward,
- color: Colors.white,
- )
- ],
- ),
- ),
- onPressed: () async {
- user = User(
- email: email.text.trim(),
- noHp: noHp.text.trim(),
- nama: nama.text.trim(),
- );
- var resRegister = await Repository().register(user);
- Navigator.push(
- context,
- MaterialPageRoute(
- builder: (context) => Verifikasi(
- resData: resRegister,
- resUser: user,
- ),
- ),
- );
- },
- ),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement