Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 2.42 KB | None | 0 0
  1. RaisedButton(
  2.                           shape: RoundedRectangleBorder(
  3.                               borderRadius: BorderRadius.circular(80.0)),
  4.                           padding: const EdgeInsets.all(0.0),
  5.                           child: Container(
  6.                             decoration: const BoxDecoration(
  7.                               gradient: LinearGradient(
  8.                                 colors: <Color>[
  9.                                   AppString.lightpurple,
  10.                                   AppString.lightpurple
  11.                                 ],
  12.                               ),
  13.                               borderRadius:
  14.                                   BorderRadius.all(Radius.circular(80.0)),
  15.                             ),
  16.                             padding: EdgeInsets.symmetric(
  17.                                 vertical: 13, horizontal: 25),
  18.                             child: Row(
  19.                               children: <Widget>[
  20.                                 Text(
  21.                                   'SING UP',
  22.                                   style: TextStyle(
  23.                                     color: Colors.white,
  24.                                     fontSize: 20,
  25.                                   ),
  26.                                 ),
  27.                                 SizedBox(width: 10),
  28.                                 Icon(
  29.                                   Icons.arrow_forward,
  30.                                   color: Colors.white,
  31.                                 )
  32.                               ],
  33.                             ),
  34.                           ),
  35.                           onPressed: () async {
  36.                             user = User(
  37.                               email: email.text.trim(),
  38.                               noHp: noHp.text.trim(),
  39.                               nama: nama.text.trim(),
  40.                             );
  41.                             var resRegister = await Repository().register(user);
  42.  
  43.                             Navigator.push(
  44.                               context,
  45.                               MaterialPageRoute(
  46.                                 builder: (context) => Verifikasi(
  47.                                   resData: resRegister,
  48.                                   resUser: user,
  49.                                 ),
  50.                               ),
  51.                             );
  52.                           },
  53.                         ),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement