This commit is contained in:
Nopylacetat
2023-10-20 19:25:44 +02:00
parent b4e49ea4ff
commit 96c4635254
2 changed files with 11 additions and 9 deletions

View File

@@ -15,23 +15,24 @@ class LoginPage extends StatelessWidget {
width: width / 2,
child: Column(
children: [
const Text('Please enter your first name',
const Text('Welcome!',
style: TextStyle(
color: Colors.pink,
fontSize: 35,
fontWeight: FontWeight.bold,
color: Colors.white,
)),
const Padding(padding: EdgeInsets.symmetric(vertical: 20)),
TextField(
controller: username,
decoration: const InputDecoration(
label: Text('Username!'),
label: Text('Username'),
border: OutlineInputBorder(),
),
),
TextButton(
const Padding(padding: EdgeInsets.symmetric(vertical: 20)),
ElevatedButton(
onPressed: () => DbHelper.login(username.text),
child: const Text('Login'),
),
TextButton(
onPressed: () => DbHelper.logout(),
child: const Text('Logout'),
)
],
),