-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/2024-summer' into feature/emailVerfity
- Loading branch information
Showing
20 changed files
with
231 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
import 'package:freezed_annotation/freezed_annotation.dart'; | ||
|
||
part 'generated/UserModel.freezed.dart'; | ||
part 'generated/UserModel.g.dart'; | ||
|
||
// TODO : User Class 추가 | ||
part 'generated/UserModel.g.dart'; | ||
|
||
@freezed | ||
class UserModel with _$UserModel { | ||
const factory UserModel({ | ||
required String userClass, | ||
required String userId, | ||
required String name, | ||
required String email, | ||
required int age, | ||
required String profileImageUrl, | ||
required DateTime createdAt, | ||
String? profileImageUrl, | ||
String? fcmToken, | ||
}) = _UserModel; | ||
|
||
factory UserModel.fromJson(Map<String, dynamic> json) => _$UserModelFromJson(json); | ||
factory UserModel.fromJson(Map<String, dynamic> json) => | ||
_$UserModelFromJson(json); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import 'package:cloud_firestore/cloud_firestore.dart'; | ||
import 'package:firebase_auth/firebase_auth.dart'; | ||
import 'package:flutter_riverpod/flutter_riverpod.dart'; | ||
|
||
final myPageNicknameProvider = StreamProvider<String>((ref) { | ||
final firestore = FirebaseFirestore.instance; | ||
final userId = FirebaseAuth.instance.currentUser!.uid; | ||
|
||
return firestore | ||
.collection('users') | ||
.doc(userId) | ||
.snapshots() | ||
.map((snapshot) { | ||
return snapshot['name'] as String; | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import 'package:blueberry_flutter_template/screens/SettingScreen.dart'; | ||
import 'package:blueberry_flutter_template/screens/TopScreen.dart'; | ||
import 'package:flutter/foundation.dart'; | ||
import 'package:flutter_riverpod/flutter_riverpod.dart'; | ||
import 'package:go_router/go_router.dart'; | ||
|
||
import '../screens/SplashScreen.dart'; | ||
import '../screens/mypage/SignUpScreen.dart'; | ||
import '../utils/ResponsiveLayoutBuilder.dart'; | ||
|
||
final routerProvider = Provider<GoRouter>((ref) { | ||
return GoRouter( | ||
routes: [ | ||
GoRoute( | ||
path: '/', | ||
builder: (context, state) => ResponsiveLayoutBuilder( | ||
context, | ||
kIsWeb ? const TopScreen() : const SplashScreen(), | ||
)), | ||
GoRoute( | ||
path: '/TopScreen', | ||
name: TopScreen.name, | ||
builder: (context, state) => | ||
ResponsiveLayoutBuilder(context, const TopScreen()), | ||
), | ||
GoRoute( | ||
path: '/SignUpScreen', | ||
name: SignUpScreen.name, | ||
builder: (context, state) => | ||
ResponsiveLayoutBuilder(context, const SignUpScreen()), | ||
), | ||
GoRoute( | ||
path: '/SettingsScreen', | ||
name: SettingScreen.name, | ||
builder: (context, state) => | ||
ResponsiveLayoutBuilder(context, const SettingScreen()), | ||
) | ||
], | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,6 +72,4 @@ class ConfirmationPage extends ConsumerWidget { | |
), | ||
); | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import 'package:flutter/material.dart'; | ||
import '../../widgets/profileDetail/ProfileDetailWidget.dart'; | ||
|
||
class ProfileDetailScreen extends StatelessWidget { | ||
const ProfileDetailScreen({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return ProfileDetailWidget(); | ||
} | ||
} |
Oops, something went wrong.