Skip to content

Commit

Permalink
Fix button navigate to universal search page
Browse files Browse the repository at this point in the history
  • Loading branch information
up2code committed Jan 13, 2021
1 parent 690d7fd commit 55b66c8
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/src/pages/album_detail_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class AlbumDetailPageView extends StatelessWidget {

void _onTapHome() => Get.offAll(MainPage());

void _onTapEntrySearch() => Get.to(EntrySearchPage());
void _onTapEntrySearch() => Get.toNamed(Routes.ENTRIES);

void _onTapArtist(ArtistRoleModel artistRoleModel) =>
Get.to(ArtistDetailPage());
Expand Down
2 changes: 1 addition & 1 deletion lib/src/pages/artist_detail_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class ArtistDetailPageView extends StatelessWidget {

void _onTapHome() => Get.offAll(MainPage());

void _onTapEntrySearch() => Get.to(EntrySearchPage());
void _onTapEntrySearch() => Get.toNamed(Routes.ENTRIES);

Widget _buttonBarBuilder() {
final authService = Get.find<AuthService>();
Expand Down
2 changes: 1 addition & 1 deletion lib/src/pages/pv_playlist_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class PVPlaylistPageView extends StatelessWidget {

void _onTapHome() => Get.offAll(MainPage());

void _onTapEntrySearch() => Get.to(EntrySearchPage());
void _onTapEntrySearch() => Get.toNamed(Routes.ENTRIES);

Widget _buildVideoContent() {
if (controller.youtubeController == null) {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/pages/release_event_detail_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class ReleaseEventDetailPageView extends StatelessWidget {

void _onTapHome() => Get.offAll(MainPage());

void _onTapEntrySearch() => Get.to(EntrySearchPage());
void _onTapEntrySearch() => Get.toNamed(Routes.ENTRIES);

void _onTapMapButton() {
String q = controller.event().venueName;
Expand Down
4 changes: 3 additions & 1 deletion lib/src/pages/song_detail_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ class SongDetailPageView extends StatelessWidget {

void _onSelectSong(SongModel song) => AppPages.toSongDetailPage(song);

void _onTapEntrySearch() => Get.toNamed(Routes.ENTRIES);

void _onTapArtist(ArtistRoleModel a) =>
AppPages.toArtistDetailPage(ArtistModel(
id: a.id,
Expand Down Expand Up @@ -166,7 +168,7 @@ class SongDetailPageView extends StatelessWidget {
actions: [
IconButton(
icon: Icon(Icons.search),
onPressed: () => Get.to(EntrySearchPage())),
onPressed: () => this._onTapEntrySearch()),
IconButton(
icon: Icon(Icons.home), onPressed: () => Get.offAll(MainPage()))
],
Expand Down
2 changes: 1 addition & 1 deletion lib/src/pages/tag_detail_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class TagDetailPageView extends StatelessWidget {

void _onTapHome() => Get.offAll(MainPage());

void _onTapEntrySearch() => Get.to(EntrySearchPage());
void _onTapEntrySearch() => Get.toNamed(Routes.ENTRIES);

@override
Widget build(BuildContext context) {
Expand Down

0 comments on commit 55b66c8

Please sign in to comment.