Advertisement
rahmrny

flutter stack

Jan 13th, 2022
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 1.59 KB | None | 0 0
  1. return Scaffold(
  2.       backgroundColor: Colors.amber,
  3.       body: Stack(
  4.         children: [
  5.           Positioned(
  6.             left: 0,
  7.             child: Image.asset("assets/images/wave-1.png"),
  8.           ),
  9.           Positioned(
  10.             right: 0,
  11.             child: Image.asset("assets/images/wave-2.png"),
  12.           ),
  13.           Positioned(
  14.             left: 0,
  15.             bottom: 0,
  16.             child: Image.asset("assets/images/wave-3.png"),
  17.           ),
  18.           Positioned(
  19.             right: 0,
  20.             bottom: 0,
  21.             child: Image.asset("assets/images/wave-4.png"),
  22.           ),
  23.           Column(
  24.             children: [
  25.               const SizedBox(height: 57),
  26.               const Text("Register",
  27.                   style: TextStyle(fontFamily: "Aleo", fontSize: 24)),
  28.               const SizedBox(height: 57),
  29.               Form(
  30.                 child: Column(
  31.                   children: const [
  32.                     CustomInput(hint: 'Masukan Nama'),
  33.                     CustomInput(hint: 'Masukan Alamat'),
  34.                     CustomInput(hint: 'Masukan Email'),
  35.                     CustomInput(hint: 'Masukan Password'),
  36.                     SizedBox(height: 48),
  37.                     CustomButton(text: "Register"),
  38.                     SizedBox(height: 25),
  39.                   ],
  40.                 ),
  41.               ),
  42.               HaveAnAccountText(
  43.                   text1: "Belum punya akun ? ",
  44.                   text2: "Daftar Sekarang",
  45.                   route: RegisterPage.routeName),
  46.             ],
  47.           ),
  48.         ],
  49.       ),
  50.     );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement