File tree Expand file tree Collapse file tree 4 files changed +13
-9
lines changed
screens/onboarding_screens/signin_signup_screen/widgets Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 11import 'package:appwrite/appwrite.dart' ;
22import 'package:appwrite/models.dart' ;
33import 'package:flutter/material.dart' ;
4+ import 'package:help_me_design/appwrite_service/appwrite_constants_all.dart' ;
45import 'package:help_me_design/utility/utility_helper.dart' ;
56
6- import 'appwrite_constants.dart' ;
7-
87// class AuthService {
98// final client = Client()
109// .setEndpoint(AppWriteConst.APPWRITE_ENDPOINT) // Your API Endpoint
@@ -96,6 +95,7 @@ class AuthService extends ChangeNotifier {
9695 _status = AuthStatus .authenticated;
9796 return session;
9897 } on AppwriteException catch (e) {
98+ print (e);
9999 UtilityHelper .toastMessage (message: e.message.toString ());
100100 } finally {
101101 notifyListeners ();
Original file line number Diff line number Diff line change @@ -28,6 +28,15 @@ class SignInView extends StatelessWidget {
2828 passwordController.clear ();
2929 }
3030
31+ void sendToHome (BuildContext context) {
32+ Navigator .push (
33+ context,
34+ MaterialPageRoute (
35+ builder: (context) => MyHomePage (),
36+ ),
37+ );
38+ }
39+
3140 @override
3241 Widget build (BuildContext context) {
3342 var themeData = Theme .of (context);
@@ -116,12 +125,7 @@ class SignInView extends StatelessWidget {
116125 UtilityHelper .toastMessage (message: "You Are in" );
117126 clearTextFields ();
118127
119- // Navigator.push(
120- // context,
121- // MaterialPageRoute(
122- // builder: (context) => MyHomePage(),
123- // ),
124- // );
128+ sendToHome (context);
125129 }
126130
127131 // print(user.);
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class WelcomeScreen extends StatelessWidget {
2929 child: Container (
3030 color: const Color (0xFF13121B ),
3131 height: size.height * 0.64 ,
32- child: Image .network ( 'https://i.ibb.co/bWR8cC0/Group-92 .png' ),
32+ child: Image .asset ( 'assets/images/welcome-poster .png' ),
3333 ),
3434 ),
3535 Positioned (
You can’t perform that action at this time.
0 commit comments