Skip to content

Commit e8e6f2d

Browse files
committed
now user can explore without signIn
1 parent 7551c0d commit e8e6f2d

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

assets/images/welcome-poster.png

236 KB
Loading

lib/appwrite_service/auth_service.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import 'package:appwrite/appwrite.dart';
22
import 'package:appwrite/models.dart';
33
import 'package:flutter/material.dart';
4+
import 'package:help_me_design/appwrite_service/appwrite_constants_all.dart';
45
import '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();

lib/views/screens/onboarding_screens/signin_signup_screen/widgets/signin_view.dart

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff 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.);

lib/views/welcome_screen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)