Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesbrandenburger committed Apr 5, 2024
2 parents 57afb21 + eece4ea commit 9b9c2a9
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 20 deletions.
4 changes: 2 additions & 2 deletions frontend/lib/components/button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ class SubmitButton extends StatelessWidget {
child: Container(
height: 60,
padding: const EdgeInsets.symmetric(vertical: 15, horizontal: 5),
margin: const EdgeInsets.symmetric(horizontal: 20),
margin: const EdgeInsets.symmetric(vertical: 10, horizontal: 40),
decoration: BoxDecoration(
color: colors.primary,
borderRadius: BorderRadius.circular(18),
borderRadius: BorderRadius.circular(12),
),
child: const Center(
child: Text(
Expand Down
8 changes: 4 additions & 4 deletions frontend/lib/components/textfield.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ class MyTextField extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.all(15),
padding: const EdgeInsets.all(10),
child: Container(
margin: const EdgeInsets.symmetric(horizontal: 5),
margin: const EdgeInsets.symmetric(horizontal: 30),
child: TextField(
controller: controller,
obscureText: obscureText,
decoration: InputDecoration(
enabledBorder: OutlineInputBorder(
borderSide: const BorderSide(color: Colors.grey),
borderRadius: BorderRadius.circular(18),
borderRadius: BorderRadius.circular(12),
),
focusedBorder: OutlineInputBorder(
borderSide: const BorderSide(color: Colors.black),
borderRadius: BorderRadius.circular(18),
borderRadius: BorderRadius.circular(12),
),
hintText: hintText,
hintStyle: const TextStyle(color: Colors.black),
Expand Down
33 changes: 19 additions & 14 deletions frontend/lib/pages/login_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class _LoginPageState extends State<LoginPage> {

return Scaffold(
appBar: AppBar(
backgroundColor: colors.surface,
backgroundColor: colors.onError,
toolbarHeight: 0,
),
body: SafeArea(
Expand Down Expand Up @@ -216,8 +216,8 @@ class _LoginPageState extends State<LoginPage> {
children: [
// Username TextField
Container(
padding: const EdgeInsets.only(top: 20),
margin: const EdgeInsets.symmetric(horizontal: 20),
padding: const EdgeInsets.only(top: 30),
margin: const EdgeInsets.symmetric(horizontal: 40),
child: const Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Expand All @@ -238,7 +238,7 @@ class _LoginPageState extends State<LoginPage> {
// Password TextField
Container(
padding: const EdgeInsets.only(top: 10),
margin: const EdgeInsets.symmetric(horizontal: 20),
margin: const EdgeInsets.symmetric(horizontal: 40),
child: const Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Expand Down Expand Up @@ -285,7 +285,7 @@ class _LoginPageState extends State<LoginPage> {
return Column(
children: [
Container(
color: colors.outlineVariant,
color: colors.surface,
child: Column(
children: [
Container(
Expand All @@ -297,7 +297,7 @@ class _LoginPageState extends State<LoginPage> {
),
// Login Text
Container(
margin: const EdgeInsets.all(18.0),
margin: const EdgeInsets.symmetric(horizontal: 40),
child: const Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Expand All @@ -310,22 +310,27 @@ class _LoginPageState extends State<LoginPage> {
],
),
),
const SizedBox(height: 20),
],
),
),
// Bottom Half of the Login Screen
Container(
decoration: BoxDecoration(
color: colors.surface,
borderRadius: const BorderRadius.only(
topLeft: Radius.circular(20),
topRight: Radius.circular(20))),
color: colors.surface,
border: Border(
top: BorderSide(
color: colors.outlineVariant, width: 0.5)),
// borderRadius: const BorderRadius.only(
// topLeft: Radius.circular(20),
// topRight: Radius.circular(20))
),
child: Column(
children: [
// Username TextField
Container(
padding: const EdgeInsets.only(top: 10),
margin: const EdgeInsets.symmetric(horizontal: 20),
padding: const EdgeInsets.only(top: 40),
margin: const EdgeInsets.symmetric(horizontal: 40),
child: const Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Expand All @@ -345,8 +350,8 @@ class _LoginPageState extends State<LoginPage> {

// Password TextField
Container(
padding: const EdgeInsets.only(top: 10),
margin: const EdgeInsets.symmetric(horizontal: 20),
padding: const EdgeInsets.only(top: 15),
margin: const EdgeInsets.symmetric(horizontal: 40),
child: const Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Expand Down

0 comments on commit 9b9c2a9

Please sign in to comment.