From d2dc5ca3207a469f29bc7e39e3e5272c20ef9473 Mon Sep 17 00:00:00 2001
From: Matthew Patrick <Matthew.535200018@stu.untar.ac.id>
Date: Mon, 9 May 2022 09:10:47 +0700
Subject: [PATCH] login_form - Connected Register Page

---
 lib/components/login_form.dart | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/components/login_form.dart b/lib/components/login_form.dart
index b813de1..5e8a561 100644
--- a/lib/components/login_form.dart
+++ b/lib/components/login_form.dart
@@ -5,6 +5,7 @@ import 'package:lottie/lottie.dart';
 import 'package:flutter_form_builder/flutter_form_builder.dart';
 import 'package:nekoya_flutter/api/api.dart';
 import 'package:nekoya_flutter/components/login_error.dart';
+import 'package:nekoya_flutter/screens/register.dart';
 import 'package:nekoya_flutter/utils/utils.dart';
 
 class LoginForm extends StatefulWidget {
@@ -155,7 +156,10 @@ class LoginFormState extends State<LoginForm> {
 
   Widget _buildSignupBtn() {
     return GestureDetector(
-      onTap: () => print('Sign Up Button Pressed'),
+      onTap: () {
+        Navigator.push(
+            context, MaterialPageRoute(builder: (context) => const Register()));
+      },
       child: RichText(
         text: TextSpan(
           children: [