123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- import 'package:flutter/material.dart';
- import 'package:go_router/go_router.dart';
- import 'package:namer_app/lang.dart';
- class LoginPage extends StatelessWidget {
- const LoginPage({super.key});
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- backgroundColor: Theme.of(context).colorScheme.primaryContainer,
- body: Container(
- decoration: BoxDecoration(
- gradient: LinearGradient(
- begin: Alignment.topCenter,
- end: Alignment.bottomCenter,
- colors: [
- Color(0xffD9D9D9),
- Color(0xff0F968E),
- Color(0xff000000)
- ]),
- image: DecorationImage(
- image: AssetImage("assets/images/building.jpg"),
- fit: BoxFit.cover,
- )),
- child: Column(
- mainAxisAlignment: MainAxisAlignment.spaceEvenly,
- children: [
- Row(
- children: [
- BackButton(color: Colors.white),
- Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Text(
- 'Kembali',
- style: TextStyle(color: Colors.white),
- ),
- Text(
- 'pindai QR',
- style: TextStyle(color: Colors.white),
- ),
- ],
- ),
- Expanded(child: Container()),
- Lang(),
- ],
- ),
- Expanded(
- child: Center(
- child: Row(
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- Text(
- 'tel',
- style: TextStyle(color: Color(0xffFF6600), fontSize: 48),
- ),
- Text(
- 'now',
- style: TextStyle(color: Color(0xffFFFFFF), fontSize: 48),
- ),
- ],
- )),
- ),
- Expanded(
- child: Column(
- children: [
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: SizedBox(
- width: 396,
- height: 51,
- child: TextField(
- decoration: InputDecoration(
- border: OutlineInputBorder(),
- focusedBorder: OutlineInputBorder(
- borderRadius:
- BorderRadius.all(Radius.circular(12)),
- borderSide: BorderSide(color: Colors.white)),
- enabledBorder: OutlineInputBorder(
- borderRadius:
- BorderRadius.all(Radius.circular(12)),
- borderSide: BorderSide(color: Colors.white)),
- labelText: 'Nama Pengguna',
- labelStyle: TextStyle(color: Colors.white),
- filled: true,
- fillColor: Colors.white.withOpacity(0.25)),
- cursorColor: Colors.white,
- style: TextStyle(color: Colors.white),
- ),
- ),
- ),
- SizedBox(
- width: 396,
- height: 51,
- child: TextField(
- obscureText: true,
- decoration: InputDecoration(
- border: OutlineInputBorder(),
- focusedBorder: OutlineInputBorder(
- borderRadius: BorderRadius.all(Radius.circular(12)),
- borderSide: BorderSide(color: Colors.white)),
- enabledBorder: OutlineInputBorder(
- borderRadius: BorderRadius.all(Radius.circular(12)),
- borderSide: BorderSide(color: Colors.white)),
- labelText: 'Kata Sandi',
- labelStyle: TextStyle(color: Colors.white),
- filled: true,
- fillColor: Colors.white.withOpacity(0.25)),
- cursorColor: Colors.white,
- style: TextStyle(color: Colors.white),
- ),
- ),
- Padding(
- padding: const EdgeInsets.all(20.0),
- child: SizedBox(
- width: 396,
- height: 61,
- child: ElevatedButton(
- onPressed: () => context.go('/list'),
- style: ElevatedButton.styleFrom(
- backgroundColor: Color(0xff078C84).withOpacity(0.76),
- side: BorderSide(color: Colors.white),
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.circular(12.0),
- ),
- ),
- child: Text(
- 'Masuk',
- style: TextStyle(color: Colors.white),
- ),
- ),
- ),
- ),
- Text(
- 'Frisian Flag Indonesia, Tbk.',
- style: TextStyle(color: Colors.white),
- ),
- ],
- )),
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Column(
- children: [
- Text('Kebijakan Privasi',
- style: TextStyle(
- fontSize: 16,
- decoration: TextDecoration.underline,
- fontWeight: FontWeight.w400,
- color: Colors.white,
- decorationColor: Colors.white)),
- Text('Versi 4.0.0.0',
- style: TextStyle(
- fontSize: 16,
- fontWeight: FontWeight.w400,
- color: Colors.white,
- ))
- ],
- ),
- ),
- ],
- ),
- ),
- );
- }
- }
|