Skip to content

Commit

Permalink
menambahkan personal page
Browse files Browse the repository at this point in the history
  • Loading branch information
Ip-ard committed Oct 12, 2022
1 parent 1a81822 commit 09ba4f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import 'package:moviedb/pages/CategoryPage.dart';
import 'package:moviedb/pages/FavoritePage.dart';
import 'package:moviedb/pages/HomePage.dart';
import 'package:moviedb/pages/MoviePage.dart';
import 'package:moviedb/pages/PersonPage.dart';

void main() {
runApp(const MyApp());
Expand Down Expand Up @@ -35,7 +36,8 @@ class _MyAppState extends State<MyApp> {
"/": (context) => HomePage(),
"categoryPage": (context) => CategoryPage(),
"moviePage": (context) => MoviePage(),
"favoritePage": (context) => FavoritePage()
"favoritePage": (context) => FavoritePage(),
"personPage": (context) => PersonPage(),
},
);
}
Expand Down
4 changes: 3 additions & 1 deletion lib/widgets/CustomNavBar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ class CustomNavBar extends StatelessWidget {
),
),
InkWell(
onTap: () {},
onTap: () {
Navigator.pushNamed(context, 'personPage');
},
child: Icon(
Icons.person,
size: 35,
Expand Down

1 comment on commit 09ba4f9

@Siegrain4
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Please sign in to comment.