Skip to content

Commit

Permalink
Temp commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sidhdhi-p committed Jan 23, 2024
1 parent 255a0a9 commit 2228c99
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 13 deletions.
4 changes: 1 addition & 3 deletions data/lib/service/user/user_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@ final userServiceProvider = Provider((ref) {

class UserService {
User? currentUser;
// caller function here
/*
like
// caller function here
func callerFunctionCalledFromNotifier(){
var response = await funcThatInternallyDoTheseStuff();
parse the response
return the response
}
*/

}
2 changes: 1 addition & 1 deletion khelo/lib/ui/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class _AppState extends ConsumerState<App> {
super.initState();

final AppRoute initialRoute;
initialRoute = AppRoute.intro;
initialRoute = AppRoute.main;
// if (ref.read(hasUserSession)) {
// initialRoute = AppRoute.main;
// } else {
Expand Down
22 changes: 14 additions & 8 deletions khelo/lib/ui/flow/profile/profile_screen.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:flutter/cupertino.dart';
import 'package:style/extensions/context_extensions.dart';
import 'package:style/text/app_text_style.dart';
import 'package:flutter/material.dart';
import 'package:khelo/components/app_page.dart';
import 'package:khelo/domain/extensions/context_extensions.dart';
import 'package:khelo/ui/app_route.dart';

class ProfileScreen extends StatefulWidget {
const ProfileScreen({super.key});
Expand All @@ -12,11 +13,16 @@ class ProfileScreen extends StatefulWidget {
class _ProfileScreenState extends State<ProfileScreen> {
@override
Widget build(BuildContext context) {
return Center(
child: Text(
"Profile",
style:
AppTextStyle.header4.copyWith(color: context.colorScheme.primary),
return AppPage(
title: context.l10n.tab_profile_title,
body: Builder(
builder: (context) {
return Center(
child: TextButton(onPressed: () {
AppRoute.editProfile.push(context);
}, child: const Text("go to profile >>")),
);
},
),
);
}
Expand Down
26 changes: 25 additions & 1 deletion khelo/lib/ui/flow/settings/profile/edit_profile_screen.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:khelo/components/app_page.dart';
import 'package:khelo/domain/extensions/context_extensions.dart';
import 'package:style/extensions/context_extensions.dart';

class EditProfileScreen extends ConsumerWidget {
const EditProfileScreen({super.key});
Expand All @@ -12,7 +14,29 @@ class EditProfileScreen extends ConsumerWidget {
title: context.l10n.edit_profile_screen_title,
body: Builder(
builder: (context) {
return const Center(child: Text("Edit Profile Screen"),);
return ListView(
padding: context.mediaQueryPadding +
const EdgeInsets.symmetric(vertical: 8.0, horizontal: 16.0),

children: const [
// center pick profile image from camera or gallery
CupertinoTextField(
placeholder: "name",
),
SizedBox(height: 16,),
CupertinoTextField(
placeholder: "email",
),
SizedBox(height: 16,),
SizedBox(height: 16,),
CupertinoTextField(
placeholder: "location",
),
CupertinoTextField(
placeholder: "dob",
),
],
);
},
),
);
Expand Down

0 comments on commit 2228c99

Please sign in to comment.