|
@@ -8,67 +8,75 @@ class LoginPage extends StatelessWidget {
|
|
|
Widget build(BuildContext context) {
|
|
|
return Scaffold(
|
|
|
backgroundColor: Theme.of(context).colorScheme.primaryContainer,
|
|
|
- body: Column(
|
|
|
- mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
|
- children: [
|
|
|
- Lang(),
|
|
|
- Expanded(
|
|
|
- child: Center(
|
|
|
- child: Text(
|
|
|
- 'TelNow',
|
|
|
- style: TextStyle(color: Colors.orange, fontSize: 48),
|
|
|
- )),
|
|
|
- ),
|
|
|
- Expanded(
|
|
|
- child: Column(
|
|
|
- children: [
|
|
|
- Padding(
|
|
|
- padding: const EdgeInsets.all(8.0),
|
|
|
- child: TextField(
|
|
|
- decoration: InputDecoration(
|
|
|
- border: OutlineInputBorder(),
|
|
|
- labelText: 'Nama Pengguna',
|
|
|
+ body: Container(
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ image: DecorationImage(
|
|
|
+ image: AssetImage("assets/images/building.jpg"),
|
|
|
+ fit: BoxFit.cover,
|
|
|
+ )),
|
|
|
+ child: Column(
|
|
|
+ mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
|
+ children: [
|
|
|
+ Lang(),
|
|
|
+ Expanded(
|
|
|
+ child: Center(
|
|
|
+ child: Text(
|
|
|
+ 'TelNow',
|
|
|
+ style: TextStyle(color: Colors.orange, fontSize: 48),
|
|
|
+ )),
|
|
|
+ ),
|
|
|
+ Expanded(
|
|
|
+ child: Column(
|
|
|
+ children: [
|
|
|
+ Padding(
|
|
|
+ padding: const EdgeInsets.all(8.0),
|
|
|
+ child: TextField(
|
|
|
+ decoration: InputDecoration(
|
|
|
+ border: OutlineInputBorder(),
|
|
|
+ labelText: 'Nama Pengguna',
|
|
|
+ ),
|
|
|
),
|
|
|
),
|
|
|
- ),
|
|
|
- Padding(
|
|
|
- padding: const EdgeInsets.all(8.0),
|
|
|
- child: TextField(
|
|
|
- obscureText: true,
|
|
|
- decoration: InputDecoration(
|
|
|
- border: OutlineInputBorder(),
|
|
|
- labelText: 'Kata Sandi',
|
|
|
+ Padding(
|
|
|
+ padding: const EdgeInsets.all(8.0),
|
|
|
+ child: TextField(
|
|
|
+ obscureText: true,
|
|
|
+ decoration: InputDecoration(
|
|
|
+ border: OutlineInputBorder(),
|
|
|
+ labelText: 'Kata Sandi',
|
|
|
+ ),
|
|
|
),
|
|
|
),
|
|
|
- ),
|
|
|
- Padding(
|
|
|
- padding: const EdgeInsets.all(8.0),
|
|
|
- child: ElevatedButton(
|
|
|
- onPressed: () => context.go('/list'),
|
|
|
- style: ButtonStyle(
|
|
|
- padding: MaterialStateProperty.all<EdgeInsets>(
|
|
|
- EdgeInsets.only(
|
|
|
- left: 260, right: 260, bottom: 25, top: 25)),
|
|
|
- backgroundColor: MaterialStateProperty.all(
|
|
|
- Color.fromARGB(255, 0, 255, 255)),
|
|
|
- foregroundColor:
|
|
|
- MaterialStateProperty.all<Color>(Colors.black),
|
|
|
- shape: MaterialStateProperty.all<RoundedRectangleBorder>(
|
|
|
- RoundedRectangleBorder(
|
|
|
- borderRadius: BorderRadius.circular(10),
|
|
|
- ))),
|
|
|
- child: Text('Masuk'),
|
|
|
+ Padding(
|
|
|
+ padding: const EdgeInsets.all(8.0),
|
|
|
+ child: ElevatedButton(
|
|
|
+ onPressed: () => context.go('/list'),
|
|
|
+ style: ButtonStyle(
|
|
|
+ padding: MaterialStateProperty.all<EdgeInsets>(
|
|
|
+ EdgeInsets.only(
|
|
|
+ left: 260, right: 260, bottom: 25, top: 25)),
|
|
|
+ backgroundColor: MaterialStateProperty.all(
|
|
|
+ Color.fromARGB(255, 0, 255, 255)),
|
|
|
+ foregroundColor:
|
|
|
+ MaterialStateProperty.all<Color>(Colors.black),
|
|
|
+ shape:
|
|
|
+ MaterialStateProperty.all<RoundedRectangleBorder>(
|
|
|
+ RoundedRectangleBorder(
|
|
|
+ borderRadius: BorderRadius.circular(10),
|
|
|
+ ))),
|
|
|
+ child: Text('Masuk'),
|
|
|
+ ),
|
|
|
),
|
|
|
- ),
|
|
|
- Text('Frisian Flag Indonesia, Tbk.'),
|
|
|
- ],
|
|
|
- )),
|
|
|
- Text('Kebijakan Privasi'),
|
|
|
- Text('Versi 4.0.0.0'),
|
|
|
- Container(
|
|
|
- color: Theme.of(context).colorScheme.primaryContainer,
|
|
|
- )
|
|
|
- ],
|
|
|
+ Text('Frisian Flag Indonesia, Tbk.'),
|
|
|
+ ],
|
|
|
+ )),
|
|
|
+ Text('Kebijakan Privasi'),
|
|
|
+ Text('Versi 4.0.0.0'),
|
|
|
+ Container(
|
|
|
+ color: Theme.of(context).colorScheme.primaryContainer,
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ),
|
|
|
),
|
|
|
);
|
|
|
}
|