Skip to content

Commit

Permalink
프로필디테일 새페이지 생성 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwson-automation authored Jul 22, 2024
2 parents c3a8e53 + 09cfe1f commit 65f509e
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

import 'firebase_options.dart';
import 'providers/ThemeProvider.dart';
import 'screens/SplashScreen.dart';
Expand Down
6 changes: 6 additions & 0 deletions lib/screens/TopScreen.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:blueberry_flutter_template/screens/chat/ChatScreen.dart';
import 'package:blueberry_flutter_template/screens/mbti/MBTIScreen.dart';
import 'package:blueberry_flutter_template/screens/profileDetail/ProfileDetailScreen.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

Expand Down Expand Up @@ -29,6 +30,7 @@ class TopScreen extends ConsumerWidget {
const MatchScreen(),
const MBTIScreen(),
const LoginScreen(),
const ProfileDetailScreen(),
];

return Scaffold(
Expand Down Expand Up @@ -62,6 +64,10 @@ class TopScreen extends ConsumerWidget {
icon: Icon(Icons.account_circle),
label: 'MyPage',
),
BottomNavigationBarItem(
icon: Icon(Icons.supervised_user_circle_rounded),
label: 'ProfileDetail',
),
],
currentIndex: selectedIndex,
onTap: (index) =>
Expand Down
11 changes: 11 additions & 0 deletions lib/screens/profileDetail/ProfileDetailScreen.dart
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();
}
}
38 changes: 38 additions & 0 deletions lib/widgets/profileDetail/ProfileDetailWidget.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import 'package:flutter/material.dart';

class ProfileDetailWidget extends StatelessWidget {
const ProfileDetailWidget({super.key});

@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: GestureDetector(
onTap: (){},
child: Container(
width: 300,
height: 400,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(20),
border: Border.all(color: Colors.black),
),
child: const Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
CircleAvatar(
radius: 80,
backgroundImage: AssetImage('assets/logo/logo_1.png'),
),
SizedBox(height: 20),
Text(
'Profile Photo',
style: TextStyle(fontSize: 24),
),
],
),
),
),
),
);
}
}

0 comments on commit 65f509e

Please sign in to comment.