Commit 69997cca authored by Uditha Prabhasha 's avatar Uditha Prabhasha

update2

parent b4eb8f7b
...@@ -96,7 +96,7 @@ class _ParentSignupPageState extends State<ParentSignupPage> { ...@@ -96,7 +96,7 @@ class _ParentSignupPageState extends State<ParentSignupPage> {
signUp(emailController.text, passwordController.text, 'parent', context); signUp(emailController.text, passwordController.text, 'parent', context);
}, },
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
primary: Color.fromARGB(255, 48, 206, 53), // Note: 'const' was removed for consistency primary: Colors.blueAccent, // Note: 'const' was removed for consistency
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10.0), borderRadius: BorderRadius.circular(10.0),
), ),
......
...@@ -105,11 +105,13 @@ class _TeacherSignupPageState extends State<TeacherSignupPage> { ...@@ -105,11 +105,13 @@ class _TeacherSignupPageState extends State<TeacherSignupPage> {
); );
}, },
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
primary: Color.fromARGB(255, 48, 206, 53), // Green background color primary: Colors.blueAccent, // Green background color
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10.0), // Rounded corners borderRadius: BorderRadius.circular(10.0), // Rounded corners
), ),
padding: EdgeInsets.all(12.0), // Padding inside the button padding: EdgeInsets.all(12.0), // Padding inside the button
minimumSize: Size(140, 50), // Set the minimum width and height of the button
), ),
child: Text( child: Text(
'Next', 'Next',
...@@ -256,26 +258,28 @@ class AdditionalInfoPage extends StatelessWidget { ...@@ -256,26 +258,28 @@ class AdditionalInfoPage extends StatelessWidget {
child: Container( child: Container(
height: 48.0, // Reduced height height: 48.0, // Reduced height
child: ElevatedButton( child: ElevatedButton(
onPressed: () { onPressed: () {
// Logic to finish the teacher registration // Logic to finish the teacher registration
signUp(emailController.text, passwordController.text, rool, context); signUp(emailController.text, passwordController.text, rool, context);
}, },
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
primary: Color.fromARGB(255, 48, 206, 53), // Green background color primary: Colors.blueAccent, // Green background color
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10.0), // Rounded corners borderRadius: BorderRadius.circular(10.0), // Rounded corners
),
padding: EdgeInsets.symmetric(horizontal: 10.0), // Reduced padding
), ),
child: Text( padding: EdgeInsets.symmetric(horizontal: 10.0), // Reduced padding
'Finish', minimumSize: Size(140, 50), // Set the minimum width and height of the button
style: TextStyle( ),
color: Color.fromARGB(255, 255, 255, 255), // White text color child: Text(
fontSize: 14, // Reduced font size to accommodate the reduced button height 'Finish',
), style: TextStyle(
color: Color.fromARGB(255, 255, 255, 255), // White text color
fontSize: 14, // Reduced font size to accommodate the reduced button height
), ),
), ),
), ),
),
) )
], ],
), ),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment