Register_Error - made the text flexible instead of hardcoded

This commit is contained in:
Matthew Patrick 2022-04-26 15:28:37 +07:00
parent 17c129cd67
commit f09c828864

View file

@ -61,13 +61,15 @@ class RegisterErrorState extends State<RegisterError> {
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: const [
Text(
"An error has occured\nMake sure to check\nif your email has been \nregistered before.",
textAlign: TextAlign.center,
style: TextStyle(
color: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 25),
Flexible(
child: Text(
"An error has occured Make sure to check if your email has been registered before.",
textAlign: TextAlign.center,
style: TextStyle(
color: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 25),
),
),
],
)