ändrade font i create login #40

Merged
nisa9769 merged 1 commits from newnewnewFeedback into master 2022-05-25 12:35:27 +02:00

View File

@ -2,7 +2,7 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_applicationdemo/BottomNavPage.dart'; import 'package:flutter_applicationdemo/BottomNavPage.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:flutter_applicationdemo/mysql.dart'; import 'package:flutter_applicationdemo/mysql.dart';
import 'package:flutter_applicationdemo/HomePage.dart'; import 'package:flutter_applicationdemo/HomePage.dart';
@ -53,10 +53,12 @@ class _CreateAccountPageState extends State<CreateAccountPage> {
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[ children: <Widget>[
createTitleText(), createTitleText(),
const SizedBox(height: 50),
Text( Text(
"Create Log in:", "Create Log in:",
style: TextStyle(fontSize: 15, fontWeight: FontWeight.bold), style: TextStyle(fontSize: 15, fontWeight: FontWeight.bold),
), ),
const SizedBox(height: 10),
createUsernameField(), createUsernameField(),
createEmailField(), createEmailField(),
createPasswordField(), createPasswordField(),
@ -64,7 +66,6 @@ class _CreateAccountPageState extends State<CreateAccountPage> {
padding: const EdgeInsets.only(top: 20), padding: const EdgeInsets.only(top: 20),
child: createCreateAccountButton(), child: createCreateAccountButton(),
), ),
], ],
); );
} }
@ -72,21 +73,14 @@ class _CreateAccountPageState extends State<CreateAccountPage> {
Text createTitleText() { Text createTitleText() {
return Text( return Text(
'Sun Chasers', 'Sun Chasers',
style: TextStyle( style: GoogleFonts.libreBaskerville(
fontSize: 50, fontSize: 35,
color: textColor, color: globals.TEXTCOLOR,
fontFamily: 'Sacramento',
shadows: const <Shadow>[
Shadow(
offset: Offset(2, 2),
blurRadius: 10.0,
color: Color.fromARGB(255, 0, 0, 0),
),
],
), ),
); );
} }
InputField createUsernameField() { InputField createUsernameField() {
return InputField( return InputField(
text: "Username:", text: "Username:",