From e872f910136479a2cca17e62c47cd9aa08deec54 Mon Sep 17 00:00:00 2001 From: Nikolina Sandstedt Date: Wed, 25 May 2022 12:34:36 +0200 Subject: [PATCH] =?UTF-8?q?=C3=A4ndrade=20font=20i=20create=20login?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/login/CreateAccountPage.dart | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/lib/login/CreateAccountPage.dart b/lib/login/CreateAccountPage.dart index 5be1b7e..7e40a12 100644 --- a/lib/login/CreateAccountPage.dart +++ b/lib/login/CreateAccountPage.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_applicationdemo/BottomNavPage.dart'; - +import 'package:google_fonts/google_fonts.dart'; import 'package:flutter_applicationdemo/mysql.dart'; import 'package:flutter_applicationdemo/HomePage.dart'; @@ -53,10 +53,12 @@ class _CreateAccountPageState extends State { mainAxisAlignment: MainAxisAlignment.center, children: [ createTitleText(), + const SizedBox(height: 50), Text( "Create Log in:", style: TextStyle(fontSize: 15, fontWeight: FontWeight.bold), ), + const SizedBox(height: 10), createUsernameField(), createEmailField(), createPasswordField(), @@ -64,7 +66,6 @@ class _CreateAccountPageState extends State { padding: const EdgeInsets.only(top: 20), child: createCreateAccountButton(), ), - ], ); } @@ -72,21 +73,14 @@ class _CreateAccountPageState extends State { Text createTitleText() { return Text( 'Sun Chasers', - style: TextStyle( - fontSize: 50, - color: textColor, - fontFamily: 'Sacramento', - shadows: const [ - Shadow( - offset: Offset(2, 2), - blurRadius: 10.0, - color: Color.fromARGB(255, 0, 0, 0), - ), - ], + style: GoogleFonts.libreBaskerville( + fontSize: 35, + color: globals.TEXTCOLOR, ), ); } + InputField createUsernameField() { return InputField( text: "Username:", -- 2.39.5